Qwen3.6-35B-A3B-TinyKV (Qwen3.6-35B-A3B with a 2.5×
smaller KV cache from retraining only its 10 full-attention layers) on top of NVIDIA's NVFP4 checkpoint (experts in NVFP4, GDN projections in FP8, FP8 KV cache as NVIDIA configured it): the quantized shards are
nvidia/Qwen3.6-35B-A3B-NVFP4's, unchanged; the 10 converted attention layers come from
tinykv-patch.safetensors in bf16, and the quantization config leaves exactly those layers unquantized.
Target: Blackwell GPUs (NVFP4 kernels); weights ~22 GB.
pip install vllm==0.32.0
hf download darioooooo0o/Qwen3.6-35B-A3B-TinyKV-NVFP4 --include "plugin/*" --local-dir . && pip install ./plugin # registers the TinyKV architecture
vllm serve darioooooo0o/Qwen3.6-35B-A3B-TinyKV-NVFP4 --max-model-len 131072 --gpu-memory-utilization 0.9 --limit-mm-per-prompt '{"image":0,"video":0}'
Single GPU (the plugin has no tensor parallel yet), text only (the vision tower is unchanged but untested).
vLLM 0.32.0 on one RTX PRO 6000 (96 GB), gpu_memory_utilization=0.85, max_model_len=32768, next to the same base
checkpoint without TinyKV:
| TinyKV-NVFP4 | stock NVFP4 | |
|---|---|---|
| KV cache capacity | 6.17M tokens | 2.58M tokens (2.39×) |
| 30k needles, 32 near-identical decoys | 23/24 (logp -0.495) | 23/24 (logp -0.28) |
| mean |Δ log p| vs its bf16 reference | 0.1224 vs PyTorch TinyKV | 0.1667 vs PyTorch Qwen3.6 |
The last row is the quantization noise of each: per-token log-prob difference on 4 held-out 1k-token prompts against the unquantized model in PyTorch. For reference, bf16 TinyKV in vLLM is at 0.0478 and holds 1.59M tokens at the same settings (stock bf16: 0.66M). Greedy answer to "Explain in three sentences why the sky is blue.": "Sunlight reaches Earth's atmosphere as white light, which is composed of all colors of the visible spectrum. As this light passes through the air, gas molecules…"
See the main model card for how the conversion works, the training recipe and the full quality tables. GGUFs: Qwen3.6-35B-A3B-TinyKV-GGUF.
Made by @imdariotoo. I post my local-model releases on X, so follow there for the next ones.
Quantized base: nvidia/Qwen3.6-35B-A3B-NVFP4. Training, evaluation and these checks ran on CloudRift RTX PRO 6000 GPUs, provided through their AI Builder Grant. Thanks to CloudRift for the compute.
Apache-2.0, as the base model (Qwen/Qwen3.6-35B-A3B) and the quantized base.
model-00001-of-00003.safetensors 10 GBmodel-00002-of-00003.safetensors 10 GBmodel-00003-of-00003.safetensors 3.4 GBtinykv-patch.safetensors 560 MB有文件?提交种子。
提交种子