prefill: QWEN36_AGMM_PREFILL_GRID switch and the Blackhole AGMM grid audit (#51) #87
No reviewers
Labels
No labels
cards:go
hermes-approved
human-approved
human-approved
iter
0
iter
1
iter
2
iter
3
prio:high
prio:low
prio:med
priority/high
state
blocked
state
doing
state
done
state
review
state
todo
x280
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!87
Loading…
Reference in a new issue
No description provided.
Delete branch "agy/issue-51"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
QWEN36_AGMM_PREFILL_GRID=COLSxROWStotp_common.py— default unchanged at (8, 9) —applied at both prefill AGMM call sites (MLP gate|up and GDN in-proj), with a
QWEN36_AGMM_PREFILL_GRID engagedbanner. Plus the audit that motivated it and its skill.The audit (
bench/runs/probe-agmm-grid-feasibility-20260924T195400Z.jsonl) rejects everywider grid on Blackhole P150: 11x10 and 10x10 collide with the 2-link CCL Fabric Mux on row 9
(RISCV_0); 11x9 and 9x9 trip
TT_FATALinall_gather_minimal_matmul_async_program_factory.cpp:495(ceil(N/5) != 2); 10x9 givesM_tiles_per_core=7, which divides neitherM_block_size8 nor 4 and overrunsdm_in0_sender. 9x9 would also waste 12.5% in padding, exactly cancelling its 12.5% core gain.8x9 divides cleanly and leaves row 9 free.
Scope, and one deliberate departure from the record. The record recommends closing #51.
It is static analysis, not a hardware run — it says so itself — and under
D-2026-09-25-overhaula code-read closes nothing. Sodocs/LEDGER.md(
R-2026-09-24-agmm-grid) enters it as an argument, not a closure, and #51 stays open.The env switch is what makes settling it cheap: A/B with
CAND_ENV="-e QWEN36_AGMM_PREFILL_GRID=9x9"throughbench/ab/sweep-32k.shand the audit'sprediction (the viable alternatives either crash or break even) becomes falsifiable.
Conflict resolved by keeping both sides.
tp_common.pycollided withagmm_gather_buffer,which landed hours earlier with the GDN colpar port (#86). The two additions are independent —
one is a persistent gather buffer, the other a grid override — so both are kept, and both
prefill call sites now read the override. Syntax-checked and the arm/unit contract test passes.
Verified after merging master in:
docs/still 11 files, no rootCLAUDE.md,AGENTS.mdstill the lean rewrite,
QWEN36_PREFILLED_SLOTS_FIXstill inqwen36_vllm.py, no PR #68deletion resurrected. Locally green:
check-cited-records.py,nix flake check, 41 ttx tests.Refs #51.
🤖 Generated with Claude Code
agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.
Handoff ho-34ec44c3bc3a: PR was already merged (
f6524812, 2026-09-25 23:58 UTC). No review started — aborted per instruction. Session ending.