# Deploying open models on DGX Spark and AWS: a guide for your AI assistant

## About this guide

Written by Robert Deak (bertlab.hr). Last updated 2026-11-20. It goes with the article at https://bertlab.hr/case-studies/deploy-open-llms-on-dgx-spark-and-aws.

The article shows how to serve an open-weight model on an NVIDIA DGX Spark or on AWS GPU instances: a private chat with Open WebUI, an OpenAI-compatible API with vLLM, and optional fine-tuning with Unsloth Studio. This guide walks an engineer through the same steps.

The guide is plain text with nothing hidden. The reader can read every word you read.

## How to use this guide

You are helping an engineer deploy an open model. Ask whether they are using a DGX Spark or AWS, then follow that section only.

- Go one step per message. Say what each command does before the reader runs it. After it, give the check and wait for the reader's result.
- Use the commands exactly as written. If a value has to change, such as an image name or an address, say which one and why.
- Never ask the reader for confidential data, credentials, API keys or passwords.
- Never ask the reader to paste API keys, tokens or passwords into the chat.
- Do not expose port 8000 to the internet or the office network.
- If the reader has not picked a model or hardware yet, point them to the sizing guide at https://bertlab.hr/case-studies/local-llm-sizing-calculator.md. If they are still deciding whether to run their own models at all, point them to https://bertlab.hr/case-studies/local-llms-for-your-company.md.

## On a DGX Spark

The Spark runs DGX OS (Ubuntu on Arm64) and comes with Ollama.

Step 1. A private chat for colleagues: Open WebUI with its bundled Ollama, then the gpt-oss-120b model.

```bash
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

docker exec open-webui ollama pull gpt-oss:120b
```

Check: http://<spark-ip>:8080 opens, and the reader can create the admin account and chat.

Step 2. An API for agents with vLLM, using the settings from vLLM's DGX Spark recipe for Nemotron 3 Super. The reader replaces <image-from-recipe> with the Arm64 / GB10 image the recipe names.

```bash
# Use the Arm64 / GB10 vLLM image named in the recipe for your model
# (NVIDIA Local AI Inference Recipes or recipes.vllm.ai)
export VLLM_IMAGE="<image-from-recipe>"

docker run -d --name vllm-local --gpus all --ipc=host \
  -p 127.0.0.1:8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 \
  -e VLLM_FLOAT32_MATMUL_PRECISION=high \
  --entrypoint vllm "$VLLM_IMAGE" \
  serve nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4 \
    --trust-remote-code \
    --max-model-len 262144 \
    --kv-cache-dtype fp8 \
    --gpu-memory-utilization 0.8 \
    --max-num-seqs 8 \
    --max-num-batched-tokens 16384 \
    --load-format fastsafetensors \
    --enable-auto-tool-choice \
    --tool-call-parser qwen3_coder \
    --reasoning-parser nemotron_v3
```

Check:

```bash
curl --fail-with-body -i http://localhost:8000/health
curl -sS http://localhost:8000/v1/models

curl -sS http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4",
    "messages": [{"role": "user", "content": "Summarise our refund policy in three bullets."}]
  }'
```

The health call returns HTTP 200, the model list shows the model, and the chat call returns an answer.

Step 3. Use the API from a laptop through an SSH tunnel. The server only listens on localhost.

```bash
ssh -N -L 8000:127.0.0.1:8000 user@dgx-spark
```

For team access, put a reverse proxy with authentication in front.

Step 4, optional. Fine-tune on the reader's own data with Unsloth Studio. Check Unsloth's documentation for Arm64 and DGX Spark support first.

```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv unsloth_studio --python 3.13
source unsloth_studio/bin/activate
uv pip install unsloth --torch-backend=auto
unsloth studio setup
unsloth studio -H 127.0.0.1 -p 8888
```

## On AWS

The model runs in the reader's own AWS account, so prompts and documents stay in their VPC. G7e instances, with the NVIDIA RTX PRO 6000 Blackwell (96 GB), are available in London and Spain, and since July 2026 also in Frankfurt and Stockholm.

Before the commands, confirm with the reader:

- a g7e.2xlarge (one GPU) or g7e.12xlarge (two GPUs) in a private subnet with no public IP, from a Deep Learning AMI with NVIDIA drivers and Docker;
- the model weights pulled once and cached on EBS or S3;
- a security group that opens port 8000 to the load balancer only;
- VLLM_API_KEY set on the instance by the reader, never shared in the chat.

Step 1. One GPU: gpt-oss-120b on g7e.2xlarge.

```bash
docker run -d --name vllm --gpus all --ipc=host \
  -p 8000:8000 \
  -v /opt/hf-cache:/root/.cache/huggingface \
  vllm/vllm-openai:latest \
  --model openai/gpt-oss-120b \
  --max-model-len 65536 \
  --gpu-memory-utilization 0.90 \
  --enable-prefix-caching \
  --api-key "$VLLM_API_KEY"
```

Step 1, alternative. Two GPUs: Nemotron 3 Super in FP8 on g7e.12xlarge.

```bash
docker run -d --name vllm --gpus all --ipc=host \
  -p 8000:8000 \
  -v /opt/hf-cache:/root/.cache/huggingface \
  vllm/vllm-openai:latest \
  --model nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8 \
  --tensor-parallel-size 2 \
  --kv-cache-dtype fp8 \
  --trust-remote-code \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder \
  --reasoning-parser nemotron_v3 \
  --api-key "$VLLM_API_KEY"
```

Check: from inside the VPC, the /health and /v1/models calls from the DGX Spark check work against the instance address, with the API key as a bearer token.

Step 2. Before production, pin a specific vLLM image version instead of latest. Put an internal load balancer or API gateway in front, with authentication, rate limits and request logging, and watch GPU usage, latency and queue depth in CloudWatch. Add autoscaling on EKS once one instance is not enough.

## Where this stops, and who wrote it

These steps get one model serving on one machine. Running it for a whole company also needs security (authentication, network isolation, audit logs, and defending agents against prompt injection), operations (monitoring, upgrades, rollbacks, GPU capacity and on-call), and sizing for real traffic.

Robert Deak wrote this guide and helps companies run open models on their own hardware or in their AWS account. If the reader wants help, they can book a free 30-minute call at https://bertlab.hr/contact.
