FAME v0: MiniMax M2.7 attention kernel profiling#104
Open
vedularaghu wants to merge 5 commits intomainfrom
Open
FAME v0: MiniMax M2.7 attention kernel profiling#104vedularaghu wants to merge 5 commits intomainfrom
vedularaghu wants to merge 5 commits intomainfrom
Conversation
- profile.yaml: profiling config for MiniMax M2.7 attention block - load_layer.py: builds one transformer layer from HF weights - run_attention.py: runs prefill/decode with NVTX instrumentation Co-authored-by: Cursor <cursoragent@cursor.com>
End-to-end Jupyter notebook that orchestrates: - Docker-based nsys trace collection (Phase A) - ncu kernel profiling for FLOPs/bytes (Phase B) - Roofline report generation (Phase C) Co-authored-by: Cursor <cursoragent@cursor.com>
Per-NVTX-range kernel timing data for prefill (seq_len=4096) and decode (past_kv=4096) in both single-stream and multi-stream modes. Co-authored-by: Cursor <cursoragent@cursor.com>
- ncu CSV/JSON for prefill and decode kernel metrics - B200 sm__ops_path_tensor counters return 0; use analytical FLOPs - Kernel-to-NVTX mapping fixed for async GPU kernel launches Co-authored-by: Cursor <cursoragent@cursor.com>
Final report with analytical FLOPs, measured DRAM bytes, and ncu kernel durations for all attention sub-kernels on B200. Co-authored-by: Cursor <cursoragent@cursor.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
What's included
fame/v0/configs/profile.yamlfame/v0/load_layer.pyfame/v0/run_attention.pyfame/v0/fame_v0.ipynbfame/v0/workspace/*_nsys.jsonfame/v0/workspace/*_ncu.{csv,json}fame/v0/workspace/report.{md,json}Notes
sm__ops_path_tensorFLOPs counters return 0; report uses analytical FLOPs from model dimensions insteadRmProfilingAdminOnly=1on the hostTest plan
Made with Cursor