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

  1. 0:00Introduction
  2. 0:06Know this first: Two Sparks, two memories
  3. 0:16First choice: Copies, or a split
  4. 0:27Splitting: No extra cluster software
  5. 0:37Other tools: Ray, PyTorch, Kubernetes
  6. 0:52Safety: Keep it private
  7. 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

More lessons