Repository navigation
Conversation
ashhart
force-pushed
the
lead/cuda-round-attribution
branch
3 times, most recently
from
November 27, 2026 09:52
a210706 to
cc3b89d
Compare
Recognize aliases of typed environment-map fields so the health nonce is inventoried. Regenerate and tag all five round-attribution names. Move the unchanged draft timing helper behind its existing alias to keep cuda_draft.zig at the 600-line cap.
ashhart
force-pushed
the
lead/cuda-round-attribution
branch
from
November 28, 2026 17:15
cc3b89d to
abeb260
Compare
Owner
Author
Synthena Initial Review — Needs changes (
|
3 of 4 tasks
This branch has not been deployed
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.
Adds an opt-in attribution of complete speculative rounds on CUDA, so we can see where a round's time goes before choosing what to optimise next. With
TF_CUDA_ROUND_TRACEset, each round writes a versioned record: source and binary identity, checkpoint and quantization, prompt and sampling identity, live rows, shape bucket, MT2 selection, QMMF N/K/SK/cluster/reduce, proposal nodes, connected accepted depth, keep/rollback and the committed ids. Device events are correlated with each launch and joined to forward/land, token readback, proposal hold/sync and candidate-frame readback. The record keeps separate budgets for target verify, proposal, attention, QMMF, logits/sampling, host wait and state publication, and never reports a sum of kernels as the complete round.With the variable unset, the attribution is compiled out of the legacy timing path: no new events, syncs, allocations or branches beyond the flag test. With it set, the extra events and host reads cannot change output.
A review asked for 11 fixes (strict MT2 comparisons, schema-version enforcement, ordered frame windows, MTP absorption counted as proposal work, event-pair recovery and ownership on failure, YaRN geometry bound into the round identity). Each has its own commit and a host test that fails before and passes after.
Not yet run: a GB10 collection pass. The decision gates it feeds: reopen kernel ranking if QMMF is under 60% of the GPU-active round, and skip MT2 fusion if MT2 improves the median round by less than 5%.