TutorialsGB10
Serve a model to your team from a DGX Spark
From a Spark on the office network to an address every colleague can call, with public software only: the model server, the test, and an optional chat page in the browser.
- Time
- About 30 minutes, plus the model download
- For
- A developer or an IT lead with a DGX Spark on the office network
- Status
- NVIDIA’s public guide · not yet run by AI Deskside
What you will have
- A model running on the Spark, behind an OpenAI-compatible address that every computer on your network can call.
- A test that proves it answers.
- Optionally, a chat page in the browser for colleagues who do not write code.
What you need
- A DGX Spark with its first-boot setup done, connected to your office network.
- Docker and the NVIDIA Container Toolkit, normally already present on a DGX Spark.
docker --versionmust succeed. - A free Hugging Face account and an access token, for the models that ask you to accept their terms (see Step 3).
- Nothing else: every piece of software used here is public.
On this page
Step 1
Let your account run Docker
Open a terminal on the Spark and test Docker:
docker ps
If you get a permission error, add your user to the docker group, so that you do not need sudo for every command:
sudo usermod -aG docker $USER newgrp docker
Step 2
Choose a model and download the server
vLLM is the model server. NVIDIA publishes a build of it for the Spark. Find the latest version on the NVIDIA NGC catalogue, then set three values: your Hugging Face token, the container version and the model.
export HF_TOKEN="your_huggingface_token"
export LATEST_VLLM_VERSION=<latest_container_version>
# example: export LATEST_VLLM_VERSION=26.05.post1-py3
export HF_MODEL_HANDLE=<HF_HANDLE>
# example: export HF_MODEL_HANDLE=openai/gpt-oss-20b
docker pull nvcr.io/nvidia/vllm:${LATEST_VLLM_VERSION}NVIDIA lists the models it supports with vLLM on the Spark. Among them:
| Model | Format | Name to use |
|---|---|---|
| GPT-OSS 20B | MXFP4 | openai/gpt-oss-20b |
| GPT-OSS 120B | MXFP4 | openai/gpt-oss-120b |
| Qwen3 32B | NVFP4 | nvidia/Qwen3-32B-NVFP4 |
| Llama 3.3 70B Instruct | NVFP4 | nvidia/Llama-3.3-70B-Instruct-NVFP4 |
| Nemotron 3 Super 120B | NVFP4 | nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4 |
Start with the small one, openai/gpt-oss-20b: it downloads quickly. AI Deskside’s model pages show how much memory each model needs on a Spark.
Step 3
Start the server
This starts the server in the background, under the name vllm-server, and publishes it on port 8000 of the Spark. It is NVIDIA’s basic command, which leaves out two settings you may need. Add them before you run it:
- Memory. By default vLLM reserves nearly all the memory it sees for its cache, whatever the size of the model, and on a Spark that memory is also the system’s. If something else must run on the Spark, such as the chat page of Step 6, add
--gpu-memory-utilizationand a fraction after the model name. NVIDIA’s agent-ready recipe in the same guide uses0.4, which leaves room withopenai/gpt-oss-20b. A larger model needs a larger fraction, enough for its weights and its cache: the two 120B models of the table do not fit in 0.4. AI Deskside has not run this setting. - Your token. The command does not pass it to the container. For a model that asks you to accept its terms on Hugging Face, add
-e HF_TOKEN="$HF_TOKEN"after--gpus all, as NVIDIA’s other examples in the same guide do.
docker run -d --gpus all -p 8000:8000 --name vllm-server \
nvcr.io/nvidia/vllm:${LATEST_VLLM_VERSION} \
vllm serve ${HF_MODEL_HANDLE}The first start downloads the model and loads it, which takes from a few minutes to more than an hour, depending on the model and your line. This command waits until the server is ready, for up to 15 minutes, and shows the end of the log if it is not:
Caution. The line is written for a script. Its last instruction, exit 1, ends the shell when the wait runs out: the window or the SSH connection closes, or, if you ran newgrp docker in Step 1, you fall back to the earlier shell without the values of Step 2. Remove exit 1; before pasting it. Fifteen minutes is short for a first start: to arrive in time, the 14 GB of openai/gpt-oss-20b need a line of at least 125 Mbit/s, and the 65 GB of openai/gpt-oss-120b at least 580 Mbit/s. “Server failed to start within 900s” may then only mean that the download is still running: follow it with docker logs -f vllm-server.
timeout 900 bash -c 'until curl -sf http://localhost:8000/health > /dev/null 2>&1; do sleep 10; done' || { echo "Server failed to start within 900s"; docker logs vllm-server | tail -50; exit 1; }Step 4
Check that it answers
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "'"${HF_MODEL_HANDLE}"'",
"messages": [{"role": "user", "content": "12*17"}],
"max_tokens": 500
}'The answer should contain 204.
Step 5
Give the address to your team
Because of -p 8000:8000, the server answers on the Spark’s network address, not only on the Spark itself. From any computer on the same network, the address is:
http://<spark-address>:8000/v1
Any application built for the OpenAI API can use it: set this address as the base URL and the model name of Step 2 as the model. The server asks for no key unless you configure one.
Repeat the test of Step 4 from a colleague’s computer, with <spark-address> in place of localhost. If it fails there and works on the Spark, the network or a firewall is blocking port 8000.
Step 6 (optional)
A chat page for everyone
Colleagues who do not write code need a page in the browser. NVIDIA’s second guide installs Open WebUI:
docker pull ghcr.io/open-webui/open-webui:ollama docker run -d -p 8080:8080 --gpus=all \ -v open-webui:/app/backend/data \ -v open-webui-ollama:/root/.ollama \ --name open-webui ghcr.io/open-webui/open-webui:ollama
Open http://<spark-address>:8080, click “Get Started” and create the administrator account. Then open the model list at the top left, type gpt-oss:20b and choose to pull it.
Caution. This image brings its own model server, Ollama, and downloads its own copy of the model. It does not use the server of Step 3. Running both at once takes memory for both: on one Spark, limit the server of Step 3 with --gpu-memory-utilization, or stop one of the two.
Open WebUI can also be connected to an OpenAI-compatible server such as the one of Step 3. That setting is described in the Open WebUI documentation, not in NVIDIA’s guide.
Stop and remove
Everything here runs in Docker; the only change to the system is the Docker group of Step 1. To stop the model server and remove it:
docker stop vllm-server docker rm vllm-server
The server’s image stays on the disk for the next start. If you installed the chat page of Step 6, NVIDIA’s guide gives these commands to remove it, its image and its two volumes:
Caution. These commands permanently delete the chat page’s accounts, its conversations and the models it downloaded.
docker stop open-webui docker rm open-webui docker rmi ghcr.io/open-webui/open-webui:ollama docker volume rm open-webui open-webui-ollama
When something fails
| What you see | Cause | What to do |
|---|---|---|
Cannot access gated repo | The model requires you to accept its terms | Request access on the model’s Hugging Face page, then check your token. |
| The model download fails | Token or network | Check the internet connection. For a model that needs your token, add -e HF_TOKEN="$HF_TOKEN" to docker run, as said in Step 3. |
CUDA out of memory | The model and its settings do not fit | Lower --max-model-len and --max-num-seqs, or choose a smaller model. |
| Memory errors although the model should fit | The Spark shares one memory between processor and GPU, and the system cache can hold part of it | Flush the cache with the command below. |
sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'
To do for a production deployment
Before you rely on it in production
Protect the address. As started here, anyone who reaches port 8000 on your network can use the model, with no key and no record of who asked what.
Pin the versions: write down the container version and the model you chose, and do not let “latest” change them for you.
Keep the downloaded model on the disk between restarts by mounting the Hugging Face cache into the container, as NVIDIA’s other recipes do with
-v ~/.cache/huggingface:/root/.cache/huggingface. Make the container start again after a reboot.Measure with your own prompts how many people it serves at an acceptable speed, and set
--max-num-seqsaccordingly.Add logs and monitoring, backups of what your applications store, and a named person who updates the stack.
Where the commands come from
Sources
Read on 30 November 2026. Commands are copied from the sources. A step a source does not show is described in words.
Reference
Fact sheet
- Where this comes from
NVIDIA publishes step-by-step guides for the DGX Spark under an open licence. This tutorial follows two of them, in the order a team needs: serve a model, prove it answers, give the address to colleagues, then add a chat page. Understand Tech’s supported product is presented at the end as the managed alternative.
- Machine
NVIDIA DGX Spark · 128 GB unified. A reference machine helps locate guidance; it does not establish identical behaviour on another maker’s system.
- Software
vLLM in NVIDIA’s NGC container · Open WebUI with Ollama for the optional chat page
- Model
Any model of NVIDIA’s support list for vLLM on Spark; the example uses openai/gpt-oss-20b
- Evidence
Commands from NVIDIA’s DGX Spark playbooks (Apache 2.0), read 30 November 2026 at a fixed commit. AI Deskside has not run them yet. Step 5, calling the server from another computer, follows from the port published in NVIDIA’s command; the guide itself tests on the Spark only.
- Still open
- The container version current on the day you install
- Speed and number of simultaneous users for your model and prompts
- Whether your network lets other computers reach port 8000 on the Spark
- Memory left when the chat page runs its own model beside the server
