You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Multi-host support for Unsloth Studio #4858
The ability to schedule inference and training across multiple hosts in addition to multiple cards would be a huge boon for those of us that have multiple machines to work with.
Reacted by shizzgar, cc-bjojac, nomadicsynth, Manny (Abdulrehman) Bhidya, Snshadow, MeIchthys, Maxim Mazurok and issaqua
At the moment Unsloth works for multiGPU training and inference but multi-node is probably out of scope for now. Also unsure if llama.cpp supports it - if they do then we are able to as well.
I can also confirm that llama.cpp does work across nodes.
I'm able to set up a RCP server on a local machine on the network and connect to it using unsloth extra arguments in the model settings on my machine.
The first step to making this easier would be to ship the RPC server executable along with unsloth so each machine would at least have compatible RPC server versions. Incompatible RPC server versions often cause issues. So this way, if both machines had Unsloth installed, they could at least run the rpc-sever binary on the remote machine without worrying about version mismatches.
I've been doing this quite a bit in the past couple of weeks with unsloth and thought I would put my findings down as a note for anybody interested. (It's not very complicated, but I've been in situations where I just don't know, and it's nice to have someone record it.)
The real key is to use the exact same build of llama.cpp on both the unsloth studio (or server) station, and on every worker node you want to use. The default builds (releases) available on the llama.cpp GitHub project include the RPC server binary, so it's pretty simple to just extract and run. (Tip: Extract the accompanying libraries (eg: CUDA) into the same folder as the binary pack you just downloaded.) I set unsloth to ise a custom llama.cpp folder in order to guarantee the build stays consistent with the workers.
Once that's all in place: Start ggml-rpc-server on all the workers (I use this argument list: -H 0.0.0.0 -p 50052 -c) and then put the following into the custom attributes for any model you want to run over multiple nodes:
--rpc 1.1.1.1:50052,2.2.2.2:50052
Where 1.1.1.1 is the IP for the first worker, 2.2.2.3 for the second, etc.
It seems common from my experience to see a lot of connect/disconnect messages on the workers, but then it'll settle down and you'll see tensor information being cached as things spin up.
One last fun thought: Thunderbolt (if your systems have it) can be a fairly easy way to link 2 or 3 systems together with 20 Gbps links, even on Windows. Just remember that it's always point-to-point (no switches or hubs to expand things), and you'll want distinct subnets for each interface to avoid routing weirdness.
Activity
shimmyshimmer commentedon Apr 6, 2026
At the moment Unsloth works for multiGPU training and inference but multi-node is probably out of scope for now. Also unsure if llama.cpp supports it - if they do then we are able to as well.
MrDrMcCoy commentedon Apr 7, 2026
llama.cpp can do multi-host inference via RPC mode, which I have had mixed success with.
studio: put rank 1's inputs on the peer, and bring its stage back
meichthys commentedon Sep 17, 2026
I can also confirm that llama.cpp does work across nodes.
I'm able to set up a RCP server on a local machine on the network and connect to it using unsloth extra arguments in the model settings on my machine.
The first step to making this easier would be to ship the RPC server executable along with unsloth so each machine would at least have compatible RPC server versions. Incompatible RPC server versions often cause issues. So this way, if both machines had Unsloth installed, they could at least run the rpc-sever binary on the remote machine without worrying about version mismatches.
jma89 commentedon Oct 24, 2026
I've been doing this quite a bit in the past couple of weeks with unsloth and thought I would put my findings down as a note for anybody interested. (It's not very complicated, but I've been in situations where I just don't know, and it's nice to have someone record it.)
The real key is to use the exact same build of llama.cpp on both the unsloth studio (or server) station, and on every worker node you want to use. The default builds (releases) available on the llama.cpp GitHub project include the RPC server binary, so it's pretty simple to just extract and run. (Tip: Extract the accompanying libraries (eg: CUDA) into the same folder as the binary pack you just downloaded.) I set unsloth to ise a custom llama.cpp folder in order to guarantee the build stays consistent with the workers.
Once that's all in place: Start ggml-rpc-server on all the workers (I use this argument list: -H 0.0.0.0 -p 50052 -c) and then put the following into the custom attributes for any model you want to run over multiple nodes:
--rpc 1.1.1.1:50052,2.2.2.2:50052
Where 1.1.1.1 is the IP for the first worker, 2.2.2.3 for the second, etc.
It seems common from my experience to see a lot of connect/disconnect messages on the workers, but then it'll settle down and you'll see tensor information being cached as things spin up.
One last fun thought: Thunderbolt (if your systems have it) can be a fairly easy way to link 2 or 3 systems together with 20 Gbps links, even on Windows. Just remember that it's always point-to-point (no switches or hubs to expand things), and you'll want distinct subnets for each interface to avoid routing weirdness.