diff --git a/src/core/arch_defaults.cpp b/src/core/arch_defaults.cpp index 89d79f20..9da2f642 100644 --- a/src/core/arch_defaults.cpp +++ b/src/core/arch_defaults.cpp @@ -154,6 +154,11 @@ std::vector> igpu_default_env(const char* gc {"STRATA_PF_FUSED", "1"}, {"STRATA_SELECT_WMMA", "1"}, // 0.2.9: the block scorer on matrix cores; not bitwise (about 10 of 2,051 selected cells flip at the cutoff // for queries past ~5K tokens), x1.008 at 8K, x1.037 at 32K, x1.077 at 64K (STRIX-Q-RESULTS.md) + // 0.2.9 (owner, 10-30: a consistent Strix Halo speed gain goes on by default): the prompt experts of every covered + // format on the F16 matrix-core kernels (the Q8_0 down layers of the Unsloth files included). Windows gfx1151, + // interleaved x3, same 16 greedy ids: IQ3_S 4K 1,187 -> 1,296 and 8K 1,285 -> 1,399 tok/s (x1.09), UD-IQ4_XS 4K 1,119 -> + // 1,221 and 8K 1,180 -> 1,270; decode unchanged. The rounding differs from the int8 kernels (KL is information only). + {"STRATA_PF_F16", "1"}, }; } return t; diff --git a/src/core/arch_defaults_test.cpp b/src/core/arch_defaults_test.cpp index 95d3860e..2cac579b 100644 --- a/src/core/arch_defaults_test.cpp +++ b/src/core/arch_defaults_test.cpp @@ -185,7 +185,7 @@ int main() { // 0.2.8: Strix Halo (gfx1151, integrated) gets the matrix-core prompt set on Windows; the 780M and the 890M are // not measured there and stay off const bool win_on = m.expect_on && m.integrated && std::string(m.gcn).rfind("gfx1151", 0) == 0; - CHECK(igpu_default_env(m.gcn, m.integrated).size() == (win_on ? 6u : 0u)); + CHECK(igpu_default_env(m.gcn, m.integrated).size() == (win_on ? 7u : 0u)); #else CHECK(igpu_default_env(m.gcn, m.integrated).size() == (want ? 5u : 0u)); #endif @@ -219,10 +219,10 @@ int main() { #if defined(_WIN32) halo_win = std::string(m.gcn).rfind("gfx1151", 0) == 0; #endif - CHECK(t.size() == (halo_win ? 6u : 5u)); + CHECK(t.size() == (halo_win ? 7u : 5u)); std::vector want = {"STRATA_HIP_WMMA", "STRATA_PF_GEMM", "STRATA_PA_FAST", "STRATA_HC_UPMIX"}; want.push_back("STRATA_SELECT_WMMA"); - if (halo_win) want.push_back("STRATA_PF_FUSED"); + if (halo_win) { want.push_back("STRATA_PF_FUSED"); want.push_back("STRATA_PF_F16"); } for (const char* w : want) { bool found = false; for (const auto& kv : t) found = found || (kv.first == w && kv.second == "1"); @@ -274,7 +274,7 @@ int main() { // 0.2.8: Strix Halo (gfx1151) on Windows gets the matrix-core prompt set with nothing asked. Measured on the strix // box (Qwen3.8-Flash-Next IQ3_S, engine 0.1.52, 4K / 8K ids prompts): 4K 690 -> 1,090, 8K 785 -> 1,183 (x1.58 / // x1.51), KL 0.0088 mean against the HC_Q8 bar of 0.0228. The set is HIP_WMMA + PF_GEMM + PA_FAST + HC_UPMIX + - // PF_FUSED; SELECT_WMMA (x1.003) is left out, and the 780M / 890M keep exactly what was measured on them. + // PF_FUSED (0.2.9 adds SELECT_WMMA and PF_F16 to the Windows gfx1151 set), and the 780M / 890M keep exactly what was measured on them. unset("STRATA_IGPU_DEFAULTS"); unset("STRATA_GFX1151_DEFAULTS"); // the 19-switch gfx1151 table is live in this block (the checks above turned it off) CHECK(igpu_prompt_set_enabled("gfx1151", true)); @@ -284,20 +284,20 @@ int main() { CHECK(!igpu_prompt_set_enabled("gfx1103", true)); { const auto t = igpu_default_env("gfx1151", true); - CHECK(t.size() == 6); + CHECK(t.size() == 7); auto has = [&t](const char* k) { for (const auto& kv : t) if (kv.first == k) return kv.second == "1"; return false; }; CHECK(has("STRATA_HIP_WMMA") && has("STRATA_PF_GEMM") && has("STRATA_PA_FAST") && has("STRATA_HC_UPMIX") && - has("STRATA_PF_FUSED") && has("STRATA_SELECT_WMMA")); + has("STRATA_PF_FUSED") && has("STRATA_SELECT_WMMA") && has("STRATA_PF_F16")); CHECK(igpu_default_env("gfx1151", false).empty()); // a gfx1151 reported as a discrete card CHECK(igpu_default_env("gfx1150", true).empty()); // 890M: unchanged CHECK(igpu_default_env("gfx1103", true).empty()); // 780M on Windows: unchanged } { const char* halo[] = {"STRATA_HIP_WMMA", "STRATA_PF_GEMM", "STRATA_PA_FAST", "STRATA_HC_UPMIX", "STRATA_PF_FUSED", - "STRATA_SELECT_WMMA"}; + "STRATA_SELECT_WMMA", "STRATA_PF_F16"}; for (const char* k : halo) unset(k); const auto set = apply_arch_defaults("gfx1151", true); for (const char* k : halo) {