DGX Spark clusters: two Sparks together
You've got two DGX Sparks. What does joining them give you? We're at the bottom of the stack: the machines, and the cable between them.
Chapters
- 0:00Introduction
- 0:05Where this fits: The AI stack
- 0:11First: Still two computers
- 0:18Two main choices: Copies, or a split
- 0:31The cost of a split: The link is slower
- 0:53Connecting them: Connect, then prove it
- 1:10What runs across them: Pick by the job
- 1:30Plan for this: Failure and safety
- 1:47Wrap up
Read the transcript
Introduction
You've got two DGX Sparks. What does joining them give you?
Where this fits: The AI stack
We're at the bottom of the stack: the machines, and the cable between them.
First: Still two computers
A cluster of two Sparks is still two computers. A cable joins them, but it doesn't merge their memory.
Two main choices: Copies, or a split
With copies, each Spark runs the whole model. That suits several users at once, if the model fits on one Spark. With a split, each holds part of one model, so there can be room for a bigger one.
The cost of a split: The link is slower
A split has a cost. The Sparks keep sending each other data, over a link much slower than their memory. NVIDIA lists two hundred seventy three gigabytes a second for each Spark's memory, and up to twenty five gigabytes a second for each fast port. So two Sparks are not twice as fast. And with copies, one reply is still made by one Spark.
Connecting them: Connect, then prove it
To connect them, use one approved cable, in the same port on each Spark. NVIDIA Sync's Cluster Assistant sets the addresses and keys, or you can do it by hand. Then check the traffic really takes the cable, and run the link test when both Sparks are idle.
What runs across them: Pick by the job
What you run across them depends on the job. vLLM and SGLang have their own ways to split a model across machines. Ray spreads Python work. PyTorch distributed is for training, and your own code. Kubernetes restarts and organises many services, and has the most to learn.
Plan for this: Failure and safety
If a split model loses a Spark or the link, expect it to stop. With copies, the other one can carry on, if your load balancer is still running and notices. And keep cluster ports off other networks. Cluster traffic mostly trusts whoever can reach it.
Wrap up
If your model fits on one Spark, try copies first. The playbooks walk you through each setup.
Sources
- docs.nvidia.com/dgx/dgx-spark/hardware.html
- docs.nvidia.com/dgx/dgx-spark/spark-clustering.html
- docs.nvidia.com/sync/latest/cluster-assistant.html
- github.com/NVIDIA/dgx-spark-playbooks/tree/main/nvidia/playbook-nccl
- docs.vllm.ai/en/latest/serving/parallelism_scaling
- docs.vllm.ai/en/latest/usage/security
- docs.sglang.io/docs/references/multi_node_deployment/multi_node
- docs.ray.io/en/latest/cluster/key-concepts.html
- docs.ray.io/en/latest/ray-security/index.html
- docs.pytorch.org/docs/2.15/elastic/run.html
- docs.k3s.io/quick-start
- nginx.org/en/docs/http/ngx_http_upstream_module.html