Deepseek V4 Flash ~105 t/s on two Nvidia 4090d 48G (ada) in vLLM
Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.
| TLDR: I (with the help of AI) re-implemented every Blackwell-only kernel (DeepGEMM, FlashInfer sparse-MLA, block-scaled FP8) in Triton, because they simply don't exist for sm89. The performance is 2-3x more for parallel agentic workflows. Benchmark llama-server vs vLLM I was inspired by the post https://www.reddit.com/r/LocalLLM/comments/1utoh2r/deepseek_v4_flash_160_ts_on_rtx_6000_blackwell_96/ I have similar amount of VRAM, but spread among two GPU 4090d 48G on Dell R740 with enabled p2p patch ( https://github.com/Duanyll/open-gpu-kernel-modules/tree/595.71.05-p2p-48g ). Ada wasn't supported, so I had to find a way to run vLLM, because llama.cpp speed wasn't enough for me. The first run compresses DeepSeek-V4-Flash into ~iq2 to fit into 96 GB VRAM, it may take up to 60 minutes, depending on your hardware. If you have only single GPU, use env variables at step 4 below`TP=1` and GPUS='"device=0"'. Get the model
I'm getting 262k context and better concurrency when running vLLM compared to llama.cpp. When running llama.cpp (today's main + https://github.com/ggml-org/llama.cpp/pull/21067/ ), I used the command below to fully fit the model into VRAM. ``` /root/llama.cpp/build/bin/llama-server ``` Probably, there is no other way to fit this model into vLLM and get all benefits. I'm 99% sure the performance can still be improved. [link] [comments] |
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.