Playbook · DGX Spark cluster
The model software itself puts part of the model on each Spark and they work as one server. No separate cluster software is needed.
Both Sparks become one service. If either one, or the cable, stops, the model stops. And splitting does not promise twice the speed.
Checked on 26 November 2026 against: vLLM's parallelism and security documentation, NVIDIA's vLLM cluster playbook (updated 22 October 2026), and SGLang's multi-node and server argument pages. We have not yet run this playbook start to finish on our own hardware.
Watch, then follow
Split one model. One model across two DGX Sparks. Here's what to decide first.
The AI stack. We're starting from the machines: two DGX Sparks, joined by their cable.
Tensor or pipeline. Tensor parallel splits each layer, so both GPUs hold part of every layer. Pipeline parallel gives each GPU some of the layers, and work passes through in turn.
The advice differs. vLLM's general advice across machines is pipeline parallel. NVIDIA's two-Spark recipes use tensor parallel. So follow a tested recipe for your model. Without one, test and measure. Data parallel is different. It makes two whole copies, with no extra room.
CPU work isn't split evenly. Both GPUs do the model's work. Your settings fix the split, not how busy each one is. In the vLLM setup, the second node runs headless, with no API server. So we expect web requests and tokenizing on the first Spark. We haven't watched it.
How the nodes meet. In vLLM, set two nodes, and the first Spark's link address on both. The first is rank zero. The second is rank one, and headless. SGLang has its own options for the same job. Its tensor size counts the whole cluster.
One service. If either Spark or the cable stops, expect the model to stop. And vLLM says traffic between nodes is insecure by default.
Now you can decide. Part two sets it up, checks it, and stops it.
10 steps
Set up, check, stop. Now let's start a split model with vLLM. We haven't run these steps on hardware.
Check the image. Use the same image on both Sparks. Check it lists the node options.
Open a container. These containers get wide control of each Spark, so only run images you trust. Give each its own link address, and the first Spark's address as the head. Name the cluster network interface. The full command is on the page.
Start both ranks. This loads both GPUs, so check nothing important is running. Start rank zero first. Then start rank one on the second Spark, headless.
Is it really split? Wait for the first Spark to say startup is complete. Check its health, then send a short chat request. Watch both GPUs while it answers. Then note your own speed as a baseline.
Check open ports. Setting the API host doesn't cover the ports the nodes use between themselves. While it runs, list the listening ports, and let only the other Spark reach the internal ones.
Stop both. Stopping ends every reply. Press Control C in both terminals, then leave each container. Or stop the container from another terminal, on each Spark.
Split, then measure. The page also has the SGLang commands, and fixes by symptom.
11 steps
Written from the makers' own documents, read on 26 and 27 November 2026 and linked below. We have not run these steps on hardware.
Is this the one?
A model, or a context length, that does not fit on one Spark.
Uses the memory of both. One address and one model server. vLLM and SGLang can each do it with their own multi-machine options.
Not every model, format or image supports it. The Sparks exchange data for the whole of every request. Each node must still fit its own share: the pair is not one flat pool of memory.
Compare all five in the cluster method chooser.
Decide first
| Decision | Your choices | How to decide |
|---|---|---|
| Split at all? | One split model, or a copy on each | Split when the model, or the context you need, will not fit on one Spark. |
| Which software? | vLLM or SGLang | The one whose current documents and image support your model split in two. The NVIDIA two-Spark cluster playbook linked on this page is for vLLM. |
| Which parallel mode? | Tensor, pipeline, or another | What your model, and its tested recipe, support. |
| How do the nodes join? | vLLM's own multi-node options, or Ray | This page uses vLLM's own options, with no Ray cluster. Choose Ray only if your guide asks for it, and read the Ray page's security notes first. |
| Who can call the API? | The first Spark only, through SSH (this page), or your network with an API key | The narrowest that works. |
Each DGX Spark has one GPU, so two Sparks give two. In vLLM, the number of GPU workers for one copy is the tensor size times the pipeline size (design page). To split one copy over two Sparks, one of the two is 2 and the other 1.
| Mode | What is divided | vLLM option (default 1) | SGLang option (default 1) | On two Sparks |
|---|---|---|---|---|
| Tensor parallel | The work inside each layer. Both GPUs hold part of every layer. | --tensor-parallel-size | --tp or --tp-size | What this page's commands and NVIDIA's two-Spark vLLM recipes use. |
| Pipeline parallel | The layers. Each GPU holds some of them, and the work passes through in order. | --pipeline-parallel-size | --pp-size | A second way to split. Model support varies; check it. Not run by us. |
| Data parallel | Nothing: each GPU has a whole copy and takes different requests. | --data-parallel-size | --dp or --dp-size | Does not make room for a bigger model. See two copies. |
| Expert parallel | The experts of a mixture-of-experts model. | --enable-expert-parallel (off by default), used with data parallel | --ep or --ep-size | Only for mixture-of-experts models. We know of no two-Spark recipe and give no command. |
vLLM's general advice for a model too big for one machine is tensor parallel inside each machine and pipeline parallel across them: tensor size equal to the GPUs in a machine, pipeline size equal to the number of machines. With one GPU a machine that means pipeline 2, tensor 1. It also says tensor parallel needs fast links between nodes. NVIDIA's DGX Spark cluster playbook instead uses tensor 2 across the ConnectX cable in its two-Spark recipes. These differ. Our advice: follow the tested recipe for your exact model. With no recipe, test the modes your model supports and measure both. We have measured neither.
vLLM's own pipeline form, cut down by us to one GPU a node and not run, replaces --tensor-parallel-size 2 in the commands below with --pipeline-parallel-size 2 (tensor stays 1). SGLang's pipeline parallel page presents it for long prompts, using --pp-size with the same node options; its chunk sizing that adjusts itself is marked experimental. Its examples that we read use larger systems than two Sparks, so we give no SGLang pipeline command.
Settings
From vLLM's serve reference, read on 27 November 2026, when the newest release was v0.34.0. Your image can hold another version: check its --help=all.
| Setting | What it controls | Default | On two Sparks, and when to change it |
|---|---|---|---|
--nnodes | Number of machines, when vLLM's multiprocessing backend joins them. | 1 | 2 |
--node-rank | This machine's number. | 0 | 0 on the first, 1 on the second. |
--master-addr | The address where the nodes meet. | this machine only (loopback) | The first Spark's cluster link address, the same on both. |
--master-port | The port where they meet. | 29501 | The same on both. Change it if the port is taken. |
--headless | Run with no API server. | off | On the second Spark. |
--distributed-executor-backend | How workers on several machines are run: mp (multiprocessing) or ray. | See the note | Left out here, as in vLLM's and NVIDIA's multi-node commands that use --nnodes. |
--tensor-parallel-size, --pipeline-parallel-size | The parallel mode. | 1 and 1 | One of them 2, the same on both. |
--host, --port | Where the API listens. | no host default stated; 8000 | This page keeps the API on the first Spark itself. |
--api-key | A key callers must send on protected paths. | none | Set it before anyone else can reach the API. It does not guard every path. |
--max-model-len | Context length, prompt and reply together. | read from the model's settings file | Lower it if loading runs out of memory. Same on both. |
--gpu-memory-utilization | Share of GPU memory for the model processes, 0 to 1. | Unset: 1.0 with the extensible cache, 0.92 otherwise | Take it from a tested recipe for your model, not from another one. Same on both. |
vLLM's pages do not word the backend default the same way. The parallelism page says Ray is the default across nodes; the launch arguments page says Ray must be chosen explicitly and that multiprocessing across nodes needs --nnodes. Read your startup log to see which your version used. To force the native way, --distributed-executor-backend mp names it; we have not run either form.
| Variable | What it tells the software | When to change it |
|---|---|---|
VLLM_HOST_IP | This node's own address. | Always this Spark's cluster link address. vLLM's pages give it as the fix when the log shows the wrong address. |
NCCL_SOCKET_IFNAME, GLOO_SOCKET_IFNAME | The network interface that NCCL and Gloo, the libraries that link the processes, use. | The cluster interface that is up on that Spark. |
NCCL_IB_HCA | Which RDMA devices NCCL uses. | The names that match that interface. |
vLLM says that if NCCL's log shows [send] via NET/Socket, traffic is going over plain TCP and not the faster direct path. Its troubleshooting page uses NCCL_DEBUG=TRACE to get a detailed log, and has a script that tests the nodes before a model is involved.
From SGLang's server arguments as read on 27 November 2026, when the newest release was v0.5.23.
| Setting | What it controls | Default | On two Sparks |
|---|---|---|---|
--tp, --pp-size | Tensor and pipeline parallel sizes. | 1 and 1 | One of them 2 (our reading; see below). |
--nnodes | Number of machines. | 1 | 2 |
--node-rank | This machine's number. | 0 | 0, then 1. |
--dist-init-addr | Address and port where the nodes meet. | none | The first Spark's link address and a free port, the same on both. |
--host | Where the web server listens. | this machine only (loopback) | Leave it, and use SSH. |
--port | The web server's port. | 30000 | Change if taken. |
--api-key | The server's key. | none | Set it before listening beyond this Spark. |
--mem-fraction-static | Share of memory set aside for model weights and cache. | Worked out from the GPU's memory; 0.88 if that cannot be read | SGLang's recipe for your model, if it has one. |
--context-length | Longest context. | from the model's settings file | Lower if memory runs out. |
--max-running-requests | Most requests running together. | none set | Lower if memory runs out under load. |
Before you start
Two DGX Sparks on the same current DGX OS, with the cable link set up and tested as in the cluster setup guide. In the commands, my-spark is the first Spark, spark-two the second, and USER your user name. Replace words in capitals with your own values. Nothing on this page has been run by us on hardware.
Check first that your model and image support a two-way split. NVIDIA's vLLM cluster playbook has tested two-Spark recipes, with their own image, model and settings. If you want a result that is most likely to start, follow one of those exactly, and do not mix parts of different recipes. The commands below show only the parts that make it a two-machine run. Each Spark needs the same memory size, says that playbook.
How it fits together
vLLM
Use one image tag on both Sparks, with a vLLM version new enough to list the node options:
export IMAGE="YOUR-VLLM-IMAGE:TAG"
docker run --rm --gpus all --entrypoint vllm "$IMAGE" serve --help=all | grep -- --nnodes
--privileged with host networking gives the container wide control of the Spark. NVIDIA's manual command uses both. Run only images you trust. We have not tested whether a narrower setting works.
ETH_IF is the cluster interface that is up, such as enp1s0f1np1. IB_IF holds the matching RoCE names. HEAD_IP is the first Spark's link address on that interface, on both; MY_IP is each Spark's own.
export HEAD_IP="FIRST-SPARK-LINK-ADDRESS"
export MY_IP="THIS-SPARK-LINK-ADDRESS"
export ETH_IF="enp1s0f1np1"
export IB_IF="rocep1s0f1,roceP2p1s0f1"
docker run --rm -it --name vllm_cluster \
--privileged --gpus all --ipc host --network host \
--ulimit memlock=-1 \
-e VLLM_HOST_IP="$MY_IP" -e HEAD_IP -e HF_TOKEN \
-e NCCL_SOCKET_IFNAME="$ETH_IF" -e GLOO_SOCKET_IFNAME="$ETH_IF" \
-e NCCL_IB_HCA="$IB_IF" \
-v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
--entrypoint /bin/bash "$IMAGE"
This loads both GPUs and takes much of both memories. Check that nothing important is running on either Spark.
Inside each container. The two commands differ only in the last line. The first waits for the second.
# first Spark
vllm serve ORG/MODEL --tensor-parallel-size 2 \
--nnodes 2 --master-addr "$HEAD_IP" --master-port 29501 \
--host localhost --port 8000 \
--node-rank 0
# second Spark
vllm serve ORG/MODEL --tensor-parallel-size 2 \
--nnodes 2 --master-addr "$HEAD_IP" --master-port 29501 \
--host localhost --port 8000 \
--node-rank 1 --headless
Add the settings your model needs, such as a context limit, the same on both. Both Sparks need the model files, so leave disk space on each.
Our choice: --host localhost keeps the API on the first Spark only; NVIDIA's recipes listen on every interface. Reach it by SSH tunnel. Do not copy settings meant for another model.
SGLang
Use SGLang instead of vLLM, not beside it. It loads both GPUs. Stop any other model server on both Sparks first, knowing that stopping one ends its replies.
SGLang's multi-node page uses --dist-init-addr (the first node's address and a free port), --nnodes and --node-rank. Run the same SGLang image on both, with the same container options as above, then inside them:
# first Spark
python3 -m sglang.launch_server --model-path ORG/MODEL --tp 2 \
--dist-init-addr "$HEAD_IP:50000" --nnodes 2 --node-rank 0
# second Spark
python3 -m sglang.launch_server --model-path ORG/MODEL --tp 2 \
--dist-init-addr "$HEAD_IP:50000" --nnodes 2 --node-rank 1
--tp counts GPUs across the whole cluster. SGLang's example uses two nodes with more GPUs each; --tp 2 is our reading for two Sparks with one GPU each. On 26 November NVIDIA's SGLang playbook did not mark DGX Spark as multi-node, so we know of no NVIDIA-tested two-Spark SGLang recipe in it. We have not run this either.
SGLang's server arguments page says --host defaults to the machine itself only; the default port in NVIDIA's examples is 30000. If you change the host so others can reach it, set --api-key. If a multi-node start deadlocks, SGLang suggests trying --disable-decode-cuda-graph --disable-prefill-cuda-graph. Treat that as a troubleshooting step, not a normal setting.
Check
| Check | Success |
|---|---|
| Both terminals | Both load the model. The first reports that the API server has started (vLLM: Application startup complete). |
On the first Spark, in a second terminal: curl --fail http://localhost:8000/health (SGLang: port 30000) | No error. |
curl http://localhost:8000/v1/models, then a short chat request | Your model is listed and a reply comes back. |
nvidia-smi on each Spark while a request runs | Both GPUs show the model process and activity. |
| Your own typical prompts, one at a time and several together | Note time to first word and words per second. This is your baseline. |
To reach the API from your computer:
ssh -N -L 8000:localhost:8000 USER@my-spark.local
Security
vLLM says all traffic between nodes is insecure by default, and that the PyTorch parts it uses may listen on every network interface, whatever address you gave. Setting --host does not cover those. Check with sudo ss -ltnp while it runs, and make sure only the other Spark can reach the internal ports.
Stop and undo
This ends every reply in progress.
To stop: press Ctrl+C in both terminals, then type exit. From another terminal on each Spark you can use:
docker stop vllm_cluster
The container is removed when it stops, because of --rm. Nothing starts it again after a reboot. To undo further, remove the image with docker rmi. Model files stay in ~/.cache/huggingface until you delete them. The cluster link stays.
Problems
| What you see | What to try |
|---|---|
| The first Spark waits for ever | The second has not joined. Read its terminal; check the same address and port on both, and that the link pings. |
| One node runs out of memory | Each node must fit its share. Lower the context limit or the number of requests at once, the same on both. |
NCCL's log shows NET/Socket | Traffic is on plain TCP. Check NCCL_IB_HCA and the link. |
| It stops while running | Look at both terminals. Stop both, then start both. |
| It uses the home network | Check ETH_IF, IB_IF and the addresses on each Spark. |
| The two report different versions | Use the same image tag and model revision on both. |
More: cluster problems by symptom.
Next
Server AI Hub is our app for looking after a DGX Spark. You do not need it to follow this playbook. It is coming soon to the App Store and the Microsoft Store.
Sources
Read on 26 November 2026; the decision, sharing and settings sections on 27 November 2026, from the current documentation then (newest releases vLLM v0.34.0 and SGLang v0.5.23; the pages themselves do not all name a version). These projects change often; if their pages differ from this one, follow them.
General guidance only, in our own words. Back up before you start; you use these steps at your own risk. NVIDIA, DGX, DGX Spark, ConnectX and CUDA are trademarks of NVIDIA Corporation; Kubernetes, K3s, Ray, PyTorch, vLLM, SGLang, NGINX, Docker and other names belong to their owners. 6ixLabs is not affiliated with or endorsed by NVIDIA or any of these projects.