Llama Cpp Rpc Distributed logo

Llama Cpp Rpc Distributed

Organization
Seeed-Projects
llama-cpp-rpc-distributed

Distribute LLM inference across multiple Jetson devices using llama.cpp RPC backend with CUDA. Build from source with RPC+CUDA, convert models to GGUF, and run multi-node inference for horizontal scaling. Requires two Jetson devices with JetPack 6.x+.

Overview

PublisherSeeed-Projects
RepositorySeeed-Jetson-DevelopTool
Skill namellama-cpp-rpc-distributed
Stars
58
Forks
9
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Seeed-Projects on GitHub. Read the source before you install it.

Installation

Install the Llama Cpp Rpc Distributed AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/llama-cpp-rpc-distributed
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool.git /tmp/Seeed-Jetson-DevelopTool
mkdir -p .claude/skills
cp -r /tmp/Seeed-Jetson-DevelopTool/seeed_jetson_develop/skills/openclaw/llama-cpp-rpc-distributed .claude/skills/llama-cpp-rpc-distributed
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Llama Cpp Rpc Distributed in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Llama Cpp Rpc Distributed on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Llama Cpp Rpc Distributed is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Distributed llama.cpp on Jetson (RPC Mode)

Run large language models across multiple Jetson devices by leveraging llama.cpp's RPC backend. This enables horizontal scaling — split model layers across GPUs on different machines connected via LAN.


Execution model

Run one phase at a time. After each phase:

  • Relay all output to the user.
  • If output contains [STOP] → stop, consult the failure decision tree.
  • If output ends with [OK] → tell the user "Phase N complete" and proceed.

Prerequisites

RequirementDetail
HardwareTwo reComputer Jetson devices (e.g. Orin NX/AGX Orin)
JetPack6.x+ with working CUDA drivers
NetworkBoth devices on same LAN, able to ping each other
RAMClient ≥ 64 GB, remote node ≥ 32 GB (unified memory)
Storage~5 GB free for build + model

Phase 1 — Clone and install build dependencies (~2 min)

Run on both machines:

bash
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
sudo apt update
sudo apt install -y build-essential cmake git libcurl4-openssl-dev python3-pip

[OK] when clone and apt install complete on both machines.


Phase 2 — Build with RPC + CUDA backend (~5 min)

Run on both machines:

bash
cd llama.cpp
cmake -B build \
  -DGGML_CUDA=ON \
  -DGGML_RPC=ON \
  -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel

Verify:

bash
ls build/bin/llama-cli build/bin/rpc-server

[OK] when both llama-cli and rpc-server binaries exist. [STOP] if cmake or build fails — see failure decision tree.


Phase 3 — Install Python conversion tools (~1 min)

Run on the client machine (Machine A):

bash
cd llama.cpp
pip3 install -e .

[OK] when pip install completes.


Phase 4 — Download and convert model (~5–10 min)

Using TinyLlama-1.1B-Chat as an example:

bash
pip3 install huggingface-hub
huggingface-cli download TinyLlama/TinyLlama-1.1B-Chat-v1.0 --local-dir ~/TinyLlama-1.1B-Chat-v1.0

Convert to GGUF:

bash
cd llama.cpp
python3 convert_hf_to_gguf.py \
  --outfile ~/TinyLlama-1.1B.gguf \
  ~/TinyLlama-1.1B-Chat-v1.0

[OK] when GGUF file is created. [STOP] if conversion fails — check model files are complete.


Phase 5 — Verify single-machine inference (~1 min)

bash
cd llama.cpp
./build/bin/llama-cli \
  -m ~/TinyLlama-1.1B.gguf \
  -p "Hello, how are you today?" \
  -n 64

[OK] when the model generates a text response. [STOP] if inference fails — check CUDA with nvidia-smi.


Phase 6 — Start RPC server on remote machine (Machine B)

SSH into Machine B and run:

bash
cd llama.cpp
CUDA_VISIBLE_DEVICES=0 ./build/bin/rpc-server --host <MACHINE_B_IP>

Default port is 50052. Customize with -p <port>.

[OK] when server prints "listening on :50052".


Phase 7 — Start RPC server on local machine (Machine A)

In a separate terminal on Machine A:

bash
cd llama.cpp
CUDA_VISIBLE_DEVICES=0 ./build/bin/rpc-server -p 50052

[OK] when server prints listening message.


Phase 8 — Run distributed inference (~1 min)

On Machine A, in another terminal:

bash
cd llama.cpp
./build/bin/llama-cli \
  -m ~/TinyLlama-1.1B.gguf \
  -p "Hello, my name is" \
  -n 64 \
  --rpc <MACHINE_B_IP>:50052,127.0.0.1:50052 \
  -ngl 99

-ngl 99 offloads all layers to GPU across both RPC nodes.

[OK] when distributed inference produces output and both RPC servers show activity. [STOP] if connection refused — check network and firewall.


Failure decision tree

SymptomAction
cmake fails with CUDA not foundVerify CUDA: nvcc --version. Ensure JetPack 6.x is installed.
Build fails with missing headersRun sudo apt install -y build-essential cmake libcurl4-openssl-dev.
rpc-server startup failureCheck if port 50052 is occupied: ss -tlnp | grep 50052. Check firewall: sudo ufw allow 50052.
Connection refused during distributed inferenceVerify machines can ping each other. Confirm RPC servers are running on both.
Slower inference with RPC than single-nodeModel too small for network overhead to pay off. Try a larger model (7B+).
Out of memory errorReduce -ngl value to keep some layers on CPU. Close other GPU processes.
Model conversion failsEnsure all model files downloaded completely. Check disk space.

Reference files

  • references/source.body.md — Full Seeed Wiki tutorial with hardware topology diagrams, performance comparison screenshots, and troubleshooting details (reference only)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Llama Cpp Rpc Distributed AI skill do?

Distribute LLM inference across multiple Jetson devices using llama.cpp RPC backend with CUDA. Build from source with RPC+CUDA, convert models to GGUF, and run multi-node inference for horizontal scaling. Requires two Jetson devices with JetPack 6.x+.

Why use Llama Cpp Rpc Distributed on TypingMind?

Because you install it once and use it with any model. Llama Cpp Rpc Distributed is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Llama Cpp Rpc Distributed in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/llama-cpp-rpc-distributed. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Llama Cpp Rpc Distributed?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Llama Cpp Rpc Distributed?

As many as you like. As long as a model supports skills, you can use Llama Cpp Rpc Distributed with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Llama Cpp Rpc Distributed AI skill free?

Yes. It is published on GitHub by Seeed-Projects under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇