From 88aaf325a7026ac1127d0897394b0a3d6413dc2a Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 16 Oct 2026 09:35:19 +0300 Subject: [PATCH] tests : catch vanished rows in the fusion baseline (#30618) * tests : update the Metal fusion baseline Re-record the MTL fusion baseline with the current build: 276 rows over 131 dummy models. Assisted-by: pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB) * tests : fail test-fusion when a baseline row stops matching The report was built from the counters the run produced, and the baseline was only ever used as a lookup table, so a fusion that stopped matching produced no row and was never compared. qwen4exp and mellum lost their fusions this way while the Fusion / metal job stayed green. Report a baseline row that the run does not reproduce as a regression. Scope the pass to the arches that were actually run so --model keeps working. Assisted-by: pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB) * pi : never write inline comments unless the user asks Assisted-by: pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB) * tests : keep the mellum dummy model softmax-gated mellum reads expert_gating_func from the GGUF since #30578, while the fixture writes sigmoid for every MoE arch, so the Mellum dummy model stopped building the softmax MoE routing fusion. Write softmax for mellum, matching the arch default and the GGUFs that conversion/mellum.py produces. Re-record the MTL baseline: the routing row is back, 277 ok / 0 failed. Assisted-by: pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB) * pi : use emoji in the AI stats disclosure Assisted-by: pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB) * pi : list the disclosure model after the hardware Assisted-by: pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB) * pi : use monochrome symbols in the AI stats disclosure Assisted-by: pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB) * tests : add muse-spark to the Metal fusion baseline Assisted-by: pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB) --- .pi/gg/SYSTEM.md | 9 ++++++--- tests/fusion/MTL.csv | 7 ++++++- tests/fusion/README.md | 4 ++-- tests/test-fusion.cpp | 39 +++++++++++++++++++++++++++++++++----- tests/test-llama-archs.cpp | 15 ++++++++++++++- 5 files changed, 62 insertions(+), 12 deletions(-) diff --git a/.pi/gg/SYSTEM.md b/.pi/gg/SYSTEM.md index b086d7216..927224fbf 100644 --- a/.pi/gg/SYSTEM.md +++ b/.pi/gg/SYSTEM.md @@ -11,6 +11,7 @@ General: - Never read the `AGENTS.md` file Coding: +- Never write inline comments in the code unless the user tells you to - When in doubt, always refer to the CONTRIBUTING.md file of the project - In `test-backend-ops.cpp`, do not mention specific backends (e.g. Metal, CUDA) in comments - When referencing issues or PRs in comments, use the format: @@ -23,13 +24,15 @@ Pull requests (PRs): - Don't explicitly wrap lines in the PR description (each paragraph and bullet is a single line) - When creating a pull request, look for the repository's PR template and follow it - For the AI usage disclosure section, write "YES", then these 4 bullets: - - Model: ``, linked to its Hugging Face page - the link text is the plain model name - Harness: `pi:llama.cpp` - Hardware: `` + - Model: ``, linked to its Hugging Face page - the link text is the plain model name - Stats: `` - Run `~/.pi/stats.sh "$PI_SESSION_FILE"` to get `` and write it as - `time=