Use llama.cpp to run a model with the combined power of a networked cluster of GPUs.

Posted by farkinga@reddit | LocalLLaMA | View on Reddit | 14 comments

llama.cpp can be compiled with RPC support so that a model can be split across networked computers. Run even bigger models than before with a modest performance impact.

Specify GGML_RPC=ON when building llama.cpp so that rpc-server will be compiled.

cmake -B build -DGGML_RPC=ON
cmake --build build --config Release

Launch rpc-server on each node:

build/bin/rpc-server --host 0.0.0.0

Finally, orchestrate the nodes with llama-server

build/bin/llama-server --model YOUR_MODEL --gpu-layers 99 --rpc node01:50052,node02:50052,node03:50052

I'm still exploring this so I am curious to hear how well it works for others.