Add routed+dense imatrix (220k tokens) for dense-Q4 requant (antirez/ds4#618)

#18
by 0pp0 - opened
No description provided.

This PR adds the mixed dense-Q4 variant of the Flash model plus the imatrix used to build it:

  • DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-chat-v2-imatrix.gguf — attention projections requantized to Q4_K (imatrix-weighted), shared experts kept at Q8, routed experts byte-identical to the Q8 model (Xet deduped them: only ~3.2 GiB of new data).
  • imatrix/DeepSeek-V4-Flash-chat-v2-routed-and-dense-ds4-220k.dat — imatrix extended to cover the dense tensors (the stock collector is routed-only).

Why: on 16 GB Macs with SSD streaming this gives 2.8–3.2× decode (0.73→2.06 t/s @ctx512) at +0.99% perplexity vs Q8, with top-1 unchanged. Keeping shared experts at Q8 also fixes a reasoning-language drift (the all-Q4 variant starts thinking in Chinese on Italian prompts).

Full analysis, methodology and benchmarks: https://github.com/antirez/ds4/issues/618

Run with:

./ds4 --metal --ssd-streaming --ssd-streaming-cache-experts 448 \
  -m DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-chat-v2-imatrix.gguf
0pp0 changed pull request status to closed

Sign up or log in to comment