From f33e9fa7b8ca8710cf725743a4e292e6a66422fa Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 12 Nov 2026 19:02:08 +0100 Subject: [PATCH] prefill: wording of the fused-only floor line and of its Strix Halo settings row The engine line printed when a fused-only layer set takes the lower chunk floor now reads: "prefill: prompt pieces of N tokens or more read on the fused kernels, as long prompts do. STRATA_PREFILL_STREAM_MIN=1024 keeps the old rule." The STRATA_PREFILL_STREAM_MIN row of docs/STRIX_HALO.md says that a UD-Q4_K_XL set on Windows takes 64 by itself, other sets keep 1,024, and a smaller N is opt-in. No behaviour change. --- docs/STRIX_HALO.md | 2 +- src/prefill/prefill.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/STRIX_HALO.md b/docs/STRIX_HALO.md index 973dbd0947..cd04132509 100644 --- a/docs/STRIX_HALO.md +++ b/docs/STRIX_HALO.md @@ -153,7 +153,7 @@ measured there. | Switch | What it does | | --- | --- | -| `STRATA_PREFILL_STREAM_MIN=N` | `STRATA_PF_FUSED=1` reaches only chunks of N tokens or more (1,024 by default, the floor measured on a discrete card). With every expert in unified memory nothing streams and MMQ is the slow part, so a smaller N (128) speeds up an agent's turn (a tool result of about 1,000 tokens on a cached conversation: 3.1 to 6.0 s at 1,024 against 0.9 to 2.5 s at 128). | +| `STRATA_PREFILL_STREAM_MIN=N` | `STRATA_PF_FUSED=1` reaches only chunks of N tokens or more (1,024 by default, the floor measured on a discrete card). On Windows a UD-Q4_K_XL set takes 64 by itself (prompt pieces of 96 to 1,000 tokens read 3.6 to 4.4 times sooner); other sets keep 1,024, and a smaller N is opt-in. | | `STRATA_PF_FUSED_KQ=1` | A UD-Q4_K_XL or other K-quant pack takes the fused experts only with this as well. | | `STRATA_PF_F16=1` (gfx11 only) | Runs the covered prompt experts on the F16 matrix cores instead of the int8 ones. It rounds differently from the int8 kernels. | | `STRATA_REFILL_PARTS=1` (exact; HIP and CUDA, a GGUF read in place) | Refills the expert-cache slots a prompt borrowed straight from the GGUF mapping instead of through an assembled 4 MB copy per expert. Only gfx1151 has measured it. | diff --git a/src/prefill/prefill.cpp b/src/prefill/prefill.cpp index 8f20b96a74..41ed7f70d4 100644 --- a/src/prefill/prefill.cpp +++ b/src/prefill/prefill.cpp @@ -383,8 +383,7 @@ inline int64_t default_stream_floor() { const int64_t v = strata::prefill::stream_floor_default(cls, cls && layers_all_fused_only()); cached.store(v, std::memory_order_release); if (v != strata::prefill::kStreamFloorDefault) - std::fprintf(stderr, "prefill: this layer set has no MMQ tile and the fused kernels take every layer: prompt chunks of %lld tokens or more read on them, as long prompts do " - "(Windows gfx1151, UD-Q4_K_XL: 128 to 1,000 tokens 3.6 to 4.4 times sooner). STRATA_PREFILL_STREAM_MIN=1024 keeps the old rule.\n", (long long) v); // [DRAFT] wording: the owner's to word + std::fprintf(stderr, "prefill: prompt pieces of %lld tokens or more read on the fused kernels, as long prompts do. STRATA_PREFILL_STREAM_MIN=1024 keeps the old rule.\n", (long long) v); return v; } inline int64_t stream_all_min() {