Bringing up vLLM and llama.cpp on a DGX Spark with the network fully blocked
- Hardware
- NVIDIA DGX Spark (GB10, arm64, compute capability 12.1, unified memory)
- Models & engines
- torch 2.10.0 with CUDA 12.8 builds, vLLM 0.19.1, DCGM for CUDA 12 from NVIDIA's arm64 repo
llama.cpp CUDA built for 121-real on a CUDA 12.9 builder; Qwen2.5-0.5B and Qwen2.5-7B Q4_K_M for tests - Key gotcha
- A llama.cpp CUDA build for compute 12.0 does not run on GB10 (12.1), because 12.x targets compile as 12.xa kernels that only run on that exact GPU.
What they built
In late October the author had about a week on a DGX Spark. The goal was to get vLLM, llama.cpp and his company's native backend serving on it, first with the network up and then with every outbound connection blocked, and to record what broke.
He found that most failures had nothing to do with the models. They came from the GB10 being an arm64 machine with a Blackwell GPU at compute capability 12.1 that shares one pool of unified memory with the CPU, while a lot of tooling assumes x86, a discrete card and its own VRAM.
The post lists each error, the fix, quick serve speeds per backend and a 6-hour soak test.
Setup
- NVIDIA DGX Spark (GB10, arm64, compute capability 12.1, unified memory)
- Plain Ubuntu 24.04 containers with no system CUDA and outbound traffic blocked for the offline runs
- torch 2.10.0 with CUDA 12.8 builds, vLLM 0.19.1, DCGM for CUDA 12 from NVIDIA's arm64 repo
- llama.cpp CUDA built for 121-real on a CUDA 12.9 builder; Qwen2.5-0.5B and Qwen2.5-7B Q4_K_M for tests
How it works
- Blocking the container's outbound traffic made any backend that tried to download a model, wheel or tokenizer fail immediately instead of quietly fetching it.
- Every place that read GPU memory was changed to fall back to system memory when the driver reports none, since GB10 has no separate VRAM to report.
- vLLM's memory share is sized from what is actually free, minus a 4 GB margin for the rest of the system, instead of using a fixed 0.5 floor.
Results & numbers
- Quick serve checks: llama.cpp CUDA 246 tok/s online and 223 tok/s with outbound blocked; vLLM 152 to 162 tok/s; the native backend 111 to 122 tok/s.
- The arm64 CPU image on the Spark's CPU with no network served 90 to 97 tok/s.
- A 6-hour soak of llama.cpp CUDA with Qwen2.5-7B Q4_K_M and 4 clients: 3,789 requests, 0 errors, 43.7 tok/s average, 51 W average power, 75 °C peak.
- A lighter 64-hour weekend run handled 3,497 requests with 0 errors.
Gotchas
- A llama.cpp CUDA build for compute 12.0 does not run on GB10 (12.1), because 12.x targets compile as 12.xa kernels that only run on that exact GPU.
- With a 0.5 floor on gpu_memory_utilization, vLLM crashed five times in a row with 46.6 of 121.7 GB free.
- In one session about 23 GB of system memory was not returned after a vLLM test, so check free memory before starting the next backend.
- vLLM needed a C compiler at run time, and compose files pinned to linux/amd64 failed with "pull access denied" on arm64 even with the image loaded locally.
“Most of what broke had nothing to do with the models.”— Ashwin J.B.
Do it yourself
- Build llama.cpp for 121-real, not 120, and check your image's own architecture check too.
- Treat "no GPU memory reported" as normal on unified memory and fall back to system memory.
- Size gpu_memory_utilization from free memory with a margin rather than a fixed floor.
- Check free system memory between backend runs.
- Install a C compiler in the image if vLLM needs one, and remove linux/amd64 pins from compose files meant for arm64.
- Test offline with outbound traffic actually blocked to find downloads you forgot about.
Similar setups
smolmaxxing: 16B models on a 1 GB TV box and a 2013 iPad Air, and a 35B on a phone, with patched llama.cpp
Hyperion AI's open lab notebook shows how far a patched llama.cpp can push old, cheap devices by keeping popular experts in RAM and streaming the rest of a model from flash.
Running NVIDIA's looped Dory 4B on a CPU homelab with llama.cpp and an Ollama wrapper
Big Iron built NVIDIA's llama.cpp fork on a no-GPU Debian VM, measured Dory 1.0 4B at each loop count against Qwen3.5-4B, and got it running inside Ollama 0.40 through a wrapper around Ollama's internal llama-server.
A small firm proofreads NDA-bound reports on its own 8-GPU llama.cpp rig with GLM 5.3
Jacques Mattheij's company can't send confidential due-diligence reports to a cloud AI without breaking its NDAs, so it built a ~$25K in-house GPU rig and proofreads them locally with open-weight models.
Booting a local Qwen3.6 35B chat server straight from UEFI on an RTX 3090
Alexey Fateev wrote a 528 KB pure-assembly UEFI file that boots an RTX 3090 with no operating system, loads a 20.5 GB GGUF model and serves an OpenAI-style API and web chat on his LAN.