Agent Skills › Anbeeld/beellama.cpp › update-fusion-table

update-fusion-table

GitHub

更新设备测试融合基线文件。当融合模式或模型集变更导致 test-fusion --check 失败时,重新生成基准数据,确保计数变化符合预期并修复正确性错误。

skills/update-fusion-table/SKILL.md Anbeeld/beellama.cpp

触发场景

test-fusion --check 失败 需要更新融合测试基线

安装

npx skills add Anbeeld/beellama.cpp --skill update-fusion-table -g -y
更多选项

不安装直接使用

npx skills use Anbeeld/beellama.cpp@update-fusion-table

指定 Agent (Claude Code)

npx skills add Anbeeld/beellama.cpp --skill update-fusion-table -a claude-code -g -y

安装 repo 全部 skill

npx skills add Anbeeld/beellama.cpp --all -g -y

预览 repo 内 skill

npx skills add Anbeeld/beellama.cpp --list

SKILL.md

Frontmatter
{
    "name": "update-fusion-table",
    "description": "Regenerate a per-device test-fusion baseline (tests\/fusion\/MTL.csv, ...) after fusion patterns or the dummy-model set change. Use when test-fusion --check fails."
}

Update a fusion baseline

tests/fusion/<BACKEND>.csv is the test-fusion golden baseline: arch,moe,mode,label,count, where count is how many times a fusion label matched per graph run. See tests/fusion/README.md.

Re-record only when the counts moved for the reason the contributor intended. A row failing on nmse_fus (> 1e-4) is a fused-vs-unfused correctness bug, not baseline drift - fix it, never record it away.

Steps

cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_METAL=ON       # enable the target backend
cmake --build build --config Release --target test-llama-archs --target test-fusion -j

rm -rf build-ci-models && mkdir -p build-ci-models              # always regenerate
./build/bin/test-llama-archs -o build-ci-models

D=MTL0; B=tests/fusion/MTL.csv; T=/tmp/$(basename $B)   # keep the target backend/device in sync
./build/bin/test-fusion --models build-ci-models --device $D --check $B   # read the FAIL rows
./build/bin/test-fusion --models build-ci-models --device $D --record $T
diff $B $T
cp $T $B
./build/bin/test-fusion --models build-ci-models --device $D --check $B   # 0 failed, exit 0
  • Read the diff before applying it. Every added, removed or changed row must be explainable by the change under review; an unexplained row means the run picked up something unintended.
  • expected 0 in a FAIL row = no baseline row for that label (new arch, or a fusion newly firing); non-zero expected = count changed; fusion ... is no longer matched = row stopped firing.
  • --record rewrites the whole file, so never record a partial run (--model FILE, a filtered models dir) - it drops the rows of every architecture that was not run.
  • --record marks every row ok; only the --check run validates.

版本历史

  • b46c53e 当前 2026-11-02 19:49

同 Skill 集合

skills/slice-model/SKILL.md

元信息

文件数
0
版本
b46c53e
Hash
1138b1ef
收录时间
2026-11-02 19:49

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-04 10:59
浙ICP备14020137号-1