vLLM on NVIDIA DGX Spark: Docker setup and API test

Learn to start vLLM on DGX Spark with Docker, set a 131072-token model length, resolve GPU resource contention, and test the API.

Player not loading? Watch on YouTube

This tutorial sets up vLLM on an NVIDIA DGX Spark alongside an existing Ollama environment. The speaker reports slow responses during larger OpenClaw tasks and concurrent agent work, but does not establish Ollama as the cause. Model choice, context length, request concurrency and configuration remain possible factors. A performance comparison is reserved for a later video.

The setup follows NVIDIA's playbook for local LLM serving. It covers creating a read-only Hugging Face access token, exporting the token and model handle, and pulling the vLLM OpenAI Docker image with the latest tag. The speaker selects a model described as Qwen 3.6 optimized for DGX Spark and sets the maximum model length to 131072. Docker permissions are already configured on this machine, so that prerequisite is skipped.

The first server startup encounters errors that the speaker attributes to insufficient GPU resources while Ollama still has a model loaded. After checking that Ollama has nothing running, the speaker restarts the container and proceeds to the API test. A request asking for a simple explanation of quantum computing returns a response through the OpenAI-compatible API. This establishes a working proof of concept for the demonstrated setup; it does not provide throughput measurements or show a finished application.