Repository navigation
Conversation
…for gate 5 The 14 'glm moe rows' records (9e52d73) fell to the generic 'glm ' branch of the Metal limits resolver, whose key, 'moe', names no generated kernel: the device pass stopped at error.UnknownLaunch after glm_rows_wide_q8. They take the gather source the loader builds them from (glm/wide.zig), as 'glm rows ' does.
…r adds #3921 made kernels.zig put `#define TF_GLM_M3_FAST 1` before the KDA prompt passes and glm_index_nax.metal on a GPU without tensor units. The KDA and index contracts still built those texts without it, so on an M3 the loader check refused them ("GLM contract text is not one the loader compiles") and the whole GLM contract stopped before its first case. Both texts now follow the loader, and gate 5's pre-M5 texts carry the define too.
…oes; its record declares 18432 bytes On a GPU without tensor units the case compiles glm_index_nax.metal with TF_GLM_M3_FAST (#3921, #4397), whose threadgroups cover 32 rows with 4 simdgroups, but encode launched it as on M5: scoreRows' 64 or 128 rows a group and 2 x rows threads. Rows past 32 x the groups' count were never written (256 x 128 x 16384: rows 64 on, byte 1065728), so the shapes gate compared unwritten floats against main's scores. The case now launches it as selectKeys does (glm/prompt.zig: 32 rows, 128 threads); rows it wrote matched main's bytes already, and the kernel is unchanged. Before M5 the planted control moves into the pre-M5 branch (both simdgroups of a row pair on the same 32 blocks), since the M5 branch it edited is not compiled there. The pre-M5 kernel stages 128 x 72 bf16 (18432 bytes) of keys; the record declared 17408 (the M5 tile, 64 x 136), so gate 5's limit now declares 18432.
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI for a landing train: #4397 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.