19 comments

[ 3.3 ms ] story [ 51.7 ms ] thread
huge! thank you Tri!
Tri Dao and Tim Dettmers ftw
(comment deleted)
Does anyone have resources for a good way to get started with this sort of modern GPU systems work?
If you’d like a practical goal, you probably want to learn PyTorch and have a little background knowledge of the memory architecture of the GPUs. If you want to go deep, learn CUDA: https://docs.nvidia.com/cuda/cuda-c-programming-guide/index....
I found it helpful to start with CUDA on numba since it lets you write GPU kernels in python. Assuming you're like most ML engineers and you're more familiar with python than C++, this allows you to separately learn CUDA concepts from also learning C++ at the same time. There's also a set of GPU puzzles for beginners [1] using to get started with numba CUDA.

[1] https://github.com/srush/GPU-Puzzles

Thanks for the link! Sasha is actually my former professor - if this is anything like his past pytorch puzzles I'm sure I'll find it enjoyable.
I would be very greatfull to see how one can leverage it not for LLMs but for Stable Diffusion models
Why couldn't it be applied to SD?
SD1 uses a head dimension that is not supported by the old version of Flash Attention but is supported by this version.
Excellent work by the team on this. Excited to see this applied to the diffusers library.