[PR #2208] [CLOSED] docs/STRIX_HALO.md: STRATA_PF_SWITCH_MIN_T compares the chunk, not the prompt (a 4K chat request reads a 4,089-token chunk); 2048 puts it on the switches #3925

Closed
opened 2026-11-07 15:31:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2208
Author: @libratechw
Created: 10/13/2026
Status: ❌ Closed

Base: main ← Head: pr/strix-switch-min-t-note


📝 Commits (1)

  • 98f22e9 docs/STRIX_HALO.md: STRATA_PF_SWITCH_MIN_T compares the chunk, not the prompt (a 4K chat request reads a 4,089-token chunk); 2048 puts it on the switches

📊 Changes

1 file changed (+20 additions, -2 deletions)

View changed files

📝 docs/STRIX_HALO.md (+20 -2)

📄 Description

Title

Issue: #2021 (the note only; the recipe value is still open there)

Summary

Section 5 of docs/STRIX_HALO.md sets STRATA_PF_SWITCH_MIN_T=4096, but the threshold is compared with the length of the prompt
chunk. A 4,096-token --serve chat request ("4K", reasoning off, prompt cache on) is read as a chunk of 4,089 tokens, so it
stays under 4096 and the switches the variable gates (STRATA_PF_GEMM, STRATA_PA_FAST and the hyper-connection and padding
switches) are off for it. This adds the note asked for in #2021, with the first-token KL against the default engine at 2048 and
at 4096.

What changed

docs/STRIX_HALO.md, section 5: after the export block, one paragraph and a two-row table; and the section's later line that
said the variable gates only the hyper-connection and padding switches now names STRATA_PF_GEMM and STRATA_PA_FAST as well
(gemm.cu and qsa_prompt_attn.cu read it too). No code and no default changes.

Ryzen AI Max+ 395 (gfx1151, ROCm 7.14.1), on 296b59d2, UD-Q4_K_XL with the section-5 switches and STRATA_PF_FUSED_KQ=1, a 4K
chat request (reasoning off, prompt cache on), interleaved pairs of fresh servers, prompt tok/s:

STRATA_PF_SWITCH_MIN_T 4096 2048 4090 4089
tok/s (pairs) 975-985 (5) 1,128-1,135 (5) 974-976 (2) 1,127 (2)

The step between 4090 and 4089 places the chunk at 4,089 tokens. First-token KL against the default engine (no section-5
switches; the arms have them, UD-Q4_K_XL also STRATA_PF_FUSED_KQ=1), 8 natural-text chat requests of 1.5K, 2,048, 3K,
4,095, 4,096, 4.5K, 6K and 8K tokens, mean (max); the top token is the default's in all 8 at both values:

4096 2048
UD-IQ4_XS 0.0071 (0.014) 0.0051 (0.014)
UD-Q4_K_XL 0.0062 (0.025) 0.0058 (0.018)

Extra Notes

The KL values posted in #2021 (UD-IQ4_XS 0.0168 / 0.0154, UD-Q4_K_XL 0.0026 / 0.0023, top token 7 of 8) were measured on an
older build (7695859a, with an unrelated opt-in change left off), with the prompts built from that checkout's docs and sources;
the 1.5K and 2,048-token ones are the same texts and give the same values, the other six differ. Those here are of 296b59d2.

The KL for 4095 asked for in #2021 is that of 4096: with the prompt cache on, none of the 8 requests reads a chunk of 4,095
tokens, so the two values put the same prompts on the switches.

Whether to change the recipe's 4096 is left to #2021. The header length depends on the template and the reasoning mode, so the
7-token offset can differ for other requests; the note says to set the value at or below the chunk of the shortest prompt wanted.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2208 **Author:** [@libratechw](https://github.com/libratechw) **Created:** 10/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/strix-switch-min-t-note` --- ### 📝 Commits (1) - [`98f22e9`](https://github.com/Niko1221/Strata/commit/98f22e95cc0d87e7db14070594da36d112862d9f) docs/STRIX_HALO.md: STRATA_PF_SWITCH_MIN_T compares the chunk, not the prompt (a 4K chat request reads a 4,089-token chunk); 2048 puts it on the switches ### 📊 Changes **1 file changed** (+20 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/STRIX_HALO.md` (+20 -2) </details> ### 📄 Description ## Title Issue: #2021 (the note only; the recipe value is still open there) ## Summary Section 5 of `docs/STRIX_HALO.md` sets `STRATA_PF_SWITCH_MIN_T=4096`, but the threshold is compared with the length of the prompt chunk. A 4,096-token `--serve` chat request ("4K", reasoning off, prompt cache on) is read as a chunk of 4,089 tokens, so it stays under 4096 and the switches the variable gates (`STRATA_PF_GEMM`, `STRATA_PA_FAST` and the hyper-connection and padding switches) are off for it. This adds the note asked for in #2021, with the first-token KL against the default engine at 2048 and at 4096. ## What changed `docs/STRIX_HALO.md`, section 5: after the export block, one paragraph and a two-row table; and the section's later line that said the variable gates only the hyper-connection and padding switches now names `STRATA_PF_GEMM` and `STRATA_PA_FAST` as well (`gemm.cu` and `qsa_prompt_attn.cu` read it too). No code and no default changes. Ryzen AI Max+ 395 (gfx1151, ROCm 7.14.1), on 296b59d2, UD-Q4_K_XL with the section-5 switches and `STRATA_PF_FUSED_KQ=1`, a 4K chat request (reasoning off, prompt cache on), interleaved pairs of fresh servers, prompt tok/s: | `STRATA_PF_SWITCH_MIN_T` | 4096 | 2048 | 4090 | 4089 | |---|---:|---:|---:|---:| | tok/s (pairs) | 975-985 (5) | 1,128-1,135 (5) | 974-976 (2) | 1,127 (2) | The step between 4090 and 4089 places the chunk at 4,089 tokens. First-token KL against the default engine (no section-5 switches; the arms have them, UD-Q4_K_XL also `STRATA_PF_FUSED_KQ=1`), 8 natural-text chat requests of 1.5K, 2,048, 3K, 4,095, 4,096, 4.5K, 6K and 8K tokens, mean (max); the top token is the default's in all 8 at both values: | | 4096 | 2048 | |---|---:|---:| | UD-IQ4_XS | 0.0071 (0.014) | 0.0051 (0.014) | | UD-Q4_K_XL | 0.0062 (0.025) | 0.0058 (0.018) | ## Extra Notes The KL values posted in #2021 (UD-IQ4_XS 0.0168 / 0.0154, UD-Q4_K_XL 0.0026 / 0.0023, top token 7 of 8) were measured on an older build (7695859a, with an unrelated opt-in change left off), with the prompts built from that checkout's docs and sources; the 1.5K and 2,048-token ones are the same texts and give the same values, the other six differ. Those here are of 296b59d2. The KL for 4095 asked for in #2021 is that of 4096: with the prompt cache on, none of the 8 requests reads a chunk of 4,095 tokens, so the two values put the same prompts on the switches. Whether to change the recipe's 4096 is left to #2021. The header length depends on the template and the reasoning mode, so the 7-token offset can differ for other requests; the note says to set the value at or below the chunk of the shortest prompt wanted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:31:44 +07:00
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#3925
No description provided.