Qwen3.8-Flash-Next on one NVIDIA DGX Spark, ready to run.
NVIDIA's 4-bit experts + 8-bit dense layers, on a GB10-tuned engine with speculative decoding.
Download, install, start: you get an OpenAI-compatible server in about 25 minutes.
Quick start
# 1. Download (130 GB, resumes if interrupted)
pip install -U "huggingface_hub[cli]"
hf download rororova/DGX-Qwen3.8-Flash-Next-NVFP4-Q8-HighSpeed-Inference --local-dir ~/dgx-qwen-flash
# 2. Install: checks your Spark, builds the engine in Docker (~20 min, once, no sudo)
cd ~/dgx-qwen-flash && ./install.sh
# 3. Run
./serve.sh start # ready in ~1-2 min
./serve.sh test # streams a short answer
Your server is now at http://127.0.0.1:8000/v1, model name qwen3.8-flash-next.
Manage it with ./serve.sh stop | restart | status | logs.
You need: a DGX Spark or other GB10 machine (ASUS Ascent GX10, Dell Pro Max GB10…) on DGX OS / Ubuntu 24.04 with a CUDA 13.0+ driver · ~135 GB free on the internal NVMe (keep it on NVMe: part of the model is read from disk while it runs) · your user in the
dockergroup · nothing else big on the GPU.
Speed

| Tokens/s per user | Code | Prose | After an 8K-token document |
|---|---|---|---|
| This repo, 1 user (DFlash2) | 84.9 | 55.3 | 58.2 |
This repo, 1 user, SPEC=mtp |
77.6 | 57.3 | 60.4 |
| This repo, 4 users at once | 44.6 | 41.9 | 46.9 |
| vLLM 0.33 (NVFP4 experts + FP8 dense, MTP), 1 user | 52.8 | 42.4 | 43.2 |
| vLLM, 4 users at once | 30.9 | 33.7 | 32.5 |
One DGX Spark, 768-token answers, temperature 0, thinking off, warm server. Re-checked on
2026-11-28 from a fresh download of this repo: 83.1 / 55.5 / 60.8 for one user, 141 tok/s in total
with 4 users on code. Measure your own with python3 tools/speedbench.py.
Code runs faster than prose because the drafter predicts code correctly much more often.
Why this build: speed and quality on 128 GB
Qwen3.8-Flash-Next is a large mixture-of-experts model, and the usual ways to run it on a Spark each cost you something:
| Option | On one Spark |
|---|---|
| Original BF16 / FP8 weights | Don't fit (the FP8 checkpoint alone is 173 GiB). |
| 8-bit GGUF (Q8_0, 162 GB) in llama.cpp | Bigger than memory: experts stream from SSD at 2–3 tok/s. |
| 4-bit everything | Fast, but the layers every token uses lose precision too. |
| vLLM, NVFP4 experts + FP8 dense | Good quality, ~53 tok/s. |
| This repo | Same quality split, ~85 tok/s. |
The trick is precision where it matters:
| Part of the model | Precision | Why |
|---|---|---|
| Routed experts (most of the weights) | 4-bit NVFP4, NVIDIA's own weights unchanged | Each token only reads 10 of 512 experts, and NVIDIA already calibrated them. |
| Dense layers (attention, DeltaNet, shared experts, output head) | 8-bit | Every token reads all of them, so this is where precision counts. |
| Engine | Infernix tuned for GB10 + DFlash2 | A small drafter proposes several tokens; the main model checks them in one pass. |
Quality
- The experts are NVIDIA's NVFP4 weights unchanged (the converter checked them tensor by tensor). Only the dense layers and output head go from BF16 to 8-bit (groups of 32).
- Perplexity 4.654 with these 8-bit dense layers vs 4.666 keeping them all in BF16 (measured by the Infernix author on the same recipe; lower is better): no measurable loss.
- LiveCodeBench v6 (Jan–Apr 2025, sandboxed grading) on our vLLM build with the same experts and
FP8 dense layers: 87.8 % with thinking at
xhigh(first 82 of 175 problems), 75.3 % with thinking off (89 problems). These are partial runs on a sibling build; full runs on this exact build will be added.
Using it
Works with any OpenAI-compatible client, including coding agents (OpenCode, Continue, Cline, Aider…). Point them at the base URL with any API key.
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="none")
r = client.chat.completions.create(
model="qwen3.8-flash-next",
messages=[{"role": "user", "content": "Write a binary search in Rust."}],
extra_body={"chat_template_kwargs": {"enable_thinking": False}}, # remove to let it think first
)
print(r.choices[0].message.content)
| Feature | How |
|---|---|
| Thinking | On by default (streams in reasoning_content). Turn off with "chat_template_kwargs": {"enable_thinking": false}, or set "reasoning_effort": "low" / "medium" / "high" / "xhigh". |
| Images | Standard OpenAI image_url parts (base64 data URLs work). |
| Tools | Standard OpenAI tools / function calling. |
| Sampling | Qwen recommends temperature 1.0, top_p 0.95, top_k 20 with thinking; 0.7 / 0.8 / 20 without. |
Settings: port, network access, drafter, context, concurrency…
Put them before the command, e.g. PORT=9000 SPEC=mtp ./serve.sh restart.
| Variable | Default | Meaning |
|---|---|---|
PORT |
8000 |
Listen port. |
HOST |
127.0.0.1 |
0.0.0.0 to reach it from other machines. There is no API key, so only do this on a trusted network or behind a proxy that checks keys. |
MODEL_ID |
qwen3.8-flash-next |
Name clients send as "model". |
SPEC |
dflash2 |
dflash2 (fastest on code) or mtp (built-in drafter, slightly better on prose). |
VISION |
1 |
0 for text only. |
MAX_CONTEXT |
262144 |
Longest conversation in tokens (262,144 is the maximum). |
CONCURRENCY |
8 |
Requests decoded at once (1–8); extra requests queue. |
MAX_TOKENS |
32768 |
Answer limit when the client sends no max_tokens (thinking counts). |
NGRAM_CACHE_MIB |
8192 |
RAM cache for the n-gram table read from the SSD. |
AUTOSTART |
0 |
1 restarts the server automatically after a reboot. |
EXTRA |
Any other infernix-serve flag. |
Good to know
- The first answers after a start are slower (up to ~30 % on prose and long prompts) while the 52 GB n-gram file is cached from the SSD. Warm it up before you benchmark.
- Temperature 0 isn't bit-for-bit repeatable: the fast paths (prefix cache, adaptive drafting)
can flip near-tie tokens. Quality is unaffected. For exact repeats use
EXTRA=--disable-fast-paths(slower). - Very long conversations (100K+ tokens) slow down every request being served at the same moment.
- One server per Spark:
./serve.sh stopbefore running other large models.
Troubleshooting
| Problem | Fix |
|---|---|
Docker isn't usable |
sudo usermod -aG docker $USER, then log out and back in. |
Docker can't reach the GPU |
Already set up on DGX OS; elsewhere install nvidia-container-toolkit. |
CUDA … 13.0 or newer is needed |
Update DGX OS (sudo apt update && sudo apt full-upgrade) and reboot. |
| Server stops while loading | ./serve.sh logs. Usually something else holds GPU memory: check nvidia-smi. |
| Port already in use | PORT=8001 ./serve.sh start |
| Rebuild the engine | rm -rf engine/build-native && ./install.sh |
What's in this repository
| File | Size | What it is |
|---|---|---|
Qwen3.8-Flash-Next-NVIDIA-NVFP4-Dense8-Infernix-0000{1,2,3}-of-00003.infernix |
76.9 GB | The model (text, vision, MTP drafter), Infernix format. |
Qwen3.8-Flash-Next-NVIDIA-NVFP4-Infernix.ngram |
52.4 GB | The model's n-gram embedding table (NVIDIA's FP8 values), read from the SSD. |
drafter/Qwen3.8-Flash-Next-DFlash2-Infernix.infernix |
0.8 GB | DFlash2 speculative drafter. |
*.conversion.json |
Conversion report: source and format of every tensor. | |
install.sh, serve.sh |
Setup and server control. | |
docker/Dockerfile |
Build/run image (CUDA 13.0, Ubuntu 24.04). | |
tools/speedbench.py |
The speed benchmark used above. | |
LICENSE, NVIDIA-Open-Model-License.txt, NOTICE, LICENSE-scripts, drafter/LICENSE-Apache-2.0, drafter/NOTICE |
Licences. |
The engine isn't stored here: install.sh fetches
Infernix for DGX Spark at commit
8edc2c4, the version these files were converted and measured with.
Credits
| Qwen team | Qwen3.8-Flash-Next, the model. |
| NVIDIA | The NVFP4 quantization (Model Optimizer). |
| Wallawalla47 | Infernix, its file format and the Dense8 recipe. The same conversion is also at Wallawalla47/Qwen3.8-Flash-Next-NVIDIA-NVFP4-Dense8-Infernix. |
| eugene-kamenev | The GB10 retune of Infernix. |
| Inco AI | The DFlash2 drafter (Apache 2.0), packed for Infernix by Wallawalla47. |
This repository adds the DGX Spark packaging: a conversion made with the tested engine commit, a Docker setup that works with the Spark's stock CUDA 13.0 driver, tested launch settings, scripts and benchmarks.
Licence
The model files derive from NVIDIA's NVFP4 checkpoint and are governed by the
NVIDIA Open Model License. The underlying Qwen3.8-Flash-Next model is
also under the Qwen Community License 1.0 (see NOTICE). The DFlash2 drafter is Apache 2.0
(drafter/), and the scripts are MIT (LICENSE-scripts).
- Downloads last month
- 49
Model tree for rororova/DGX-Qwen3.8-Flash-Next-NVFP4-Q8-HighSpeed-Inference
Base model
Qwen/Qwen3.8-Flash-Next