[GH-ISSUE #5541] [Engine] 0.1.58: -9.4% cold 240K prefill on single gfx1201 (R9700) + Qwen3.8-Flash-Next UD-Q4_K_XL-v31 + MTP; STRATA_GDN_CHUNKED=0 is worse (-15%) #5512

Open
opened 2026-11-08 07:03:14 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @m-seijo on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5541

Summary

Engine 0.1.57 → 0.1.58 (Strata Terminal/Control 0.2.11 → 0.2.12) regresses cold long-context prefill by −9.4% at ~240K tokens on a single AMD card with Unsloth Dynamic V3.1 quants + MTP. The release's long-context numbers stop at 32K/64K, so this may be unmeasured territory.

Possibly related symptom on a different platform: #5520 (prefill regression "grows with context", decode unaffected). Our data point: AMD/HIP, isolated 0.1.57→0.1.58 step.

Environment

  • Strata Terminal/Control 0.2.12, engine 0.1.58-linux-x86_64-hip-rx9070 (prev: 0.1.57, same install method, signed feed)
  • Linux, single Radeon AI PRO R9700 32 GB (gfx1201, ROCm), 128 GB system RAM, tiered expert paging
  • Model: Qwen3.8-Flash-Next, Unsloth Dynamic V3.1 UD-Q4_K_XL, n_ctx 262144, MTP speculative decoding (mtp, n=2), parallel 1, GPU vision enabled
  • Profile env {} → engine default STRATA_GDN_CHUNKED=1 (confirmed in process environ)

Measurements (same synthetic 240K prompt, first request after service start = cold KV; warm page cache)

Engine Chunked GDN Cold 240K prefill Wall
0.1.57 (0.2.11) n/a 3,145 tok/s 76.3 s
0.1.58 (0.2.12) ON (default) 2,848 tok/s (−9.4%) 85.0 s
0.1.58 (0.2.12) STRATA_GDN_CHUNKED=0 2,676 tok/s (−15%) 90.4 s
  • Retrieval accuracy 3/3 (needle canaries at ~70/140/210K) in every configuration — correctness fine, speed only affected.
  • Decode unaffected: 101.8 → 101.7 tok/s (MTP acceptance unchanged).
  • Short-prompt/tool traffic unaffected (tool-call prefill ~287 tok/s, same as baseline).
  • Server-side wall time in engine logs confirms this is real compute, not the #5318 metrics-semantics change.
  • Chunked GDN helps at 240K on this card (+6.4% ON vs OFF) but doesn't recover the 0.1.57 level — consistent with your +6–7% at 32K/64K being only part of the picture, with something else in 0.1.58 costing ~15% at this length.

Methodology note for reproducers: repeated identical long prompts now replay from KV cache in ~1 s on 0.1.58 (prompt_tokens_details.cached_tokens ≈ full prompt) — a "cold" 240K benchmark is only valid on the first request after a service restart (cached_tokens: 0 proves cold).

Asks

  1. Could the benchmark table be extended to 128K/256K on gfx12 hardware? The 32K/64K numbers would not have predicted this.
  2. Is a known 0.1.58 change (KV residency, routing window, expert-paging admission, GDN scan at ≥100K chunk boundaries) expected to cost ~9% only at very long context? Happy to A/B any specific flag or bisect build pair on our box.
  3. If confirmed, worth a release-note entry so we can size the trade-off consciously (we kept 0.2.12 for the tool-call fixes and accepted this for now).

Happy to run additional probes on this exact combo (gfx1201 + UD-Q4_K_XL-v31 + MTP, parallel 1).

Originally created by @m-seijo on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5541 ## Summary Engine 0.1.57 → 0.1.58 (Strata Terminal/Control 0.2.11 → 0.2.12) regresses **cold long-context prefill by −9.4% at ~240K tokens** on a single AMD card with Unsloth Dynamic V3.1 quants + MTP. The release's long-context numbers stop at 32K/64K, so this may be unmeasured territory. Possibly related symptom on a different platform: #5520 (prefill regression "grows with context", decode unaffected). Our data point: AMD/HIP, isolated 0.1.57→0.1.58 step. ## Environment - Strata Terminal/Control 0.2.12, engine **0.1.58-linux-x86_64-hip-rx9070** (prev: 0.1.57, same install method, signed feed) - Linux, single Radeon AI PRO R9700 32 GB (gfx1201, ROCm), 128 GB system RAM, tiered expert paging - Model: Qwen3.8-Flash-Next, **Unsloth Dynamic V3.1 UD-Q4_K_XL**, `n_ctx 262144`, MTP speculative decoding (`mtp`, n=2), `parallel 1`, GPU vision enabled - Profile env `{}` → engine default `STRATA_GDN_CHUNKED=1` (confirmed in process environ) ## Measurements (same synthetic 240K prompt, first request after service start = cold KV; warm page cache) | Engine | Chunked GDN | Cold 240K prefill | Wall | | --- | --- | --- | --- | | 0.1.57 (0.2.11) | n/a | **3,145 tok/s** | 76.3 s | | 0.1.58 (0.2.12) | ON (default) | **2,848 tok/s** (−9.4%) | 85.0 s | | 0.1.58 (0.2.12) | `STRATA_GDN_CHUNKED=0` | **2,676 tok/s** (−15%) | 90.4 s | - Retrieval accuracy 3/3 (needle canaries at ~70/140/210K) in every configuration — correctness fine, speed only affected. - Decode unaffected: 101.8 → 101.7 tok/s (MTP acceptance unchanged). - Short-prompt/tool traffic unaffected (tool-call prefill ~287 tok/s, same as baseline). - Server-side wall time in engine logs confirms this is real compute, not the #5318 metrics-semantics change. - Chunked GDN *helps* at 240K on this card (+6.4% ON vs OFF) but doesn't recover the 0.1.57 level — consistent with your +6–7% at 32K/64K being only part of the picture, with something else in 0.1.58 costing ~15% at this length. Methodology note for reproducers: repeated identical long prompts now replay from KV cache in ~1 s on 0.1.58 (`prompt_tokens_details.cached_tokens` ≈ full prompt) — **a "cold" 240K benchmark is only valid on the first request after a service restart** (`cached_tokens: 0` proves cold). ## Asks 1. Could the benchmark table be extended to 128K/256K on gfx12 hardware? The 32K/64K numbers would not have predicted this. 2. Is a known 0.1.58 change (KV residency, routing window, expert-paging admission, GDN scan at ≥100K chunk boundaries) expected to cost ~9% only at very long context? Happy to A/B any specific flag or bisect build pair on our box. 3. If confirmed, worth a release-note entry so we can size the trade-off consciously (we kept 0.2.12 for the tool-call fixes and accepted this for now). Happy to run additional probes on this exact combo (gfx1201 + UD-Q4_K_XL-v31 + MTP, parallel 1).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5512
No description provided.