Repository navigation
Studio images: family batch adapters, measured batching race and per-size CUDA graphs #19837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,861
−114
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b24c827
Studio images: family batch adapters, measured batching race and per-…
danielhanchen 28a9ecb
Studio images: no coalescing wait at a shape with no admitted size; r…
danielhanchen f437380
Studio images: a batch size that loses the race drops its CUDA graphs
danielhanchen 58e0db6
Studio images: test that a measured win coalesces at the winning size…
danielhanchen 6c55fd6
Studio images: members a fired batch could not take coalesce again be…
danielhanchen f5b1cec
Studio images: no shared call while FBCache can run; decode coalesced…
danielhanchen e8879fb
Studio images: FBCache coupling test holds with the length guard and …
danielhanchen 731542d
Studio images: free the failed call before the halved retry; key race…
danielhanchen a8e5e17
Studio images: an edit at a new reference size never evicts a text-to…
danielhanchen 9f0b357
Studio images: batch-size graphs get their own pool and graph budget;…
danielhanchen 51c1217
Studio images: the race's batched-eager arm really runs with the grap…
danielhanchen bae160e
Studio images: key batching race verdicts by card topology
danielhanchen 95de9ec
Studio images: price and scope batched CUDA graphs by what they hold
danielhanchen fe47b92
Studio images: seeded joins, eager wins and static compiles follow wh…
danielhanchen 1a97100
Studio images: pin the Fast CFG interval in the batch key
danielhanchen 53efa94
Studio images: the eager arm stays eager, graphed verdicts keep their…
danielhanchen 8ca902e
Studio images: an aborted race size drops the batched graphs its warm…
danielhanchen 3221b2c
Merge remote-tracking branch 'origin/main' into studio-batch-infra-main
danielhanchen 92efbc1
Studio images: block graph handles never count a graphed race winner …
danielhanchen 705da24
Studio images: a graphed race verdict holds only beside a live graph …
danielhanchen 0d7d96d
Studio images: a measured batching win serves only with a passing G2c…
danielhanchen 395de8b
Studio images: the race's replay check compares row 0 with its solo r…
danielhanchen e5b8e38
Studio images: the quality gate reads the path a race really ran, and…
danielhanchen 71e85dc
Studio images: the race picks a qualifying arm first and refuses size…
danielhanchen 67a7dcd
Studio images: a batched warm-up that runs out of memory keeps the si…
danielhanchen 0dac8dd
Merge remote-tracking branch 'origin/main' into studio-batch-g2c-gate
danielhanchen 7859edb
Studio images: the race never measures across a change in how the loa…
danielhanchen 9173835
Studio images: the route leaves MOSS to the engine, and an eager win …
danielhanchen 6e6b15b
Studio images: an adapted load never consumes the adapter-free batchi…
danielhanchen 6332acb
Studio images: withhold an eager batching win once a same-size graph …
danielhanchen 9993ecd
Merge remote-tracking branch 'origin/main' into studio-batch-g2c-gate
danielhanchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Studio images: an aborted race size drops the batched graphs its warm…
…-up recorded A request arriving after the batched warm-up aborted the size before the drop, so the graph it recorded kept its static buffers and pool until a reset or unload, though no verdict could ever admit it. [skip ci]
- Loading branch information
commit 8ca902ef0c647202b8d051eed8dc69ffe66d18fc
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a load using
BlockGraphSet, an eager-arm win does not actually switch subsequent coalesced requests to eager execution:_drop_batched()skips these handles because they have nodrop_batched()method, andgenerate()re-enables them throughcuda_graph.set_bypass()before each chunk.effective_verdict()nevertheless accepts the eager winner unchanged. With an eager G2c PASS, this admits requests using the graph path that lost the race and may lack a graph quality PASS; the seeded reproducibility checks also describe a different execution path. Apply a per-call bypass for eager-winning sizes, or withhold their promotion when the handle cannot enforce that path.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3e8503c312 by withholding promotion: an eager-arm win now stands only when every graph handle can drop its batched graphs (drop_batched). The race records why it withheld one, and effective_verdict() applies the same rule to saved verdicts, including a graphed win that falls back to its eager arm. New test: a fast eager win on block-graph-style handles is not promoted by the race or from a saved verdict (fails before the fix); a control with drop_batched still promotes.