Learn / DGX Spark Cluster Setup
Cluster setup, part 2: choose a method
Two DGX Sparks are linked. Here's how to choose what to run on them. A cable doesn't make one big memory. Each Spark must hold its own share.
Chapters
- 0:00Introduction
- 0:06Know this first: Two Sparks, two memories
- 0:16First choice: Copies, or a split
- 0:27Splitting: No extra cluster software
- 0:37Other tools: Ray, PyTorch, Kubernetes
- 0:52Safety: Keep it private
- 1:04Wrap up
Read the transcript
Introduction
Two DGX Sparks are linked. Here's how to choose what to run on them.
Know this first: Two Sparks, two memories
A cable doesn't make one big memory. Each Spark must hold its own share. And splitting doesn't promise double speed. The two keep exchanging data.
First choice: Copies, or a split
With copies, each Spark runs the whole model. It's good for several users at once. With a split, both hold parts of one model, so a bigger one can fit.
Splitting: No extra cluster software
Both vLLM and SGLang have their own multi-machine options. If either Spark or the cable stops, the split model stops.
Other tools: Ray, PyTorch, Kubernetes
Ray spreads Python work, and vLLM can use it to reach the second Spark. PyTorch distributed is for training, and your own code. Kubernetes restarts and organises many services. It has the most to learn.
Safety: Keep it private
Cluster traffic mostly trusts whoever can reach it. Ray, for one, can run any code sent to it. So keep cluster ports off other networks, and use SSH to get in.
Wrap up
The written pages show setup, checks, stopping and undo for each method.
Sources
- github.com/NVIDIA/dgx-spark-playbooks/tree/main/nvidia/playbook-vllm-cluster
- github.com/NVIDIA/dgx-spark-playbooks/tree/main/nvidia/vllm
- 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/ray-security/index.html
- docs.pytorch.org/docs/2.15/elastic/run.html
- github.com/pytorch/pytorch/blob/main/SECURITY.md
- kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus
- docs.k3s.io/quick-start