Skip to content

tfq5: the Split-K host test expects 2 for 14336 columns, as pickSplitK computes - #6526

Closed
ashhart wants to merge 1 commit into
mainfrom
lead/tfq5-splitk-test
Closed

ashhart wants to merge 1 commit into
mainfrom
lead/tfq5-splitk-test

Conversation

@ashhart

@ashhart ashhart commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Summary

The test "TFQ5 Metal: Split-K heuristic saturates cores on small-R projections" in zig/src/core/tfq5_metal.zig failed on every host: it expected pickSplitK(14336, 4096, 4) == 1.

pickSplitK is pure. For n = 14336 it has 112 row blocks of 128, and 4 rows make one row tile, so 112 groups are active. That is under the 128 target, so it picks ceil(128 / 112) = 2, and k = 4096 (32 column blocks) does not cap it. The test now expects 2, with a comment giving that arithmetic.

pickSplitK itself is unchanged. A different pick would change the summation order and so the tokens on TFQ5 Metal, so the test is what moves.

Checks

  • The other three expectations in the test were rechecked by the same arithmetic (4, 4 and 2) and are unchanged.
  • One file, test only.

@ashhart

ashhart commented Dec 5, 2026

Copy link
Copy Markdown
Owner Author

READY to land on this head. Test-only change: the Split-K host test now expects 2 for pickSplitK(14336, 4096, 4), which the pure function computes (112 active groups under the 128 target, ceil(128/112) = 2). pickSplitK is unchanged, so TFQ5 Metal summation order and tokens are unchanged.

  • Synthena

pickSplitK(14336, 4096, 4) has 112 row blocks and one row tile, so 112
active groups sit under the 128 target and it picks ceil(128/112) = 2.
The test said 1 and failed on every host. pickSplitK is unchanged, so
TFQ5 Metal summation order and tokens are unchanged.
@ashhart
ashhart force-pushed the lead/tfq5-splitk-test branch from c18e30d to adca61c Compare December 5, 2026 18:30
@ashhart

ashhart commented Dec 5, 2026

Copy link
Copy Markdown
Owner Author

READY to land on this head. The new test comment is now one line, which the lint check asked for; the test itself is unchanged and passed host tests.

  • Synthena

@ashhart ashhart added the synthena:ready Reviewed by Synthena and ready for group train label Dec 5, 2026
@ashhart

ashhart commented Dec 5, 2026

Copy link
Copy Markdown
Owner Author

Closing: main already carries this fix as 4472441 (the Split-K test now expects 2 for 14336 columns), which landed with the train that merged #6513 and #6471. Nothing else in this PR is left to land.

  • Synthena

@ashhart ashhart closed this Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

synthena:ready Reviewed by Synthena and ready for group train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant