@JoelDeTeves yeah offloading n-gram lookup table (PLE) to system ram is a clever trick.
i applied a similar trick to be able to run qwen3.8 flash next fp8 (172 GiB) on 2x rtx 6000s (192 GB of VRAM)
both speed and quality are pretty good.
https://t.co/2lIVyhlvoB
Qwen3.8-Flash-Next beats DeepSeek V4 Flash in benchmarks. That looked interesting, so I wanted to test it on 2× RTX PRO 6000s.
Snag: a 172 GiB FP8 checkpoint with 192 GB of VRAM. The weights might fit, but where do the KV cache, Mamba state, draft model, and CUDA graphs go?👇
I found a recipe using SGLang. It’s fast, a few metrics:
• Decode: 200–300 tok/s, tested with real coding tasks
• 262,144 maximum tokens per request
• 606,912 logical KV tokens shared across the engine
The real trick is that it doesn’t offload the whole model. It offloads the weird part.
Qwen has a massive PLE n-gram lookup table:
20M rows × 2,560 dimensions × FP8
= 51.20 GB
= 47.68 GiB
Instead of putting that table in VRAM, SGLang keeps it in pinned system RAM and splits it across the two
TP ranks, with about 23.84 GiB per rank.
When the model needs an embedding, the GPUs fetch only the few rows referenced by the current tokens
over PCIe. The whole 47.68 GiB table never moves.
That leaves the compute-heavy parts in VRAM.
The attached video illustrates what the memory placement looks like and how one request moves through tokenization, scheduling, prefill, PCIe row fetches, NCCL communication, MTP-assisted decoding, and finally back to the client.
@0xWhiteMage Here is mine, ran qwen3.8 flash next fp8 on 2x rtx 6000s
Qwen3.8 flash > deepseek 4 flash on many agentic tasks due to its vision support
Qwen3.8-Flash-Next beats DeepSeek V4 Flash in benchmarks. That looked interesting, so I wanted to test it on 2× RTX PRO 6000s.
Snag: a 172 GiB FP8 checkpoint with 192 GB of VRAM. The weights might fit, but where do the KV cache, Mamba state, draft model, and CUDA graphs go?👇
I found a recipe using SGLang. It’s fast, a few metrics:
• Decode: 200–300 tok/s, tested with real coding tasks
• 262,144 maximum tokens per request
• 606,912 logical KV tokens shared across the engine
The real trick is that it doesn’t offload the whole model. It offloads the weird part.
Qwen has a massive PLE n-gram lookup table:
20M rows × 2,560 dimensions × FP8
= 51.20 GB
= 47.68 GiB
Instead of putting that table in VRAM, SGLang keeps it in pinned system RAM and splits it across the two
TP ranks, with about 23.84 GiB per rank.
When the model needs an embedding, the GPUs fetch only the few rows referenced by the current tokens
over PCIe. The whole 47.68 GiB table never moves.
That leaves the compute-heavy parts in VRAM.
The attached video illustrates what the memory placement looks like and how one request moves through tokenization, scheduling, prefill, PCIe row fetches, NCCL communication, MTP-assisted decoding, and finally back to the client.
For anyone who wants to reproduce it:
Recipe:
https://t.co/Ia7t5u3io5
Model:
https://t.co/YWeeZcGx6Q
My configuration:
• Recipe v0.1.0-rc.9
• 2× RTX PRO 6000 Blackwell GPUs
• TP2/EP2 with FP8 weights
• PLE embedding offload
• 262,144-token context
• NEXTN MTP-3
• About 384 GiB of system RAM
• At least 250 GB of free disk for the model, image, and build cache
My PCIe topology also required:
--disable-custom-all-reduce
The repository’s RUN.md contains the exact model download, image build, launch, API, and validation
commands.
Qwen3.8-Flash-Next beats DeepSeek V4 Flash in benchmarks. That looked interesting, so I wanted to test it on 2× RTX PRO 6000s.
Snag: a 172 GiB FP8 checkpoint with 192 GB of VRAM. The weights might fit, but where do the KV cache, Mamba state, draft model, and CUDA graphs go?👇
I found a recipe using SGLang. It’s fast, a few metrics:
• Decode: 200–300 tok/s, tested with real coding tasks
• 262,144 maximum tokens per request
• 606,912 logical KV tokens shared across the engine
The real trick is that it doesn’t offload the whole model. It offloads the weird part.
Qwen has a massive PLE n-gram lookup table:
20M rows × 2,560 dimensions × FP8
= 51.20 GB
= 47.68 GiB
Instead of putting that table in VRAM, SGLang keeps it in pinned system RAM and splits it across the two
TP ranks, with about 23.84 GiB per rank.
When the model needs an embedding, the GPUs fetch only the few rows referenced by the current tokens
over PCIe. The whole 47.68 GiB table never moves.
That leaves the compute-heavy parts in VRAM.
The attached video illustrates what the memory placement looks like and how one request moves through tokenization, scheduling, prefill, PCIe row fetches, NCCL communication, MTP-assisted decoding, and finally back to the client.
Here’s Pi using the model to build a Doom-like game. The duo handled it pretty well in just one shot.
This is also where the 200–300 tok/s decode range comes from: real agentic coding tasks, not just a
synthetic benchmark.
DeepSeek V4 Flash needs 2× RTX 6000s
Qwen3.8-27B FP8 needs just 2× RTX 4090s (2,873 tok/s prefill, 74 tok/s decode)
I was curious how they compared, so I ran the same Pi agentic task on both. Both solved it in one shot with no follow-ups
Here are the outputs side by side👇
@TheAhmadOsman Agreed. I tried comparing Qwen3.8 27B (xhigh) and DS4 Flash 0731 to see if I could replace 2x RTX 6000s with 2x RTX 4090s.
But it seems like not yet. DS4 Flash was still a bit better and solved the agentic task more comfortably.
https://t.co/RpdH3JMsYX
DeepSeek V4 Flash needs 2× RTX 6000s
Qwen3.8-27B FP8 needs just 2× RTX 4090s (2,873 tok/s prefill, 74 tok/s decode)
I was curious how they compared, so I ran the same Pi agentic task on both. Both solved it in one shot with no follow-ups
Here are the outputs side by side👇
@simonw really impressive SVG code from a local 27b model
i also tested qwen3.8 27b fp8 against deepseek v4 flash on the same Pi agentic task, and qwen did really well
https://t.co/RpdH3JMsYX
DeepSeek V4 Flash needs 2× RTX 6000s
Qwen3.8-27B FP8 needs just 2× RTX 4090s (2,873 tok/s prefill, 74 tok/s decode)
I was curious how they compared, so I ran the same Pi agentic task on both. Both solved it in one shot with no follow-ups
Here are the outputs side by side👇
DeepSeek V4 Flash needs 2× RTX 6000s
Qwen3.8-27B FP8 needs just 2× RTX 4090s (2,873 tok/s prefill, 74 tok/s decode)
I was curious how they compared, so I ran the same Pi agentic task on both. Both solved it in one shot with no follow-ups
Here are the outputs side by side👇
DeepSeek V4 Flash needs 2× RTX 6000s
Qwen3.8-27B FP8 needs just 2× RTX 4090s (2,873 tok/s prefill, 74 tok/s decode)
I was curious how they compared, so I ran the same Pi agentic task on both. Both solved it in one shot with no follow-ups
Here are the outputs side by side👇
@Alibaba_Qwen@NVIDIARTXSpark I’m considering making Qwen3.8-27B my main model for fully local agentic tasks, replacing DeepSeek V4 Flash.
So far, the quality seems comparable, and it runs on much cheaper hardware.
https://t.co/RpdH3JMsYX
DeepSeek V4 Flash needs 2× RTX 6000s
Qwen3.8-27B FP8 needs just 2× RTX 4090s (2,873 tok/s prefill, 74 tok/s decode)
I was curious how they compared, so I ran the same Pi agentic task on both. Both solved it in one shot with no follow-ups
Here are the outputs side by side👇
I spent 2 days tuning a vLLM serving profile for DeepSeek V4 Flash 0731 so my 7-person team could use Hermes Agent comfortably on 2× RTX PRO 6000 Blackwell GPUs. At 100K C4, prefill was 21× faster and decode 14× faster than my previous setup. Here is what I changed 👇
TUNED VALUES
I kept the custom vLLM Gilded Gnosis v20 build, true TP=2, native DSpark K=5, B12X Blackwell kernels, and FP8 KV cache.
These are the server values I ended up with:
• MAX_NUM_BATCHED_TOKENS=4096, down from 8192. This was the biggest measured KV-capacity win.
• MAX_NUM_SEQS=24, down from 32. This reduced scheduler, activation, and graph overhead.
• MAX_CUDAGRAPH_CAPTURE_SIZE=auto. It resolved to 144 rows instead of 192.
• MAX_MODEL_LEN=262144, up from 131072. This is the limit for one request, not the total KV pool.
• GPU_MEMORY_UTILIZATION=0.975, down from 0.985. This leaves safer transient headroom.
• PREFIX_CACHE=1, enabled for real Hermes workloads.
• KV_OFFLOADING_SIZE=0. Everything stays on the GPUs.
Reducing MAX_NUM_BATCHED_TOKENS from 8192 to 4096 moved logical KV capacity from about 138K to 286K. The full tuned profile reached 474,850 logical tokens, up from 138,227 before.
DeepSeek V4's sparse attention design saves KV memory. It uses FP8, compression, and short sliding windows. It keeps full token history only where needed, instead of storing full F16 K/V data for every token in every layer.
This lets 8.12 GiB of KV memory per GPU support up to 474,850 tokens. The exact limit also depends on vLLM and the server settings. TP=2 splits one KV pool across both GPUs, so the total is still 474,850 tokens, not twice that.
I also changed the benchmark from the original 128 output tokens to 7,000 output tokens per request. A 128-token response is too short for this test. Prefill dominates the timing, decode may not settle, and KV pressure can stay hidden. A 7K output shows sustained decode and what happens when several long Hermes jobs overlap.
NEW BENCHMARK
I reran 20 cells using the same fixed 13-record Spec-Bench subset:
• Context: 2K, 32K, 64K, and 100K
• Concurrency: 1, 4, 8, 16, and 24
• Output: exactly 7,000 tokens for every request
• Cache: no warm or cross-request prompt cache. Prefix caching stayed enabled for the real server, but benchmark requests did not share cached prefixes.
• Total: 212 requests and 1,484,000 generated tokens
All speeds are tokens per second. At concurrency > 1, decode is aggregate throughput across all requests, not the speed of each user.
Concurrency order: C1 → C4 → C8 → C16 → C24
2K context
Prefill: 5,059 → 6,066 → 6,976 → 7,463 → 7,153
Decode: 401 → 790 → 1,263 → 1,070 → 1,863
32K context
Prefill: 9,214 → 9,038 → 8,740 → 8,532 → 8,426
Decode: 401 → 383 → 748 → 936 → 1,060
64K context
Prefill: 9,796 → 9,078 → 8,773 → 8,510 → 3,696
Decode: 282 → 347 → 574 → 592 → 341
100K context
Prefill: 9,944 → 9,053 → 8,787 → 5,749 → 5,621
Decode: 247 → 405 → 374 → 342 → 331
CONCLUSION
100K C4 is the sweet spot. Four 102,400-token prompts with 7K outputs need 437,600 KV tokens, so they fit inside the 474,850-token pool.
At 100K C4, the old profile reached 436 prefill and 29 aggregate decode tok/s. The tuned profile reached 9,053 and 405, about 21× and 14× faster. Not every cell improved. At C1, decode fell from 392 to 247 tok/s. This tuning targets team concurrency, not single-request speed.
C8 needs 875,200 tokens, so it exceeds the pool. The server still finishes, but queueing and recomputation grow. P95 time to first token rises from 43 seconds at C4 to 89 seconds at C8, 4.4 minutes at C16, and 6.8 minutes at C24.
Two RTX PRO 6000 GPUs now feel comfortable for my 7-person team. I would allow four simultaneous 100K+7K jobs and queue the rest. Shorter jobs can use higher concurrency. For a larger long-context team, I would consider four GPUs, but I have not benchmarked that setup.