ML engineer/ kernel research engineer | prev @ MIT startup
B200 FA4 in 60 diagrams (2026)
triton compiler passes (2025)
minimal DL library in C and CUDA (2024)
Build B200 attention kernel from scratch in CUDA and a little PTX, starting from a naive baseline and reaching 94.4% of FlashAttention-4.
I spent the last couple of months building visual, beginner-friendly progression around 60 diagrams.
We first develop an intuitive understanding of how the naive baseline works, then add one major optimization at a time, pairing each step with detailed diagrams, concise explanations, and code.
For the capstone project, we plug the final kernel into a video-generation model.
https://t.co/YFT7n2K6LX
Build B200 attention kernel from scratch in CUDA and a little PTX, starting from a naive baseline and reaching 94.4% of FlashAttention-4.
I spent the last couple of months building visual, beginner-friendly progression around 60 diagrams.
We first develop an intuitive understanding of how the naive baseline works, then add one major optimization at a time, pairing each step with detailed diagrams, concise explanations, and code.
For the capstone project, we plug the final kernel into a video-generation model.
https://t.co/YFT7n2K6LX
You can just take your tea gear outside and enjoy it while reading "B200 Attention Kernel from Scratch to Near-SOTA in 60 Diagrams"
Very well written progressing on the attention kernel on Blackwell, skimmed a bit through the ending because of time and Ill def revisit
the framing on the @SemiAnalysis pod that no one at the labs understands kernels anymore is nonsense.
one reasonably good kernel researcher is what, like 1M / year?
and how much does OAI spend on running their kernels? Like $30B/year?
does it make sense to assign somebody to work *deeply* on kernels? hmmm....
@firesidealpha let's do a quick math:
one reasonably good kernel researcher is what, like 1-2M / year?
and how much does OAI spend on compute serving their kernels? Like $50B/year?
does it make sense to assign somebody to work *deeply* on kernels? hmm....
Iβve been learning CUDA for a few months now, mostly through handwritten notes. Finishing another notebook felt like a little milestone, so I wanted to share a few highlights from the journey.
been working on veeery elegant speculative optimization to make FlashAttention4 up to 6% faster in some cases.
Will test more, if results hold will write a post