Skip to content

[Feature] Multi-host support for Unsloth Studio #4858

Open

Description

@MrDrMcCoy

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.

Activity

  1. added
    feature request
    on Apr 5, 2026
  2. shimmyshimmer commented on Apr 6, 2026

    @shimmyshimmer
    Member

    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.

  3. MrDrMcCoy commented on Apr 7, 2026

    @MrDrMcCoy
    Author

    llama.cpp can do multi-host inference via RPC mode, which I have had mixed success with.

  4. meichthys commented on Sep 17, 2026

    @meichthys

    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.

  5. jma89 commented on Oct 24, 2026

    @jma89

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions