Views
No views yet
download_model.sh expects.| File | Size | Routed experts (ffn_{gate,up,down}_exps) | Everything else |
|---|---|---|---|
DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-aligned.gguf | 81 GiB | IQ2_XXS (gate, up) + Q2_K (down), imatrix-calibrated | Q8_0 attn proj / shared experts / output, F16 router + embed + indexer + compressor + HC, F32 norms / sinks / bias |
DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf | 3.5 GiB | MTP / speculative-decoding support (optional, not standalone) | |
DeepSeek-V4-Flash-chat-v2-routed-moe-ds4-aligned.dat | 430 MiB | Raw imatrix used to produce the IQ2XXS quant above (for reproducibility) |
IQ2_XXS is a 2.0625-bit-per-weight quant. At that budget the per-tensor scales matter a lot, and a blind quant tends to underweight the rows that carry tool-call tokens and rarely-routed experts. Calibrating against an imatrix gathered from the chat-v2 corpus shifts the scales toward those rows, which in practice recovers most of the regression seen on:DeepSeek-V4-Flash-chat-v2-routed-moe-ds4-aligned.dat so the quant is fully reproducible.general.alignment field will work unchanged.| Tensor class | Quant | Notes |
|---|---|---|
blk.*.ffn_gate_exps, blk.*.ffn_up_exps | IQ2_XXS | routed-expert up/gate, imatrix-calibrated |
blk.*.ffn_down_exps | Q2_K | routed-expert down (K-quant for quality) |
blk.*.ffn_{gate,up,down}_shexp | Q8_0 | shared experts |
blk.*.attn_q_a, attn_q_b, attn_kv, attn_output_a, attn_output_b | Q8_0 | all attention projections (MLA + low-rank output) |
output.weight | Q8_0 | output head |
token_embd.weight | F16 | input embedding |
blk.*.ffn_gate_inp (router) | F16 | learned router |
blk.*.exp_probs_b (router bias), blk.*.attn_sinks, all *_norm.weight | F32 | |
blk.*.ffn_gate_tid2eid | I32 | hash-routing tables (first 3 layers only) |
blk.*.attn_compressor_*, blk.*.indexer_*, blk.*.hc_*, blk.*.output_hc_* | F16 / F32 | DSv4-specific auxiliary blocks |
Q8_0 preserves model behavior; crushing the experts buys the size.1git clone https://github.com/antirez/ds4
2cd ds4
3# Fetch the imatrix-aligned q2 + MTP from this repo:
4hf download jedisct1/DeepSeek-V4-Flash-imatrix-aligned \
5 DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-aligned.gguf \
6 DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf \
7 --local-dir .
8ln -sf DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-aligned.gguf ds4flash.gguf
9make
10
11./ds4 -p "Explain Redis streams in one paragraph."
12./ds4-server --ctx 100000 --kv-disk-dir /tmp/ds4-kv --kv-disk-space-mb 8192