Repository navigation
[DO NOT MERGE] Kernel Interview Track: curriculum + 6 'why is this slow' challenges (134-139) - #349
Draft
kunal-mansukhani wants to merge 3 commits into
Draft
kunal-mansukhani wants to merge 3 commits into
kunal-mansukhani wants to merge 3 commits into
Conversation
Merged
2 of 4 tasks
kunal-mansukhani
added a commit
that referenced
this pull request
Oct 15, 2026
…ecoding Attention (141) (#350) Free, hard LLM-inference kernels. FP8 block-scaled GEMM is the DeepSeek-V3 / DeepGEMM E4M3 x E4M3 matmul with 1x128 float32 scales. Flash decoding attention is long-context single-token (T << S) multi-head decode. References accumulate in float64. Leaves Interview Track #349 (134-139) untouched.
Contributor
Author
|
Updated Interview Track target speedups to Infra's measured T4 values (median of 9 runs, Modal CI env; see infra #448): 134 4.7x, 135 2.0x, 136 3.8x, 137 5.6x, 138 1.3x, 139 6.0x. Targets are about 0.8x each demo's measured speedup; 139 capped at 6x (measured 18.27x) for interview fairness. Still a draft; not merging. |
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.
Track:
tracks/kernel-interview.json(+tracks/README.mdschema)enabled: false,status: "draft",entitlement: "interview_pass", and pricing is a placeholder only (nothing in Stripe).Each module has an objective and a one-line interview tip.
6 new "why is this slow" challenges (medium,
access_tier="premium"as a placeholder)The starter
starter.cuis a deliberately slow but correct kernel. This is an intentional exception to the "starter must not solve" rule. The other 5 language starters are empty, per convention.New proposed
Challengeattributes (ignored by the current validator and deploy script):track,problem_type="slow_kernel",bottleneck,target_speedup,baseline_language="cuda",hints(3 progressive).Verification
black/isort/flake8/clang-formatare clean, andvalidate_challenges.pyreports 0 errors.reference_implmatches a float64 ground truth within atol/rtol, AND a numpy emulation of each slow starter's thread mapping (and of the reduction tree) matches float64. So the baselines are correct.Needed from infra / frontend
starter.cuon the same GPU for the perf test (median of N runs, or a cached baseline per GPU). Pass = correct ANDbaseline_ms/user_ms ≥ target_speedup. The format can't express this today.update_challenges.pypayload withtrack,problemType,bottleneck,targetSpeedup,baselineLanguage,hints, and alisted/hidden flag that the public list respects. This must land before merging this PR.frontend-expectations.md:GET /api/v1/tracks/kernel-interview→{enabled, track:{…this JSON + solved/best_speedup}, progress, entitlement}. The profile endpoint'sbottleneck.codeuses the same enum andtargetSpeedup.Full contract:
/workspace/interview-track/curriculum-contract.md(mirrored intracks/README.md).