library_name: infernix
pipeline_tag: image-text-to-text
inference: false
license: apache-2.0
base_model:
- OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
language: - en
tags: - dgx-spark
- gb10
- qwen4
- qwen4-35b-a3b
- uncensored
- abliterated
- nvfp4
- 4-bit
- moe
- speculative-decoding
- infernix
- openai-compatible
- multimodal
- local-llm
Qwen4-35B-A3B Uncensored on one NVIDIA DGX Spark, ready to run.
4-bit experts + 8-bit everything else: full quality, 2.2x faster than llama.cpp.
Download, install, start: you get an OpenAI-compatible server in about 25 minutes.
Two builds: Fast + High Quality (this one) · Fastest (23% faster, slightly lower quality)
Quick start
# 1. Download (44 GB, resumes if interrupted)
pip install -U "huggingface_hub[cli]"
hf download rororova/DGX-Spark-Qwen4-35B-A3B-Uncensored-Fast-HighQuality --local-dir ~/qwen4-uncensored
# 2. Install: checks your Spark, builds the engine in Docker (~20 min, once, no sudo)
cd ~/qwen4-uncensored && ./install.sh
# 3. Run
./serve.sh start # ready in ~1-3 min
./serve.sh test # streams a short answer
Your server is now at http://127.0.0.1:8000/v1, model name qwen4-35b-a3b-uncensored.
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 · ~49 GB free disk · ~70 GB free memory while it
runs · your user in thedockergroup. If you already set up the
Qwen3.8 DGX release,
the Docker image is shared; the engine is rebuilt at the newer commit.
Speed

Decode tokens/s on one DGX Spark, temperature 0, 768-token answers, tools/speedbench.py.
| Tokens/s | Code | Prose | After an 8K-token document |
|---|---|---|---|
| This repo, 1 user | 112 | 96 | 96 |
| This repo, total with 4 users | 189 | ||
| This repo, total with 6 users | 228 | ||
| Fastest build, 1 user | 138 | 115 | 121 |
| llama.cpp Q8_0 (same model), 1 user | ~50 | ~50 |
Multi-user rows are the total across all users. Speed comes from MTP speculative decoding (Qwen4's own
draft head) plus n-gram drafting, an 8-bit KV cache and GB10-tuned kernels.
Why this build: speed and full quality
Qwen4-35B-A3B is a mixture-of-experts model (35B weights, 3B used per token), and the usual ways to run it
on a Spark each cost you something:
| Option | On one Spark |
|---|---|
| Original BF16 weights (114 GB) | Barely fit in 128 GB, leaving little room for context, and read 4x the bytes per token. |
| 8-bit GGUF (Q8_0) in llama.cpp | Good quality, ~50 tok/s. |
| Plain NVFP4 (4-bit experts, 16-bit everything else) | Exact NVFP4 quality, 78 tok/s. |
| This repo | Same quality as plain NVFP4, 112 tok/s. |
| Fastest build | All 4-bit, about 1-2% higher perplexity, 138 tok/s. |
The trick is precision where it matters:
| Part of the model | Precision | Why |
|---|---|---|
| Routed experts (most of the weights) | 4-bit NVFP4, RadixArk's weights unchanged (the 26 uncensored layers re-quantized the same way) | Each token only reads 8 of 256 experts, and they are already calibrated. |
| Dense layers (attention, linear attention, shared expert, output head) | 8-bit (groups of 32) | Every token reads all of them: 8-bit halves the bytes with no measurable loss. |
| Engine | Infernix tuned for GB10 + MTP + n-gram drafting | Qwen4's own draft head proposes several tokens; the main model checks them in one pass. |
Quality
- The uncensoring is intact: RadixArk's NVFP4 experts with only the 78 tensors OpenUncensored's edit
changed replaced; the 26 re-quantized expert layers have the same error as RadixArk's own (0.086). - Functional checks at temperature 0, both builds: 12/12 coding tasks pass their unit tests, 4/4 tool
calls correct, 0/8 refusals on borderline prompts stock Qwen refuses. - Perplexity and drift below. Measured with
infernix-perplexityon a 261K-token corpus. KL = how far the next-token probabilities drift
from the 16-bit reference (lower is better; the bit-exact NVFP4 build with the normal 8-bit KV cache sets the
floor: nothing that serves with an 8-bit cache can go below it).
| Build | Perplexity | Mean KL | Top-1 token agrees |
|---|---|---|---|
| Reference (NVFP4 experts, 16-bit everything else, 16-bit KV) | 4.712 | ||
| Bit-exact NVFP4 + 8-bit KV (floor) | 4.713 | 0.0112 | 96.1% |
| This repo (Fast + High Quality) | 4.716 | 0.0136 | 95.6% |
Fastest build, A4=0 |
4.759 | 0.0415 | 92.1% |
Fastest build, A4=1 |
4.794 | 0.0657 | 90.2% |
Uncensored model. Built from OpenUncensored/Qwen4-35B-A3B-Uncensored,
which has Qwen4's refusals removed. It will answer requests stock Qwen declines. You are responsible for
how you use it and for following the law where you are.
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="qwen4-35b-a3b-uncensored",
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). Off: "chat_template_kwargs": {"enable_thinking": false}. Effort: "reasoning_effort" = "xhigh", "high", "low" or "off" (Qwen4's template rejects "medium"). |
| Images | Standard OpenAI image_url parts (base64 data URLs work). |
| Tools | Standard OpenAI tools / function calling. |
| Sampling | Server defaults follow Qwen: temperature 1.0, top_p 0.95, top_k 20. |
Settings: port, network access, context, concurrency…
Put them before the command, e.g. PORT=9000 ./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 |
qwen4-35b-a3b-uncensored |
Name clients send as "model". |
VISION |
1 |
0 for text only. |
MAX_CONTEXT |
262144 |
Longest conversation in tokens. |
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). |
A4 |
0 |
Not supported by this build (needs the 4-bit FastQ layers: use the Fastest build). |
FAST_PATHS |
1 |
Extra engine kernels and multi-user speculation; tested: same quality, +3.5% for 1 user, +26-57% total with 2-6 users. 0 turns them off. |
AUTOSTART |
0 |
1 restarts the server automatically after a reboot. |
EXTRA |
Any other infernix-serve flag. |
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 memory: check nvidia-smi and free -g. |
| Port already in use | PORT=8001 ./serve.sh start |
| Rebuild the engine | rm -rf engine/build-native && ./install.sh |
One model server per Spark: ./serve.sh stop before running other large models.
What's in this repository
| File | Size | What it is |
|---|---|---|
Qwen4-35B-A3B-Uncensored-q8all-Infernix-00001-of-00001.infernix |
23.2 GB | The model (text, vision, MTP draft head), Infernix format. |
Qwen4-35B-A3B-Uncensored-nvfp4-Infernix.ngram |
20.5 GB | Qwen4's n-gram embedding table (FP8), held in RAM. Required. |
*.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). | |
patches/infernix-toolcall-nonfatal.patch |
Engine fix applied by install.sh: a tool call that leaves the tool grammar no longer stops the server. |
|
tools/speedbench.py |
The speed benchmark used above. | |
assets/ |
README images. | |
recipes/qwen4_q8all.py |
The conversion recipe (which layers are 8-bit). | |
LICENSE, NOTICE, LICENSE-scripts |
Licences. |
The engine isn't stored here: install.sh fetches
Infernix for DGX Spark at commit90a49a5, the version these files were converted and measured with.
How it was made: RadixArk's NVFP4 checkpoint with the 78 tensors the uncensoring changed replaced
(52 BF16 layers copied from OpenUncensored's BF16; the 26 edited expert down-projections re-quantized to NVFP4
with a per-block MSE scale search, error 0.086, the same as RadixArk's own), then converted with the Infernix
recipe qwen4_q8all (custom, see recipes/).
Credits
| Qwen team | Qwen4-35B-A3B, the model (Apache 2.0). |
| OpenUncensored | Qwen4-35B-A3B-Uncensored, the refusal removal. |
| RadixArk | The NVFP4 quantization the experts come from. |
| Wallawalla47 | Infernix, its file format and conversion tools. |
| eugene-kamenev | The GB10 retune of Infernix. |
This repository adds the DGX Spark packaging: the uncensored NVFP4 merge, the conversion, tested launch
settings, a Docker setup for the Spark's stock CUDA 13.0 driver, scripts and benchmarks.
Licence
Model files: Apache 2.0 (LICENSE), like Qwen4-35B-A3B, the OpenUncensored edit and RadixArk's NVFP4 (see NOTICE).
Scripts: MIT (LICENSE-scripts).