Learn / DGX Spark Cluster

Split model on two DGX Sparks, part 1: decide and configure

One model across two DGX Sparks. Here's what to decide first. We're starting from the machines: two DGX Sparks, joined by their cable.

Chapters

  1. 0:00Introduction
  2. 0:06Where this fits: The AI stack
  3. 0:12Parallel modes: Tensor or pipeline
  4. 0:24Which one: The advice differs
  5. 0:43What is shared: CPU work isn't split evenly
  6. 1:01Settings: How the nodes meet
  7. 1:17Know the risk: One service
  8. 1:27Wrap up
Read the transcript

Introduction

One model across two DGX Sparks. Here's what to decide first.

Where this fits: The AI stack

We're starting from the machines: two DGX Sparks, joined by their cable.

Parallel modes: 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.

Which one: 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.

What is shared: 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.

Settings: 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.

Know the risk: One service

If either Spark or the cable stops, expect the model to stop. And vLLM says traffic between nodes is insecure by default.

Wrap up

Part two sets it up, checks it, and stops it.

Sources

More lessons