mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1391] [CLOSED] docs: STRATA_PREFILL_STREAM_MIN=128 in the gfx1151 fast configuration (agent-sized prompt reads on the fused experts: 3.4 -> 2.1 s per turn on Strix Halo) #3424
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3424
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1391
Author: @routhjim
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:streammin-gfx1151📝 Commits (1)
c9d6c9bdocs: STRATA_PREFILL_STREAM_MIN=128 in the gfx1151 fast configuration📊 Changes
1 file changed (+9 additions, -0 deletions)
View changed files
📝
docs/STRIX_HALO.md(+9 -0)📄 Description
STRATA_PF_FUSED=1only reaches chunks ofstream_all_min()tokens or more:fused_nat/fused_linPrefillrequirestream_all, andstream_allrequiresT >= stream_all_min()(1,024). A smaller read runs its experts through MMQ. The 1,024 floor was measured on a 5070 with Q2_0, where a smaller chunk does not pay for streaming every expert over PCIe.On Strix Halo with
--mmap-experts --expert-cache autoevery expert is resident, so nothing streams at any chunk size, and the only difference left is the kernel. There MMQ is about 3x slower than the fused kernels on a ~1,000-token read. That is the size of an agent's turn: a tool result or a test's output on top of a cached conversation. With the floor at 1,024, a third of those turns land just under it.The switch already exists (
STRATA_PREFILL_STREAM_MIN, the A/B override). This PR changes no code. It adds the switch to section 5's fast configuration indocs/STRIX_HALO.md, with a paragraph on what it does.It changes bits. A read of 128-1,023 tokens gets the fused path's output, the output a read of 1,024 tokens or more already gets. Hence section 5, not the section-4 default table. It is not under
STRATA_PF_SWITCH_MIN_T, which gates only the hyper-connection and padding switches; the fused experts already run on reads of 1,024-4,095 tokens in the fast configuration.Measured on a Ryzen AI Max+ 395 (Radeon 8060S, gfx1151, 128 GB, Linux 7.2, ROCm 7.14.1, the iGPU alone).
e8ca9af(main) per section 2 ofdocs/STRIX_HALO.md. Section-4 defaults, section 5's fast configuration, plusSTRATA_PF_FUSED_KQ=1(the pack is K-quant).--mmap-experts --expert-cache auto --prefill 16384 --no-prefill-borrow --spec 2 --kv int8.STRATA_PREFILL_STREAM_MIN=1024(today) against=128.strata serve: prompt ...lines andSTRATA_TRACE=1.Single reads, greedy, a fresh prompt each:
An agent-shaped replay: one conversation, a 4.5K-token first prompt, then 11 turns that each append 920-1,130 tokens of source text and ask for 128 tokens. The prefix is reused every turn.
Output. The two reads under 1,024 tokens gave different greedy text between the arms. The 1,273-token read, on the same path in both arms, gave the same text, so the difference comes from the kernels.
Distribution check (teacher-forced, the method of
docs/UNSLOTH_Q4.md/bench/results/2026-10-03-v100-prompt-attn).--short-read 400), where every token is scored:STRATA_LOGPOSwithSTRATA_LOGPOS_TOPK=256, ~2,350 positions per set.STREAM_MIN=1024,PF_FUSED_KQ=1): short reads on MMQ, long reads fused;PF_FUSED_KQ=0: MMQ for both.Reading:
Not tested:
--prefill-borrow(I measured only--no-prefill-borrow, which this box can afford);Measured with the help of Claude (Anthropic).
🤖 Generated with Claude Code
https://claude.ai/code/session_013XBY17SSRKGmDXc2YFsrmp
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.