Views
No views yet
transformers or vllm.| Checkpoint size | 75 GB (vs 132 GB MXFP4, 543 GB BF16) |
| Routed-expert format | INT2 g64, FP16 scale + INT4 zero |
| Layers | 43 expert MoE layers (one per layer_NN.safetensors) |
| MMLU 0-shot, 14,042 questions, V4 chat template | 72.46% |
| Decode throughput, RTX PRO 6000 Blackwell | 17 tok/s eager (reference path; not perf-tuned) |
layer_NN.safetensors holds the routed experts for one MoE layer. For each of the three projections (w1 gate, w3 up, w2 down):w_packed: [E=256, K_out, K_in/16] uint32 — 16 INT2 values per uint32w_scale: [E, K_out, K_in/G] float16 — per-group of G=64 input channelsw_zero_packed: [E, K_out, K_in/(2G)] int8 — INT4 zero-points, two-per-bytequant_stats.json records per-layer GPTQ reconstruction error and routing-coverage stats (RTN-fallback count, visit min/max/median per expert).quant/v4_self_calib.py in the GitHub repo for a starting point.from_pretrained path. To run inference:1git clone https://github.com/Infatoshi/dsv4-int2
2cd dsv4-int2
3uv venv && uv sync
4
5# point the loader at this checkpoint + the upstream V4-Flash release
6export DSV4_REF=/path/to/DeepSeek-V4-Flash # MXFP4 release (tokenizer + non-expert weights)
7export DSV4_INT2=/path/to/this/checkpoint # this directory (download from HF)
8
9PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
10 uv run python eval/v4_int2/repl.pyworld_size=1. No tensor parallelism.1@misc{dsv4int2,
2 title = {dsv4-int2: INT2 quantization of DeepSeek-V4-Flash for single-GPU inference},
3 author = {Arledge, Elliot},
4 year = {2026},
5 url = {https://github.com/Infatoshi/dsv4-int2}
6}