Qwen3.8 Flash-Next and Qwen3.8-27B RTX 3090 Benchmarks: 1-4 GPUs, 381 tok/s
Real-world RTX 3090 benchmarks for Qwen3.8 Flash-Next (1 to 4 GPUs at 32K and 130K context) and Qwen3.8-27B speculative decoding setups reaching 381 tok/s.
Summary
- Dual RTX 3090 GPUs hit the single-stream sweet spot for Qwen3.8 Flash-Next (IQ3_S) at 122.6 tok/s (32K) and 121.2 tok/s (130K).
- A single RTX 3090 running Qwen3.8-27B scales from 82 tok/s baseline to 114 tok/s with MTP, 133 tok/s for chat.
- Prefix caching cuts Qwen3.8-27B time-to-first-token (TTFT) on long prompts from 22.4 seconds down to 0.56 seconds.
- Avoid DFlash2 with tensor split in llama.cpp, constrained tool calling on 50K+ prompts in SGLang, and FP8 KV cache flags on Ampere cards.
If you are building a local inference server with 24GB RTX 3090 cards for Qwen3.8 Flash-Next or Qwen3.8-27B, adding more GPUs does not automatically make single-stream generation faster. When I tested Qwen3.8 Flash-Next (IQ3_S) on a single-user stream at 32K context, moving from one RTX 3090 to two jumped generation speed by 39%, from 88.3 tok/s to 122.6 tok/s. Adding a third card dropped speed to 115.5 tok/s, and running four cards at 130K context ran at 118.2 tok/s compared to 121.2 tok/s on two cards. For single-stream API requests, two RTX 3090s are the hardware sweet spot.
On a single RTX 3090, the dense Qwen3.8-27B model can also reach extreme speeds when tuned properly. Starting from an 82 tok/s baseline, enabling Multi-Token Prediction (MTP) pushes output to 114 tok/s, while combining the DFlash2 draft model with Context Lookup brings regular conversation to 133 tok/s and document reproduction bursts to 381 tok/s. Pairing that pipeline with prefix caching drops Time-To-First-Token (TTFT) on long contexts from 22.4 seconds to 0.56 seconds. Below are the full benchmark tables, the exact launch parameters, and where those peak numbers break down when you connect a coding agent.
On this page
Benchmark Summary: Qwen3.8 Flash-Next (1 to 4 RTX 3090s) and Qwen3.8-27B (1x RTX 3090)
The first table covers single-concurrency token generation for Qwen3.8 Flash-Next (IQ3_S quantization) across one, two, three, and four RTX 3090 GPUs at 32K and 130K context lengths.
| Model & Quantization | GPU Configuration | Total VRAM | Context Length | Single-Stream Decode Speed | Scaling vs 1x 3090 |
|---|---|---|---|---|---|
Qwen3.8 Flash-Next (IQ3_S) |
1x RTX 3090 | 24 GB | 32K | 88.3 tok/s | Baseline |
Qwen3.8 Flash-Next (IQ3_S) |
2x RTX 3090 | 48 GB | 32K | 122.6 tok/s | +38.8% |
Qwen3.8 Flash-Next (IQ3_S) |
3x RTX 3090 | 72 GB | 32K | 115.5 tok/s | +30.8% (-5.8% vs 2 GPUs) |
Qwen3.8 Flash-Next (IQ3_S) |
2x RTX 3090 | 48 GB | 130K | 121.2 tok/s | +37.3% |
Qwen3.8 Flash-Next (IQ3_S) |
4x RTX 3090 | 96 GB | 130K | 118.2 tok/s | +33.9% (-2.5% vs 2 GPUs) |
The second table shows the step-by-step optimization progression for Qwen3.8-27B running on a single 24GB RTX 3090, comparing unoptimized defaults against MTP, DFlash2 speculative decoding, Context Lookup, and prefix caching.
| Acceleration Stage | Workload Type | Decode Throughput | Time-To-First-Token (TTFT) | Primary Bottleneck or Requirement |
|---|---|---|---|---|
| Default Ollama Q4 (Untuned) | Standard chat | 39.0 – 50.0 tok/s | ~22.4 s (cold long prompt) | No speculative decoding or fused kernels |
| Optimized Engine Baseline | Standard chat | 82.0 tok/s | 22.4 s | Memory bandwidth bound on 1x 3090 |
| + Native MTP (Multi-Token Prediction) | General generation & code | 114.0 tok/s | 22.4 s | Single-session focus; 0.48–0.81 accept rate |
| + DFlash2 Draft Model | Daily conversational chat | 133.0 tok/s | 22.4 s | Requires matching Q4 draft GGUF |
| + DFlash2 + Context Lookup | Mixed RAG & code editing | 138.0 – 381.0 tok/s | 22.4 s | Speed scales with prompt n-gram overlap |
| + DFlash2 + Context Lookup (Peak) | Document reproduction / extraction | 381.0 tok/s | 22.4 s | High token overlap between prompt and output |
| + Prefix Caching Enabled | Multi-turn agent / repeated prefix | 133.0 – 381.0 tok/s | 0.56 s | Reuses KV cache across identical prompt prefixes |
Why Qwen3.8 Flash-Next Slows Down on 3 and 4 RTX 3090s
When running Qwen3.8 Flash-Next at IQ3_S on a single RTX 3090, the 24GB framebuffer is tight. Moving to two RTX 3090s (48GB total VRAM) gives you enough headroom to hold all active weights and the 32K or 130K KV cache comfortably in GDDR6X memory while splitting matrix multiplications across two memory buses. That removes the single-card capacity squeeze and lifts throughput from 88.3 tok/s to 122.6 tok/s at 32K context, holding steady at 121.2 tok/s even when the context stretches to 130K.
Once you add a third or fourth RTX 3090 for a single user stream, the math flips. Because Qwen3.8 Flash-Next uses a sparse activation pattern where each generated token only reads a fraction of the total parameters, per-step compute is relatively light. Splitting a small per-token workload across three or four cards over PCIe forces the inference engine to run all-reduce synchronization transfers across the PCIe bus after every layer. At batch size 1, the microseconds spent waiting on inter-GPU PCIe communication exceed the time saved by dividing the memory reads across extra cards. That is why 3x RTX 3090 drops to 115.5 tok/s at 32K context, and 4x RTX 3090 drops to 118.2 tok/s at 130K context.
The 1x RTX 3090 4-Bit Offloading Trap (27 tok/s at 40% GPU Load)
You might wonder if you can skip IQ3_S on a single RTX 3090 and run a slightly higher 4-bit quantization like Qwen3.8-Flash-Next-AD-3.84bpw-IQ4_XS-M64 (roughly 45.8GB on disk) by offloading experts to system RAM and NVMe storage. I tested this exact setup on a single 24GB RTX 3090 paired with 32GB of DDR5 system memory, where 39.1GB of the model spilled out of VRAM onto the SSD using the following llama-server command:
llama-server \
-m Qwen3.8-Flash-Next-AD-3.84bpw-IQ4_XS-M64-00001-of-00028.gguf \
-ngl 99 \
-ncmoe 32 \
-c 128000 \
-np 1 \
-b 1024 \
-ub 256 \
--jinja \
-fit off
At 128K context without MTP, generation crawled at 27 tok/s while GPU compute utilization sat at 40%. Because the GPU has to wait on PCIe and storage transfers every time an uncached expert is activated, 60% of the RTX 3090 cores sit idle. If you only have one RTX 3090, stick to IQ3_S so the hot path stays in VRAM. If you have three RTX 3090s, do not buy the third card expecting faster single-stream speed; instead, use the 72GB pool to run parallel slots—for example, running IQ3_S with -np 6 to serve six concurrent 256K-context streams at once.
How to Push Single-GPU Qwen3.8-27B from 82 tok/s to 381 tok/s
If you prefer the dense Qwen3.8-27B architecture on a single RTX 3090 (or want to compare self-hosting against Alibaba Cloud Qwen API pricing), raw weight streaming on a 936 GB/s memory bus caps standard 4-bit inference around 82 tok/s even with optimized kernels. Breaking past 100 tok/s on a single card requires generating multiple tokens per forward pass so you only read the 27B weights from VRAM once for every two to five tokens emitted.
Step 1: Reaching 114 tok/s with Native MTP
Qwen3.8-27B includes native Multi-Token Prediction (MTP) heads trained to predict upcoming tokens alongside the main head. Turning on MTP on a single RTX 3090 takes throughput from 82 tok/s to 114 tok/s. If you scale this same Q4_K_M + MTP setup across two RTX 3090s with fused MTP kernels and quantized KV cache, single-session speed peaks at 120.63 tok/s and sustains 96.8 tok/s decode (with 1,483 tok/s prefill) over a continuous 20-minute run—more than triple the 39 tok/s you get out of an untuned default Ollama install on dual 3090s.
Step 2: Reaching 133 to 381 tok/s with DFlash2 and Context Lookup
To go beyond native MTP on a single RTX 3090, you replace or augment the draft stage with the dedicated DFlash2 speculative decoding model paired with Context Lookup (prompt n-gram matching). Here is how the two mechanisms work together:
- DFlash2 Draft Model (133 tok/s in normal chat): DFlash2 is a lightweight draft model trained specifically to match Qwen3.8-27B token distributions. During open-ended conversation where the model generates fresh sentences, DFlash2 drafts candidate token sequences that the 27B target model verifies in a single batched pass, lifting steady-state chat speed from 114 tok/s to 133 tok/s.
- Context Lookup / N-gram Matching (138 to 381 tok/s in document tasks): Context Lookup scans your input prompt for n-gram sequences that match the last few tokens generated. Whenever the model is quoting, summarizing, extracting JSON fields, or refactoring existing code from the prompt, Context Lookup proposes multi-token chunks directly from the input text with near-zero drafting overhead. When combined with DFlash2, mixed retrieval tasks run at 138+ tok/s, and heavy document reproduction hits 381 tok/s.
Step 3: Cutting TTFT from 22.4s to 0.56s with Prefix Caching
Fast decode speed feels unresponsive if you wait twenty seconds before the first character appears. On a single RTX 3090, prefilling a large system prompt and repository context cold takes 22.4 seconds. Enabling prefix caching (--cache-reuse in llama-server or --enable-prefix-caching in vLLM/SGLang) hashes and retains the KV cache blocks of your static prompt prefix in VRAM. On every subsequent turn, the engine skips recomputing the shared prefix and only processes the new delta at the end of the conversation, dropping TTFT from 22.4 seconds to 0.56 seconds.
# Example llama-server launch with speculative draft model, lookup, and prefix caching
llama-server \
-m Qwen3.8-27B-Q4_K_M.gguf \
-md dflash-Qwen3.8-27B-Q4_0.gguf \
-ngl 99 \
-ngld 99 \
-c 65536 \
--draft-max 8 \
--lookup-ngram-min 3 \
--cache-reuse 256 \
--port 8080
The 381 tok/s Illusion: What Coding Agent Users Need to Know
If you are setting up a local server to run Qwen3.8-27B in Claude Code or Codex, do not budget your workflow around 381 tok/s. That 381 tok/s figure is a document reproduction benchmark where almost every output sentence copies or lightly rearranges text already sitting in the prompt window.
In real coding agent sessions, the workload alternates between two very different phases, and DFlash2 behaves differently in each:
When DFlash2 Backfires on Codebase Analysis (130 tok/s Down to 30 tok/s)
When an agent analyzes a complex repository or reasons through an unfamiliar bug from scratch, output entropy goes up and prompt n-gram overlap drops near zero. If the DFlash2 draft model guesses wrong on most steps, you still pay the VRAM bandwidth and compute cost of running the draft model plus verifying extra rejected tokens in the 27B target model.
In my testing and across reproducible llama.cpp runs with Qwen3.8-27B-Q4_K_M and the official Q4 DFlash2 draft GGUF, high-entropy long-text generation can actually run slower with DFlash2 enabled—dropping from 42 tok/s without speculative decoding down to 40 tok/s with DFlash2 on a single 3090. On deep codebase analysis tasks, bad draft acceptance can drag decode throughput from 130 tok/s all the way down to 30 tok/s. Under those conditions, native MTP maintains a much healthier acceptance rate (0.48–0.81 for MTP versus 0.24–0.37 for DFlash) and avoids the verification penalty.
Why Thinking Token Volume Matters More Than Raw tok/s
Even when speculative decoding behaves well—for instance, running unsloth/Qwen3.8-27B-UD-Q4_K_M.gguf at 84.57 tok/s with a 0.763 draft acceptance rate (7,518 accepted out of 9,850 drafted tokens, mean acceptance length 2.53)—coding agents can still feel slow. The culprit is reasoning token verbosity. On a single multi-file edit, Qwen3.8-27B can easily emit 12,444 tokens mostly inside its <think> block before executing a tool call. At 85 to 133 tok/s, burning 12,000 thinking tokens still eats 90 to 140 seconds of wall-clock time and forces context compaction if your server is configured below 200K context. To keep agent loops snappy on 24GB cards, use quantized KV cache (-ctk q4_0 -ctv q4_0 or q8_0) so you can hold at least 96K to 200K context without paging.
Three Critical Bugs to Avoid on RTX 3090 Setups
When combining Qwen3.8-27B, multi-GPU RTX 3090 rigs, and speculative decoding, three specific configuration combinations will either crash your server or silently destroy performance.
1. llama.cpp DFlash + --split-mode tensor Crash on 2x RTX 3090
If you run Qwen3.8-27B across two RTX 3090s in llama.cpp using --split-mode tensor (-sm tensor) and attach the DFlash draft model (dflash-Qwen3.8-27B-Q4_0.gguf), the server crashes during evaluation with one of these two errors:
pre-allocated tensor (output.weight) in a buffer (Meta()) that cannot run the operation (NONE)
GGML_ASSERT(src_ss[0].axis != GGML_BACKEND_SPLIT_AXIS_0) failed
Tensor split slices output.weight across both GPUs along the vocabulary dimension (SPLIT_AXIS_0). DFlash calls ggml_top_k on logits inside the graph, which cannot operate on a meta-buffer split along axis 0. Switching to --split-mode layer prevents the crash, but layer split with DFlash runs slower on 2x 3090 than plain tensor split without DFlash. If you use --split-mode tensor on dual 3090s, use native MTP (draft-mtp) instead of DFlash.
2. SGLang DFlash + Tool Calling Batch Poisoning (! Token Loop)
If you serve Qwen3.8-27B in SGLang (v0.5.19 or v0.5.20) with --speculative-algorithm DFLASH --speculative-num-draft-tokens 6 and --tp 4, watch out for mixed batches. When a single batch simultaneously processes a request with constrained grammar (tool_choice: "required") alongside a ~50K-token prompt prefill, the draft acceptance rate collapses to zero within three decode steps (0.48 -> 0.17 -> 0.06 -> 0.00). Once accept_rate hits 0.00, the engine locks at an accept length of 1.00 and outputs an endless stream of exclamation marks (!, token ID 0) across every request in the batch—even plain-text requests without grammar constraints—until the triggering request finishes. If your coding agent relies on strict tool_choice: "required" schemas alongside 50K+ repo prompts, disable DFLASH in SGLang and use MTP or standard decoding.
3. vLLM --kv-cache-dtype=fp8 Halving Speed on 4x RTX 3090 (50 tok/s vs 100 tok/s)
When deploying Qwen3.8-27B-FP8 on four RTX 3090s with vLLM (v0.27.0), it is tempting to pass --kv-cache-dtype=fp8 to save memory for a 262,144-token context window:
# Bad configuration for RTX 3090 (caps throughput at 50 tok/s)
vllm serve Qwen3.8-27B-FP8 \
--tensor-parallel-size 4 \
--max_model_len 262144 \
--gpu-memory-utilization 0.87 \
--kv-cache-dtype fp8 \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
On four RTX 3090s, this command caps output at 50 tok/s. The RTX 3090 is an Ampere architecture card (compute capability 8.6) and does not have native hardware FP8 support. Forcing --kv-cache-dtype=fp8 makes the GPU execute software-emulated FP8 conversions on every attention read and write. Simply removing --kv-cache-dtype=fp8 (and letting vLLM use auto / BF16 KV cache, which easily fits across 96GB of total VRAM) immediately doubles output speed from 50 tok/s to 100 tok/s.