Repository navigation
model: coverage lists minimax-m3's own rows: the group-16 flash, the partial NeoX rope, the block-max selector, the 128-expert top-4 router and the swigluoai blocks - #1054
Conversation
…through the registry: the group-16 flash, the partial NeoX rope, the block-max selector, the 128-expert top-4 router and the swigluoai blocks
There was a problem hiding this comment.
Verdict: CLEAN: No must-fix finding remains; current-head validation evidence is incomplete.
Non-blocking
⚠ Refresh validation evidence: spec.rs:392. The supplied test log names head aeb57f6, while this review covers 4b2e105 and includes registry and recipe changes.
Run cargo test -p bloomery-model -j8 and python3 tools/recipes.py --self-test at the current head. Include a FAIL-first result with the family coverage entry removed so the evidence covers the final change.
Checked
Duplicates: the shared-expert and group-16 predicates replace existing copies. Dryer reported 0 pairs.
Complexity: crapper flagged no function. The changes affect load-time coverage and tooling.
Silent failure: the selector's Result-to-boolean conversion leaves invalid counts uncovered; coverage names the need and placement refuses it.
Tests: static mutation review confirms assertions reject widening selector bounds, dropping rope/router guards, requiring dense widths divisible by 256, and removing the registry's family coverage entry. The unsupported-shape test checks the small header. The shared FAIL-first helper checks that removing one row adds the expected item.
Gates: no tolerance, threshold or lint level moved. The unsupported-shape assertions now name the remaining unsupported instances.
Escape catalog: no C1–C4 pattern matched. Python syntax parsing passed; the changed dispatch regex recognizes the family coverage constant.
Notes
Rust tests and Python self-tests were not executed during validation.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
The review is done and the contribution check passed, so I'm merging this. |
minimax-m3 모델이 실제로 쓰는 연산을 coverage 표가 인식하도록 고친 PR입니다.
What and why
program_of(MiniMaxM3)returnsMiniMaxM3Body, but no row inAVAILABLEnamed that program.coverage::check(and soPlanInputs::unimplementedandPlanInputs::read) therefore listed every operation minimax-m3's kernels already run as missing, even for the released shape.Fixes #803.
The change is in
crates/model/src/arch/coverage.rs. Two existing rows gainMiniMaxM3Bodybecause its kernels are the row's kernels: the group-16 flash (enqueue_pass_p16_blocks) and the ungated shared expert. Six rows are new, because no existing row runs those instances: the partial NeoX rope with QK norm, the block-max selector (4 heads of 128, blocks of 128, rope over 64, with top_k and local checked byruntime::msa::Msa::new), the 128-expert top-4 router under the biased-sigmoid body, the dense SwiGLU-OAI block, and the routed and shared SwiGLU-OAI experts. The router is its own row instead of an entry inSIGMOID_ROUTERS, so other models do not gain a 128/4 router they never import.Release notes: Fixed: the coverage check no longer lists minimax-m3's supported operations as missing.
Code shape
copying it (
AGENTS.md"Common code first",docs/rust-quality.mdR14). Where I found an existing copy, Inamed it below.
(tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
tools/check-comments.sh).PIN(YYYY-MM-DD):and its reason.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line), or "none": none. The selector row asksruntime::msa::Msa::newfor the top_k and local rule instead of copying it.What I ran
The change is host-side (the coverage table and its tests), so the run is the model crate's tests at head
aeb57f626b0a29105d5e216d03f5544a61bcd293, basebe3e6d336d7c6ac24e1ab8556b59035d4cf6e325:New tests:
the_released_shape_is_coveredbuilds the spec at the released hparams and asserts that no need frommodels::needsis listed bycoverage::check.the_minimax_selector_row_is_the_kernels_geometrycovers the released geometry (top 16, local 1) and the edge (top 32, local 32), and checks that heads 2, d 64, top_k 33, top_k 0, block 64, local 0, local 17 and rope 128 stay uncovered.what_no_program_runs_is_listednow names the unsupported needs of the small header (GQA head 16 group 4, QK rope head 16, block-max 2x16 over blocks of 4, router 8 experts top 2, dense swigluoai ff 48).AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.