Repository navigation
Conversation
GLM's load-time race summed the 2-, 4- and 8-row windows and one draft step of its classic and factored NVFP4 expert forms, then ran every decode window on the winner. A sum hides the widths it loses: at TP=4 the factored form wins at 1 and 8 rows but loses at 4 and 6, so four streams without drafts decode about 2% slower than on classic. Both forms give the same bits (the NVFP4 fact contract holds the factored tiles and waves to the decode form's sums), so each window can take either. The race now times both forms at all ten widths, keeps classic at a width unless factored is more than 1% faster there, and prices each width at its kept form's time instead of timing the table again. A window runs on the form of the narrowest timed width that holds it: rank 0 sends the forms as a bit a row count, and the record keeps a bit a width. Records carry the build's hash in their key, so no record of a single-form build is read for its forms. The race sweeps every width five times on both forms, untimed, before it times a window, then each width's timed windows take the two forms in turn, classic first on even rounds and factored first on odd ones. Timed one form after the other, the order picked the form: on four GB10s at TP=4 a log of every run showed classic's narrow widths up to 60% over their later time in a load's first 4 s, and a 4 to 6% drift through the race on one form, so two launches of one build kept different forms at 3, 4, 6 and 12 rows. Five sweeps of both forms take about 5.4 s there. TF_GLM_EXPERT_FORM now names one form for every width: the warm-up sweeps that form ten times and the load times the windows and the draft step at it, and a load that times nothing sends it to every rank for every row count. The startup line names one form when every width shares it, else the more common form and the widths where the other runs (experts factored, classic at 4 and 6 rows).
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: #3249 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.