Qwen 27B at Full 262k Context on a 16GB RX 9070 XT: 80+ t/s Decode With Adaptive KV Streaming

bottlestreet3d · reddit · 2026-10-17

The author implements adaptive KV streaming plus RDNA 4/ROCm kernel optimizations in llama.cpp, running Qwen 27B (IQ4XS weights, Q8/Q4 KV cache) with its full 262,144-token context on a single 16GB RX 9070 XT at 80+ t/s decode with MTP.

Problem: the model needs 14.3GB and 262k context requires 7.4GB of KV cache, causing OOM past 65k tokens on 16GB.

Approach:

Results: decode 36.5→9.5 t/s (1k→262k), 71.8–86.5 t/s with MTP at short contexts; prefill 1368→586 t/s. A 231W power limit costs only 3.6% prefill latency. Code is open source.

Original post →

More from Infra

Infra channel →