CUDA for LLMs by Elliot Arledge (.ePUB)

File Size: 1 MB

CUDA for LLMs: Building fast transformer kernels by Elliot Arledge
Requirements: .ePUB reader, 1 MB
Overview: The difference between a model that infers in milliseconds instead of seconds, or one that trains in days instead of weeks, is in how effectively you use your hardware. To squeeze every last teraflop out of an NVIDIA GPU, you need to write your own CUDA kernels, and this book will get you there! This book is a friendly hands-on tour of the modern GPU programming stack, written for the latest NVIDIA hardware, and grounded in fundamentals that will outlast any single generation of chips. In 408 fully-illustrated, code-rich pages, authorElliot Arledgeguides you from your first kernel all the way to Flash Attention, tensor cores, and multi-GPU distributed training.
GPU programming is complicated, so this book builds your skills one layer at a time using a six-level kernel optimization stack. You’ll start by writing a vector addition kernel, learning how grids, blocks, and threads map onto real hardware. From there, you’ll implement the naive versions of the kernels every deep learning model depends on: GEMM, softmax, 1D and 2D convolution, max pooling, and matrix transpose. Then you’ll build and train a full neural network in six progressively faster implementations and dig into cuBLAS, with backpropagation derived and coded from scratch.
Genre: Non-Fiction > Tech & Devices

Free Download links:

https://upfilesgo.com/XAxmzgSX