Export Cake KMeans plan-runtime suite (124-record geomean 2.18x, 1.0x floor passes with 0 below)#7
Open
yyihuang wants to merge 2 commits into
Open
Conversation
Plan-based launch runtime (per-signature LaunchPlan cache, prepacked argument buffers, TMA variant-bank pointer rebinding) exported and validated on 4x NVIDIA GB200: 124/124 correctness and ordered route parity, hot public synchronized-E2E speedup vs the exact-07cf raw Triton adapter min 1.0386 / geomean 1.6917 across all 124 contract records with 0 rows below the 1.0x publication floor. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Re-exported from Cake main 42070e96d, which consumes the KMeans plan-runtime wiring: per-signature LaunchPlans and CUDA-graph hot-path capture (new _launch_plan.py exports), plus the synced registry baseline identity. Validated on 4x GB200: 124/124 correctness and route parity, hot public E2E vs the exact-07cf raw adapter min 1.0938 / geomean 2.1825 across all 124 contract records, 0 below the 1.0x floor. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
This PR re-exports Cake KMeans assignment through the new plan-based launch runtime with per-signature CUDA graphs and is the direct successor of PR #15. Same reusable two-stage public API:
The committed artifact was generated and validated from exact merged Cake main
42070e96d0734cb580854baef60f17625ba33bb5, which includes the plan-based export runtime arc (per-signature resolvedLaunchPlan+ plan cache, prepacked argument buffers, TMA variant-bank pointer rebinding), the D112 a262 dispatcher winner, and the KMeans plan-runtime graph wiring (per-signature CUDA-graph capture of each record's route chain; a hot call is pointer-patch + onecuGraphLaunch). Exact provenance is embedded inmanifest.json.What changed vs PR #15
PR #15 froze the interpreted host stack into the shipped hot path and failed its 1.0x floor closed (98/124 records lost to the exact-07cf baseline hot). This export resolves every contract signature into a static launch plan at plan-construction time and captures its route chain into a CUDA graph. Publication-workflow bugs fixed along the way in Cake main (each found by this run's fail-closed gates): the correctness overlay's missing
measurement_order_seed(MR 305), a stale frozen registry-identity mirror in the benchmark asset (MR 306), and an unbalanced lifecycle cold ordering (MR 307, now rank-alternated exactly 62/62 over the contract portfolio).Correctness and scope
sm_100a)07cf2a2, same session, CUPTI timing everywhereHot steady-state synchronized E2E vs PR #15
Official metric:
exact-07cf raw adapter / runtime.compute, synchronized host end-to-end (raw BF16 inputs, default output allocation, route-required internal fused norms, launch work, GPU execution and gaps, terminal synchronization).<1.0xEvery one of the 124 contract records now beats the exact-07cf baseline hot; PR #15 lost on 98 of them.
Modeled amortized synchronized E2E
Cold init-once median 242.8 ms (NVRTC) with first
compute()median 3.13 ms; the including-init table crosses 1.0x by N=100 — unlike the KNN suites, KMeans already amortizes its init within realistic call counts. Prebuilt cubins (plan-runtime design steps 4–5) remain the queued follow-up for the N=1 cold case.Validation contract
VALIDATION.json, per-recordBENCHMARK_RESULTS.json, human summaryVALIDATION.md.🤖 Generated with Claude Code
Mirrors yyihuang/flashlib#19 onto the FlashML-org upstream.