How eugr/spark-vllm-docker works
This repository packages and runs vLLM optimized for DGX Spark, from a single host or a multi-node cluster. The primary workflow is to select a YAML recipe, optionally prepare an image and download model weights, then launch a configured vLLM server; cluster setup also supports topology discovery and distributed execution. Separate branches cover runtime patches and startup-memory profiling. The README documents the deployment flow and capabilities; profiling links are limited to the sampled collector/card code, so unsampled stages are not connected speculatively.
Main entry points: run-recipe.py Recipe runner · launch-cluster.sh Cluster launcher · hf-download.sh Model download · profile_card.py Profile card
Components 18
Deployment workflow
- Recipe definitions
recipes - Recipe runner
run-recipe.py - Image preparation
build-and-copy.sh - Model download
hf-download.sh - Model cache
hf-cache.py
Cluster operations
- Topology discovery
cluster_topology.py - Cluster launcher
launch-cluster.sh
Inference runtime
- vLLM image
Dockerfile - vLLM serving
- Runtime adaptations
mods
Memory profiling
- Startup instrumentation
mods/memory-profile/probe.py - Profile collection
mods/memory-profile/collect.py - Profile card
mods/memory-profile/profile_card.py - Capacity analysis
mods/memory-profile/capacity.py - Profile reporting
mods/memory-profile/report.py
Other components
- Operator
- Hugging Face
- Spark hosts
Connections 17
- Operator → Recipe runner: runs recipe
README.md - Recipe runner → Recipe definitions: loads settings
README.md - Recipe runner → Image preparation: prepares image
README.md - Recipe runner → Model download: downloads weights
README.md - Model download → Hugging Face: fetches models
README.md - Model download → Model cache: stores weights
- Image preparation → vLLM image: builds or pulls
README.md - Recipe runner → Topology discovery: resolves nodes
run-recipe.py - Recipe runner → Cluster launcher: launches command
README.md - Operator → Cluster launcher: runs server
README.md - Cluster launcher → Spark hosts: starts containers
README.md - Cluster launcher → vLLM serving: runs inference
README.md - vLLM image → vLLM serving: provides runtime
README.md - Runtime adaptations → vLLM serving: adapts runtime
README.md - Profile collection → Profile card: writes profile
mods/memory-profile/collect.py - Profile card → Capacity analysis: analyzes profile
- Profile card → Profile reporting: renders report
mods/memory-profile/report.py