Running DeepSeek v4 Flash Locally on CPU: RTX 4090 + Tesla P40 Setup
DigiDecode_ · reddit · 2026-08-09
The author shares a detailed experience of deploying and running DeepSeek v4 Flash 0731 locally using a mixed hardware setup (RTX 4090 + Tesla P40 + 128GB RAM).
Deployment Details & Challenges:
- Quantization: Tested Unsloth 4bit KXL (144GB), but lacked memory for DSpark MTP. Switched to IQ4XS quant (127GB) to fit both the model and MTP.
- Inference Speed: Achieved 3 tokens/sec generation and 30 tokens/sec prompt processing with MTP enabled at a 5k+ context size.
- Hardware Allocation: Since llama.cpp doesn't currently support tensor splitting for this model, manual layer-by-layer assignment is required. The embed and output layers must remain on the RTX 4090 (due to unsupported ops for Gated Delta Net on the Tesla P40), while other layers are split between the P40 and CPU.
- Optimization: The ordering of the -dev flag significantly impacts performance, with CUDA0 (RTX 4090) placed first drastically boosting prompt processing speeds.
More from Infra
- Chess Transformer hits 2545 Elo after 260x training speedup — realSharonZhou · 2026-11-30
- Tokens/sec alone is misleading: quantized LLM speed hides quality costs — OrganizationAgile361 · 2026-11-30
- Samsung's new memory chief warns record quarters don't mean competitiveness is back — tengyanAI · 2026-11-30
- Which free local AI model to download for your GPU, from 6GB to 24GB VRAM — alex_verem · 2026-11-30
- tqLLM 1.9.0: C++ LLM engine claims 4.6x Strata on 16GB, adds AMD RX 580 support — pmttyji · 2026-11-30
- oMLX 0.8.4 doubles Inkling 2 Mini decode speed on Mac, adds concurrent MTP — pcuenq · 2026-11-30