llamacpp patch - DeepSeek V4 Flash running with full 1M token context locally on RTX 5090
Summary
Describes a patch for llama.cpp that adds CUDA support for DeepSeek V4 Flash's context indexing, enabling full 1M token context on an RTX 5090 with significantly reduced VRAM usage and high throughput.
Similar Articles
Deepseek V4 Flash running on RTX 5090 MoE
User shares optimization benchmarks for DeepSeek-V4-Flash (Q2_K) running on an RTX 5090 using a fork of llama.cpp, achieving 21.3 tokens/s generation and 1 million context size.
[Deepseek-V4-Flash-0731] Full 1M context on a single RTX5090 + DDR5 Desktop Setup with VLLM CPU/Ram Offloading, ~800 tps pp & 15+ tps decode [Agentic Coding]
Technical write-up on running DeepSeek-V4-Flash-0731 with full 1M context on a single RTX 5090 + 256GB DDR5 desktop using vLLM with CPU/RAM offloading, achieving ~800 tps prefill and ~15 tps decode.
Deepseek V4 Flash ~105 t/s on two Nvidia 4090d 48G (ada) in vLLM
Technical post detailing how to run DeepSeek V4 Flash on two Nvidia 4090d GPUs using custom Triton kernels and vLLM, achieving ~105 tokens/second with 262k context.
@malikwas1f: The four-line fix took DeepSeek-V4-Flash prefill from 127 → 312 t/s @10K and 91 → 283 @40K, with a passed recall check …
A four-line fix reportedly boosts DeepSeek-V4-Flash prefill speed from 127 to 312 t/s at 10K context and 91 to 283 t/s at 40K, with decode unchanged. The patch is shared via the club-3090 project for serving LLMs on RTX 3090s.
DeepSeek V4 @ IQ3XXS on M1 Ultra 128GB- 16 tok/s in LM Studio after patch
A GitHub patch allows running DeepSeek V4 Flash in LM Studio on 128GB Macs by sideloading antirez's llama.cpp fork, working around struct-layout drift, decoding splits, and code-signing issues.