Last checked
Best course to learn CUDA and Triton for LLM inference
By Sandip Maity, Applied AI Engineer
The short answer
For a sequenced course that writes the kernels LLM inference actually runs, on a free Colab T4, we would pick our own GPU Kernels for Inference: 21 lessons from the CUDA model and a tiled matmul to Triton, fused RMSNorm and SwiGLU, a paged decode-attention kernel and Nsight profiling. For free depth from practitioners, GPU MODE's lecture series covers CUDA, Triton, FlashAttention, CUTLASS and more. For Triton itself, start with the official tutorials. For a hard university assignment, Stanford CS336 has you write FlashAttention2 in Triton.
Disclosure: Inference Academy wrote this page, and options marked “Ours” are our own, so this is not an independent review. There are no affiliate links. Every fact about another provider was read on that provider’s own page on 25 November 2026, and each row links its source. Prices are what a visitor in the United States saw. Our own numbers are counted from the site’s lessons when the page is built.
Side by side
Checked 25 November 2026. Prices and syllabi change, so confirm on each source before you pay.
- GPU Kernels for InferenceInference Academy (ours)Ours
- Price
- Free lessons and tools; Pro is $25 a year or $75 once for life (₹1,999 or ₹5,999 in India). One payment that never renews by itself, a 7-day refund, and Pro unlocks every course.
- What it covers
- 21 lessons (2 free): the CUDA model, coalescing, shared-memory tiling and a register-blocked matmul, occupancy, warp-shuffle softmax and RMSNorm, tensor cores with WMMA, streams and CUDA graphs, then Triton: an autotuned matmul, fused RMSNorm and SwiGLU in PyTorch, and a paged, split-KV decode-attention kernel. Ends with Nsight profiling and a capstone.
- Format
- Self-paced interactive text lessons with diagrams, quizzes and a lab section in the kernel lessons. No videos.
- Hands-on
- Kernel labs run on a free Google Colab T4, so you need no GPU of your own.
- Last updated
- Lessons verified November 2026
- GPU MODE lecture seriesGPU MODE community
- Price
- Free.
- What it covers
- CUDA from first steps to performance checklists, profiling, Triton (practitioner's guide, internals, low-bit kernels), FlashAttention and FlashAttention 3, CUTLASS and CuTe, NCCL, quantisation, FlashInfer, SGLang performance and speculative decoding in vLLM.
- Format
- Recorded community lectures on YouTube, with slides and code on GitHub. Not a sequenced course.
- Hands-on
- Code for many lectures in the repository; you choose the order and the exercises.
- Last updated
- Lectures numbered up to 114 on 25 November 2026
- Triton tutorialsthe Triton project
- Price
- Free.
- What it covers
- Vector addition, fused softmax, matrix multiplication, low-memory dropout, layer normalisation, fused attention, group GEMM, persistent matmul and block-scaled matmul.
- Format
- Official documentation tutorials with runnable Python.
- Hands-on
- Each tutorial is a script you run on your own GPU.
- Last updated
- Follows Triton's main branch
- CS336 Language Modeling from ScratchStanford (Hashimoto and Liang)
- Price
- Free to follow: lecture recordings are on YouTube and the assignments are public. You pay for your own GPU time.
- What it covers
- Building a language model end to end: tokenizer, transformer, training, GPUs and TPUs, kernels and Triton, parallelism, scaling laws, inference, data and alignment.
- Format
- University lectures, Spring 2026, with five large assignments and little scaffolding.
- Hands-on
- Assignment 2 has you profile the model and write FlashAttention2 in Triton; the page lists cloud GPU options for self-study.
- Last updated
- Spring 2026 term
- Source
- stanford-cs336.github.io
- Inference EngineeringFanout
- Price
- A subscription to Fanout's whole catalogue: $39 a month, $85 a quarter, $227 a year, or $256 once for lifetime, in US prices (other countries see local prices). On 25 November 2026 a Black Friday code took 40% off a first annual or lifetime payment. Introductory lessons are free.
- What it covers
- 32 modules and 226 lessons, 26 of them free, by Fanout's own count: the KV cache, continuous batching, PagedAttention, chunked prefill, prefix and radix caching, quantisation (AWQ, GPTQ, KV cache), vLLM against SGLang, TensorRT-LLM, llama.cpp, speculative decoding (EAGLE, Medusa), tensor, pipeline, context and expert parallelism, disaggregated prefill, multi-LoRA, Triton, FlashAttention, CUDA graphs and Nsight.
- Format
- Self-paced: explanations, videos and exercises, with free and Pro lessons.
- Hands-on
- Lab lessons on a remote GPU machine, such as building a reproducible GPU inference server.
- Last updated
- No date shown on the course page
- 11-868 Large Language Model SystemsCarnegie Mellon University
- Price
- A CMU class for enrolled students. The syllabus and lecture slides are public.
- What it covers
- Spring 2026: GPU programming in CUDA, accelerating transformers on GPUs, quantisation (GPTQ), FlashAttention (a lecture by Tri Dao), serving with SGLang, PagedAttention and vLLM (a lecture by Woosuk Kwon), disaggregated prefill and decode, and KV cache work.
- Format
- University lectures with homework and a project, taught by Lei Li.
- Hands-on
- Homework for enrolled students; anyone can read the slides and papers.
- Last updated
- Spring 2026 term
Our verdict on each option
Inference Academy: GPU Kernels for InferenceOurs
Choose it for one path from your first kernel to a decode-attention kernel, aimed at what vLLM and SGLang run, with no GPU to buy.
Watch out: It is text, not video, and a T4 cannot run newer features such as FP8 tensor cores.
GPU MODE community: GPU MODE lecture series
Choose it for free lectures from the people who write these kernels, including FlashAttention 3, CUTLASS and FlashInfer.
Watch out: A library, not a course: you pick the order, and the level varies.
the Triton project: Triton tutorials
Start Triton here: fused softmax, matmul and fused attention are the patterns every later kernel reuses.
Watch out: It shows how, rarely why a kernel is fast.
Stanford (Hashimoto and Liang): CS336 Language Modeling from Scratch
Choose it for a rigorous assignment that profiles a model and writes FlashAttention2 in Triton.
Watch out: Kernels are one part of a full language-modelling course, and you pay for GPU time.
Fanout: Inference Engineering
Choose it if you want kernels inside a broad inference track: Triton, tiled attention, FlashAttention, torch.compile, CUDA graphs and Nsight.
Watch out: Subscription pricing for the whole catalogue.
Carnegie Mellon University: 11-868 Large Language Model Systems
Read its GPU programming and FlashAttention slides for the systems view.
Watch out: Homework is for enrolled students only.
How we compared
- Inference focus. Kernels inference engines run (matmul, softmax, norms, attention, decode) rather than general GPU programming.
- CUDA and Triton coverage. Both matter: engines ship CUDA kernels, and most new kernels start in Triton.
- GPU access. Whether you need to buy or rent a GPU to do the work.
- Structure and price. A sequenced course, or a library you navigate yourself, and what it costs.
Each outside fact was read on the provider’s own page on 25 November 2026 and is linked in the Source column. Anything we could not confirm there, such as an unpublished price, is said to be missing rather than guessed. Ratings and testimonials are left out. If a provider sees a mistake, tell us and we will correct it.
Questions
What is the best course to learn CUDA and Triton for LLM inference?
For a sequenced course aimed at inference kernels on a free Colab T4, Inference Academy's GPU Kernels for Inference (21 lessons, 2 free). For free practitioner lectures, GPU MODE. For Triton itself, the official tutorials. For a university-level assignment, Stanford CS336's FlashAttention2 in Triton. Inference Academy wrote this page and one option is ours, so weigh our view with that in mind.
Should I learn CUDA or Triton first for inference?
Learn the CUDA model first (threads, blocks, warps, shared memory), because it explains why every kernel is fast or slow. Then write most new kernels in Triton, which is quicker to write and tune. Our CUDA vs Triton article goes through the trade-off.
Can I learn GPU kernels without a GPU?
Yes. Google Colab's free tier gives you an NVIDIA T4, which is enough for CUDA and Triton kernels up to decode attention. Inference Academy's kernel labs are written for it.
Are there free CUDA and Triton courses?
Yes. GPU MODE's lectures, the Triton tutorials, Stanford CS336's recordings and assignments, and CMU 11-868's slides are all free to follow. The first two lessons of Inference Academy's GPU Kernels course are free too.
Who wrote this comparison?
Inference Academy wrote it, and one option is ours. Every outside fact was read on its source page on 25 November 2026.
More comparisons
- Best LLM inference engineering course in 2026, comparedEight courses and resources side by side, from two-hour video courses to a live cohort and a university class.
- Best vLLM course: where to learn vLLM in 2026Seven ways to learn vLLM, from a 98-minute video course to the official docs, with what each covers.
- Free LLM inference engineering resources, comparedNine free resources, what each one teaches, and an order to use them in.
- Best course to build an LLM from scratch, comparedKarpathy, Raschka, Stanford CS336 and our own course, by price, format and how far each goes.
- Inference Academy vs Fanout for learning inference engineeringPrice, size, format and labs side by side, with the cases where Fanout is the better choice.
- Inference Academy vs systemdesign.academy for inference engineeringTwo self-paced text courses: first-principles breadth against labs on a rented RTX 4090.