Skip to content

Tests: the 27B decode control edits #2106's masked line, so M5 contract runs finish - #2303

Merged
ashhart merged 2 commits into
mainfrom
lead/q27-control-2301
Nov 6, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/q27-control-2301

Conversation

@ashhart

@ashhart ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Fixes #2301, found and diagnosed by @BobClawblaw.

#2106 (9be323a) gated the 27B's decode line on MASKED (const bool masked = MASKED && q27_nonfinite(...)), but the decode control in zig/tests/contract/metal_q27_attn_rows.zig still edited the old text. On an M5 it found no match, so Attn.init returned error.ControlEdit and tf-kernel-contract stopped before any summary. Chips before M5 have no decode control, so only the M5 was affected, and the GitHub checks don't run the contract on a GPU.

The control now edits the new text, as the issue proposed. It's a test-only, one-line change.

Checks: zig fmt --check and a plain zig build (255 of 255 steps). An M5 Ultra contract run with --only "non-finite values unmasked" is queued, and its numbers go here.

@ashhart

ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Checked on an M5 Ultra on this head with tf-kernel-contract --only "non-finite values unmasked": both of the 27B's controls are red as planted (decode rows: 29 of 30,720 outputs differ in class; prompt rows: 46 of 49,152), and the run reaches its summary. That matches the issue exactly, so this goes in the landing queue.

ashhart and others added 2 commits November 6, 2026 13:48
…ct runs reach their summary

9be323a gated the decode line on MASKED, and the decode control's edit still looked for the old text, so on M5
Attn.init returned ControlEdit and tf-kernel-contract stopped before any summary (#2301).

Co-authored-by: BobClawblaw <288991054+BobClawblaw@users.noreply.github.com>
@ashhart
ashhart force-pushed the lead/q27-control-2301 branch from 03b1dcf to 23d87ef Compare November 6, 2026 13:48
@ashhart
ashhart merged commit 878ab5b into main Nov 6, 2026
9 of 11 checks passed
@ashhart

ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Thank you @BobClawblaw. This is merged into main with your commits under your own name, so you're credited as a TensorFold contributor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kernel contract: qwen27 decode control edits text that 9be323a0b changed, so M5 runs stop with ControlEdit

1 participant