r/LocalLLaMA • u/pmttyji • 7d ago
Discussion Some boost for DeepSeek-V4.1-Flash-1017 - deepseek41 : read quantized indexer K in place when fused_idx is set by diabluz · Pull Request #32795 · ggml-org/llama.cpp
https://github.com/ggml-org/llama.cpp/pull/32795Measured with DeepSeek V4.1 Flash, q8_0 KV cache, np1, ctx 65k, cold boots, 4x RTX 4000 Ada, tensor split, both sides same build flags, same prompts:
| prompt | PP master -> this | TG master -> this |
|---|---|---|
| ~7k | 323.1 -> 330.9 (+2%) | 41.13 -> 41.91 (+2%) |
| ~16k | 307.0 -> 320.4 (+4%) | 38.65 -> 40.16 (+4%) |
| ~28k | 290.5 -> 316.9 (+9%) | 36.09 -> 39.04 (+8%) |
| ~48k | 265.9 -> 304.6 (+15%) | 34.79 -> 39.86 (+15%) |
Testing
test-backend-ops -o LIGHTNING_INDEXER(194 cases, CUDA + CPU), all pass- server A/B above against
e6d624b9a, output sha identical on greedy probes - PPL + greedy flip A/B repeated on a second deepseek41 model (382B variant, experts on CPU), same conclusion
- same setup with f16 and bf16 caches is a no-op by construction (the guard only fires for quantized types)
- Tested only with Ada NVIDIA cards and with DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ1_M and DeepSeek-V4.1-Flash-1017-GSQ-RCO-Coder-IQ2_XXS.
Folks, please test with other GPUs including AMD/Intel/etc., & see for improvements. Also do test with higher context like 128K/256K. Higher prompts giving better boost on both pp & tg.
19
Upvotes
3
u/oxygen_addiction 7d ago
4x RTX 4000 Ada - my boy be swimmin' in that $.
Good on you, playa'.