Downloads · 30 days
32
2% of all-time downloads
iggerask/DeepSeek-V4-Flash-2bit-GB10
DeepSeek-V4-Flash-2bit-GB10 is a text generation model from iggerask. Use it when you need the model to write or continue text. It is set up for vllm. The card lists the license as other.
A 2-bit quantization of deepseek-ai/DeepSeek-V4-Flash (299 B params, MoE) that serves on a single NVIDIA DGX Spark (GB10, 128 GB, sm121) — where the ~159 GB FP8/MXFP4 source needs ~2 — at ~22 tok/s single-stream decod…
Downloads · 30 days
32
2% of all-time downloads
All-time downloads
1.7K
Public
Parameters
4.7B
103 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors103 GB · 100%
How the weights are stored.
U83.2B · 67%
From the Hugging Face model README
A 2-bit quantization of deepseek-ai/DeepSeek-V4-Flash
(299 B params, MoE) that serves on a single NVIDIA DGX Spark (GB10, 128 GB, sm_121) — where the
~159 GB FP8/MXFP4 source needs ~2 — at ~22 tok/s single-stream decode on realistic chat (up to ~40 on long-form), coherent.
⚠️ This checkpoint is NOT loadable by stock vLLM/transformers. It uses a custom
vq2quantization method served by a small open-source plugin. You must install the serving stack: https://github.com/iggerask/deepseek-v4-flash-2bit-gb10 (Apache-2.0). The plugin auto-registers in vLLM (no fork) and adds the sm_121 kernel replacements DS4 needs on consumer Blackwell.
The model weights are a derivative of DeepSeek-V4-Flash and are governed by that model's license (linked above). The serving code (plugin + kernels) is Apache-2.0.
git clone https://github.com/iggerask/deepseek-v4-flash-2bit-gb10
cd deepseek-v4-flash-2bit-gb10
./install.sh && source .venv-vllm/bin/activate
python scripts/download_model.py # pulls this repo -> models/DeepSeek-V4-Flash-2bit
python scripts/serve.py --prompt "What is the capital of France?"
It is an instruct model — use the chat template (llm.chat / a chat endpoint), not raw completion.
| component | precision |
|---|---|
| routed experts (gate/up/down) | 2-bit VQ (k=1024, vdim=4, group-64 Hadamard) |
| attn (wq_a/wkv/wq_b/wo_a/wo_b), shared experts, lm_head | NVFP4 4-bit (W4A16) |
| compressor, indexer, norms, router, embed | BF16 |
| KV cache | fp8 |
Plus the model's built-in MTP draft head (K=2 spec-decode, the measured optimum). A second lever,
FR-Spec (frequency-shortlisted draft lm_head, frspec_nvfp4_ds4.pt), is shipped but currently inactive
under the plugin load path (falls back to the full draft lm_head; measured marginal regardless).
vllm bench serve): ~22 tok/s on realistic chat (MTP K=2, +29 % over the 17.4 non-spec baseline; TPOT ~39 ms), up to ~40 on long predictable generations. K-sweep (ShareGPT chat): non-spec 17.4 / K=1 21.4 / K=2 22.5 / K=3 20.6 tok/s.NVIDIA DGX Spark / GB10 (sm_121, aarch64), 128 GB unified memory, CUDA 13. ~107 GB resident, leaving headroom for long-context KV (~27 KB/token; verified to 392 K tokens).
config.json (with the vq2 quantization_config), experts_fused_layer_*.safetensors (2-bit VQ
experts), rest_layer_*.safetensors + rest_globals.safetensors (NVFP4 + BF16 rest),
mtp_rest.safetensors (MTP draft), frspec_nvfp4_ds4.pt (FR-Spec reduced draft lm_head, loaded by
the plugin via VLLM_FRSPEC_NVFP4 — auto-resolved from the model dir), tokenizer. See the GitHub
repo for the architecture writeup.