My book "CUDA for LLMs" is now in print!
If you followed along while it was in early access as "CUDA for Deep Learning", this is the finished version, now as a physical book too.
Manning gave me a code for 50% off every format through Dec 4: PBArledge
https://t.co/L3riD6Pg1F
My book "CUDA for LLMs" is now in print!
If you followed along while it was in early access as "CUDA for Deep Learning", this is the finished version, now as a physical book too.
Manning gave me a code for 50% off every format through Dec 4: PBArledge
https://t.co/L3riD6Pg1F
DRAM is like an egg shop that sells eggs in crates of 8. if you need one egg, you buy a crate.
ie. eggs next to each other are in same crate & for scattered eggs, you buy all the crate they sit in.
- the order your threads read memory can matter more than how much they read.
timelapse #3-> 6 hrs
- data eng works for @TELUS_Digital
- more tiled matmul calculations
- started reading on DRAM performance improvement eg. memory coalescing
- got distracted a lot today -> need to fix that
So it turned out I was just overthinking the scary formula for loading the tiles into shared memory in the CUDA tiled matmul. I worked it on a white board.
It was just the flattened index: Row*width+Col with offset for tiles and threads.Sometimes, you just have to work it by hand
Timelapse #2 -> 7hrs
- grokked tiled matmul and the concept deeply
- worked out the kernel by hand
- modified my agent handoff to be more effective
- will test my understanding on working out tiled matmul on rectangular matrice
Timelapse #1 -> 10 hrs
- fellssick and been away. Been hard getting back to this
- had a little chat with @elliotarledge the other day & got my mojo back 😂
- reviewed warps, scheduling in cuda
- memory architectures in cuda
and tiling to improve my matmul
Not enough people are talking about the fact that this bug was fixed by Gemini Flash 3.7
The entire community missed this but an LLM fixed it. Insane!!
🚀 Introducing DeepInfer, our in-house inference framework, now fully open source!
Powering DeepSeek-V4.1-Flash at scale with high throughput and low latency. We’re sharing our production stack to help the community lower compute costs, reduce energy use, and make AI more affordable.
🔗 https://t.co/JGAik1kgk0
1/4