ZeroInfer ร Qwen3.6-35B-A3B (NVFP4)
Fast, honest inference for the hardware you actually own.
This repo ships everything needed to run a 35B MoE (โ3B active/token) on a single 32 GB V100 โ model, engine, and two speculative-drafting heads:
| What | Notes | |
|---|---|---|
| ๐ง | Qwen3.6-35B-A3B (NVFP4) | ~20 GB resident ยท hybrid GDN + full attention ยท 256-expert MoE ยท 256K native context |
| โก | ZeroInfer | OpenCraft AI's from-scratch Rust/CUDA engine โ closed source, prebuilt V100 binary below |
| ๐ฏ | Two draft heads | DFlash (general) + DFlash2 (stronger) for speculative decoding |
No synthetic math-peak claims โ every number on this page was measured on the exact hardware named.
What's new in this release (Oct 2026)
- DFlash2 draft head โ dynamic-conv + top-16 selector drafter. Measured +13% relative acceptance over DFlash1 and 1.5โ1.8ร plain decode on general content; won every output regime tested (echo, rewrite, novel generation).
- Volta tensor-core attention prefill โ mma.m8n8k4 flash-attention kernels: ~1.5ร faster long-context prefill.
- Quantized KV cache โ 4-bit and fp8 KV modes; 32K-token contexts fit in ~3 GB of KV. Shared prefix caching works across requests and across engine processes.
- Proper sampling โ temperature / top-k / top-p / repetition penalty per request, correct through speculative decode (greedy remains available and bit-stable per config).
- Continuous batching โ one engine serves up to 8 concurrent sequences per GPU in lockstep batched decode.
- Honest context gating โ over-limit prompts are rejected with a clean error, never silently truncated mid-prefill.
What's in this repo
| File | What it is |
|---|---|
model.safetensors |
Qwen3.6-35B-A3B, NVFP4-quantized (packed weights, custom mma.m8n8k4 kernels) |
zeroinfer-v100 |
ZeroInfer engine binary โ NVIDIA V100 (sm_70), 32 GB |
df_draft_f16.safetensors |
DFlash draft head โ speculative decoding (โ2ร on code/structured output) |
dflash2_draft.safetensors |
DFlash2 draft head โ stronger general drafter (1.5โ1.8ร plain decode) |
tokenizer.json, config.json, chat_template.jinja, โฆ |
Standard model files |
SHA256SUMS |
Integrity checksums for the binary and both drafts |
Quick start (V100)
Requirements: Linux x86-64 ยท NVIDIA driver (sm_70) ยท CUDA 11 runtime (libcudart, libcublas, libcublasLt 11.x) ยท NCCL 2.x ยท ~24 GB free VRAM.
# 1. Download everything (model + engine + both drafts)
huggingface-cli download ocai-anip/Qwen3.6-35B-A3B-NVFP4 --local-dir ./qwen36-nvfp4
chmod +x ./qwen36-nvfp4/zeroinfer-v100
sha256sum -c ./qwen36-nvfp4/SHA256SUMS
# 2. Speculative decode with DFlash (fast path for code / structured output)
./qwen36-nvfp4/zeroinfer-v100 nvfp4-spec \
--model ./qwen36-nvfp4 \
--draft ./qwen36-nvfp4/df_draft_f16.safetensors \
--prompt "def merge_sort(arr):" \
--max-tokens 64
# 3. Plain greedy (no drafting, baseline)
./qwen36-nvfp4/zeroinfer-v100 nvfp4-spec --plain \
--model ./qwen36-nvfp4 --draft ./qwen36-nvfp4/df_draft_f16.safetensors \
--prompt "The capital of France is" --max-tokens 32
# 4. Serve mode (line-JSON on stdin, for wiring into your own frontend)
./qwen36-nvfp4/zeroinfer-v100 serve \
--model ./qwen36-nvfp4 --draft ./qwen36-nvfp4/df_draft_f16.safetensors
# 5. DFlash2 โ the stronger general drafter (1.5โ1.8x plain decode)
Q36_DF2=1 Q36_DF2_CONV=1 Q36_DF2_SEL=1 \
./qwen36-nvfp4/zeroinfer-v100 nvfp4-spec \
--model ./qwen36-nvfp4 \
--draft ./qwen36-nvfp4/dflash2_draft.safetensors \
--prompt "Summarize how a modern compiler works." \
--max-tokens 256
Benchmarks (single V100-32GB)
| config | throughput |
|---|---|
| plain greedy decode | ~60โ100 tok/s (generation-length dependent) |
| speculative decode, DFlash (code / structured output) | ~200 tok/s |
| speculative decode, DFlash2 (general content) | 1.5โ1.8ร plain |
| prefill, 4K context | ~600+ tok/s |
| 8ร V100, data-parallel serving | ~1,500+ tok/s aggregate |
| continuous batching, 8 concurrent sequences | ~200 tok/s aggregate per GPU |
Speculative acceptance is workload-dependent: code and self-repetitive text speculate well; free prose less so. This is inherent to draft-based speculation, not a defect. The engine ships per-request drafter selection so each request uses the drafter that fits it.
Provenance
| Base model | Qwen/Qwen3.6-35B-A3B (Apache-2.0) |
| Original quantization | doth4580/Qwen3.6-35B-A3B-NVFP4-FULL (Apache-2.0) |
| Engine, packaging & validation | OpenCraft AI |
No additional training or fine-tuning has been applied to the model weights. The DFlash/DFlash2 draft heads are auxiliary drafter models for speculative decoding; they never alter the output distribution of the base model (speculative decoding is output-preserving by construction).
License
- Model weights: Apache-2.0 (inherited from the base model and the original quantization โ see
LICENSE). - ZeroInfer binary (
zeroinfer-v100): proprietary software ยฉ OpenCraft AI, provided as-is for evaluation and use with this model. All rights reserved. The engine source is closed.
Enterprise
ZeroInfer powers OpenCraft AI's enterprise inference โ hosted, tuned, multi-GPU serving at scale. If you're running inference in production and want this level of performance on your own terms, reach out to OpenCraft AI.
ZeroInfer is OpenCraft AI's inference engine. Built and validated on real workloads.
- Downloads last month
- 81
Model tree for ocai-anip/Qwen3.6-35B-A3B-NVFP4
Base model
Qwen/Qwen3.6-35B-A3B