eugr/spark-vllm-docker

Docker configuration for running VLLM on dual DGX Sparks

What it solves

Getting a modern, fast LLM inference server (vLLM) running on NVIDIA DGX Spark hardware is fiddly, and most guides only cover one machine. This project packages vLLM into Docker images tuned for DGX Spark and adds startup scripts that handle both single-node and multi-node setups, so large models can split across several connected Sparks using high-speed InfiniBand/RDMA networking. It also automates downloading models and copying them across nodes, and pre-tests its images against multiple models so you start from a verified configuration instead of building everything yourself.

How it works

The project centers on a few scripts and a Docker image:

  • The build script (build-and-copy.sh) pulls a tested nightly "runner" image (or a separately tested experimental variant), tags it locally, and can optionally build vLLM from source or from precompiled wheels instead.
  • The launcher script (launch-cluster.sh) starts the server. In solo mode it runs on one Spark; in cluster mode it distributes the container across nodes and coordinates them with Ray or vLLM's native distributed mode, supplying the distributed backend, node ranks, and coordination addresses automatically.
  • A networking guide covers wiring Sparks together: direct connections between two units, QSFP/RoCE switch configurations, 3-node mesh setups, and closed rings of four or more, plus passwordless SSH setup and an optional automated cluster-setup helper.
  • Recipes make setup one-command: run-recipe.sh reads a YAML recipe declaring a model, builds or pulls the image, downloads the model, and launches the server.
  • Performance features include FP8 KV cache, speculative decoding (Draft-flash, MTP, DSpark methods), fast model loading via InstantTensor and fastsafetensors, and disk offloading of certain tables to free memory for a larger KV cache.

The images also include small patches, like correcting CUDA memory reporting under WSL and optionally requiring an API key for most server routes (except health, ping, load, and version endpoints).

Who it's for

DGX Spark owners and operators, whether they have a single unit or a cluster of several Sparks (the changelog mentions 2-, 3-, and 4-node configurations). It's aimed at people who want to serve modern open models — such as Qwen, DeepSeek, Nemotron, and GLM variants — with the newest vLLM features without manually wrestling with builds, networking, and model distribution. It's a community effort and not affiliated with NVIDIA.

Highlights

  • Tested nightly Docker images for both solo and cluster use, with recent-vLLM support.
  • One-command recipes that handle image, model download, and launch together.
  • Multi-node support with InfiniBand/RDMA (NCCL), covering direct connections, switch setups, 3-node meshes, and switchless closed rings.
  • Fast model loading and decoding optimizations: InstantTensor, fastsafetensors, speculative decoding, FP8 KV cache, and disk offload for bigger KV budgets.
  • Model-cache tooling to download, list, back up, and distribute models across cluster nodes.
  • Recipes for newer checkpoints using compression and QAD quantization, with image/video input support for some models.

Related