Theory first, then code, then both at once
Earlier foundational lectures paired theory with coding: learn an idea, write a kernel that depends on it, then measure the result. The CPU parallelism lecture on October 13 stands on its own. The attention lecture on November 10 pairs with the FlashAttention coding lecture on November 16. The frontier lectures combine ideas and code in each session. Use the days between lectures for Tile Arena practice and capstone work. Every lecture is recorded, and all code lives in the course repository.

Dr. Raj Dandekar
MIT PhD, founder of Vizuara. Designed and taught Vizuara's 5D Parallelism and Inference Engineering workshops.

Shubham Panchal
Creator of SmolChat. Works across C, C++ and Rust, deploying ML models on-device.
When
7:00 to 9:00 AM IST. The week of November 23: Monday, Wednesday and Friday (November 23, 25 and 27). Then Monday, November 30, Tuesday, December 1 and Monday, December 14. Capstone demo day is Monday, December 28. Earlier lecture dates remain in the schedule below.
GPUs
No GPU of your own is needed. Sessions run on cloud GPUs, and the setup is covered in the first week. Hopper and Blackwell sessions use H100 and B200 machines.
Guest lecture
A session with the Crusoe team, in the middle or towards the end of the cohort. The date is announced inside the cohort.
The schedule
Readings are optional before the session and useful after it. Folder names under a session refer to the course repository. Dates for later sessions may move by a day or two; changes will appear here first.
| Date | Session | Readings and code | Deadlines |
|---|---|---|---|
| Week 1Oct 12 to Oct 16Part I · Why GPUs, and how they run your code | |||
| Mon Oct 12 | Lecture 1 · Theory How fast can this go? Qwen3-8B on one H100 writes about 149 tokens per second, far below what the chip's arithmetic allows. We find out why with the roofline model: arithmetic intensity, memory-bound and compute-bound work. In the second hour, the class becomes the batch and we watch throughput change as more users arrive. |
code · Lecture 1 practical kit |
|
| Tue Oct 13 | Lecture 2 · Coding Parallelism on the CPU Instruction-level parallelism: pipelining, branches and out-of-order execution. Threads in the Linux kernel and the 1:1 and M:N threading models of Java, Go and Rust. SIMD vector instructions. Why graphics, and then matrix multiplication, pushed computing towards GPUs. This lecture stands on its own; it is the CPU baseline that every later lecture compares against. |
code · 00_cpu_parallelism |
|
| Thu Oct 15 | Lecture 3 · Theory How does a GPU run your code? We follow one image through an H100. Grids, blocks, threads and warps; streaming multiprocessors and the warp scheduler; registers, shared memory and occupancy; and why 32 threads move as one. |
||
| Fri Oct 16 | Lecture 4 · Coding Your first CUDA kernels Vector addition and 2D max-pooling in CUDA C++. Compute capability and what nvidia-smi reports. How nvcc turns a .cu file into PTX and then SASS, and how to read both for the vecadd kernel. |
code · 02_kernels_ptx_sass |
|
| Week 2Oct 19 to Oct 23Part I · Memory, and Part II · The GEMM worklog begins | |||
| Mon Oct 19 | Lecture 5 · Theory The memory hierarchy Registers, shared memory, L1 and L2, and HBM. Cache lines and 32-byte sectors. Coalesced and uncoalesced loads. Shared-memory banks and bank conflicts. Why most kernels spend their time waiting for data rather than doing arithmetic. |
||
| Tue Oct 20 | Lecture 6 · Coding The transpose ladder, and reading Nsight Compute A naive transpose, then a shared-memory tile that makes the writes coalesced, then padding that removes the bank conflicts. Along the way we learn Nsight Compute: sectors per request, L2 hit rate, bank conflicts, and a speed-of-light comparison of a memory-bound ReLU against a compute-bound matmul. |
code · 03_matrix_transpose · 01_benchmark_pytorch_kernels |
Out: Assignment 1 |
| Thu Oct 22 | Lecture 7 · Theory GEMM worklog I Why matrix multiplication is the operation AI runs more than any other. The naive kernel and the small fraction of the GPU it uses. Warp states and stall reasons. Shared-memory tiling and giving each thread more than one output. |
||
| Fri Oct 23 | Lecture 8 · Coding GEMM by hand I Four kernels, from the naive version to shared-memory tiles where each thread computes a 4 by 4 block with float4 loads. Each one is profiled in Nsight Compute and timed against cuBLAS. |
code · 04_gemm_A |
|
| Week 3Oct 26 to Oct 30Part II · GEMM and tensor cores | |||
| Mon Oct 26 | Lecture 9 · Theory GEMM worklog II 2D block tiling, register reuse, vectorised memory access, warp tiling and autotuning: the steps that take a hand-written FP32 kernel close to cuBLAS. |
||
| Tue Oct 27 | Lecture 10 · Coding GEMM by hand II We build the 2D-tiled and warp-tiled kernels step by step and keep a worklog: one change, one measurement, one profile, then the next change. |
||
| Thu Oct 29 | Lecture 11 · Theory Tensor cores What a tensor core computes in a single instruction, and why it changes the GEMM ladder. FP16, BF16 and FP8. WMMA and mma.sync fragments, ldmatrix and shared-memory swizzling. |
||
| Fri Oct 30 | Lecture 12 · Coding A WMMA tensor-core GEMM We rewrite our best GEMM to use tensor cores through the WMMA API, check it against cuBLAS, and look at what the profiler says has become the new bottleneck. |
||
| Week 4Nov 2 to Nov 6Part III · Profiling | |||
| Mon Nov 2 | Lecture 13 · Theory Profiling and debugging like a pro Reading an Nsight Compute report from top to bottom. Stall reasons and the source view with SASS next to your code. compute-sanitizer for races and out-of-bounds accesses. A repeatable method for finding out why a kernel is slow. |
||
| Tue Nov 3 to Fri Nov 6 | No classes The schedule moves back by one week. Lecture 14 is on Monday, November 9, and each later lecture follows on the next class day. |
||
| Week 5Nov 9 to Nov 13Part III · Debugging and attention, and Part IV begins | |||
| Mon Nov 9 | Lecture 14 · Coding Debug three sabotaged kernels Three kernels that are wrong or slow on purpose. You find each problem with the profiler and the sanitizer before you are allowed to read the source. |
Due: Assignment 1 | |
| Tue Nov 10 | Lecture 15 · Theory Attention: the kernel that ate the world Attention as two matrix multiplications and a softmax. Why the N by N score matrix stops fitting. Safe softmax and online softmax. Tiling and IO-awareness, the idea behind FlashAttention. The lecture ends with the capstone kickoff. |
Capstone kickoff | |
| Thu Nov 12 | No class The FlashAttention coding lecture moves to Monday, November 16. |
||
| Fri Nov 13 | Lecture 16 Triton, CUTLASS and CuTe-DSL The abstraction ladder above raw CUDA. Triton's blocks, CUTLASS templates, CuTe layouts, and CuTe-DSL for writing CUTLASS-class kernels in Python. We write one fused kernel in each and compare the code and the speed. |
||
| Week 6Nov 16 to Nov 19Part IV · FlashAttention | |||
| Mon Nov 16 | Lecture 17 · Coding Build FlashAttention live Vanilla attention in PyTorch until it runs out of memory, then FlashAttention written in Triton and benchmarked from N = 2,048 to N = 65,536. |
code · flash_attention |
|
| Thu Nov 19 | Lecture 18 FlashAttention from scratch: FA2 and FA3 We rebuild FlashAttention properly, then see what changed in FlashAttention 2 (better work partitioning across warps and blocks) and FlashAttention 3 (Hopper's asynchronous tensor cores and FP8). |
code · flash_attention |
|
| Week 7Nov 23 to Nov 27Part IV · Blackwell, FlashAttention 4 and Hopper · three lectures this week | |||
| Mon Nov 23 | Lecture 19 Blackwell and NVFP4: training a language model in 4 bits In this class we train a language model end to end on a B200 in NVFP4. What changed from Hopper to Blackwell: tensor memory beside the tensor cores, one thread that starts a multiply, and two SMs that share one. Why 4-bit math is a big deal, how a floating-point number works, the E2M1 ladder and NVFP4's two levels of block scaling, and the two Blackwell instructions that quantize and multiply. |
||
| Wed Nov 25 | Lecture 20 Flash Attention 4 From FlashAttention 3 on Hopper to FlashAttention 4 on Blackwell. Why, on the newest chips, the exponentials in softmax rather than the matrix multiplications become the limit, and the tricks FA4 uses to work around it. |
code · flash_attention/papers |
|
| Fri Nov 27 | Lecture 21 Beating cuBLAS on an H100 What Hopper added and why it matters for GEMM: the Tensor Memory Accelerator (TMA), wgmma, thread-block clusters, asynchronous pipelines and warp specialisation. We use them to build a matrix multiply that beats NVIDIA's own library. |
||
| Week 8Nov 30 to Dec 1Part IV · Inference and DeepSeek | |||
| Mon Nov 30 | Lecture 22 Inference-serving kernels What an inference-serving kernel is, and why serving one model is two workloads: prefill reads the whole prompt in one pass, and decode writes the answer one token at a time. How each is written as a kernel, with FlashInfer's two kernels set against FlashAttention-3's one. The KV cache, and what it changes inside the decode kernel. |
||
| Tue Dec 1 | Lecture 23 DeepSeek: FlashMLA and DeepGEMM Multi-head latent attention and why it needs its own decode kernel. FP8 GEMMs with fine-grained scaling for mixture-of-experts models. What a small, focused kernel library can do against large general ones. |
||
| Week 9Dec 2 to Dec 13Revision, capstone and Assignment 2 · No regular lectures | |||
| Sat Dec 5 | Capstone Capstone proposal due Use this lecture-free stretch to revise, work on Assignment 2 and start your capstone. The proposal is one page: the problem, the baseline, the target metric and the GPU you need. |
Capstone proposal due | |
| Week 10Dec 14Part V · AI-written kernels | |||
| Mon Dec 14 | Lecture 24 Kernels written by AI: the agent and profiler loop KernelBench and its fast_p metric. An LLM proposes a kernel, a harness checks correctness and times it, and the profiler output goes back into the next prompt. How to tell a generated kernel that is actually faster from one that only looks fast, and where the kernel engineer still decides. |
||
| Week 11Dec 15 to Dec 27Capstone build · No regular lectures | |||
| Week 12Dec 28 to Dec 31Part VI · Capstone demo day and final submission | |||
| Mon Dec 28 | Lecture 25 · Capstone Capstone demo day Every team presents its kernel, its baseline, its measured speed-up and its worklog. Crusoe joins the review. |
Demo day | |
| Thu Dec 31 | Capstone Capstone code and worklog due Final code, correctness tests, benchmark harness and the worklog, polished after demo day. |
Final submission | |
Assignments
Each assignment follows the lectures it depends on. Assignment 1 is out now. Its deadline moved with the schedule and is now Monday, November 9, at 11:59 PM IST. You submit it on the assignment page of your Vizuara course.
Rooflines, arithmetic intensity and the memory hierarchy
On paper, place everything from a vector add to all of Qwen3-8B on the H100 roofline, count the 32-byte sectors a warp's loads touch, and follow RoPE from HBM to the registers and back. Then run the kernels we provide on an H100 rented from Modal, and use an experiment of your own to explain the largest gap between what you predicted and what you measured. The handout has 11 problems worth 100 points, plus a 10-point bonus.
You hand in: A PDF report and an 8 to 12 minute video walkthrough.
Handout and code: the assignment1 folder of the course repository.
The capstone project
The capstone is a real kernel problem solved from start to finish: a baseline you can trust, a kernel that beats it, and a worklog that explains every step. Crusoe shares project ideas at the start of the cohort, so the problems match what an AI-infrastructure company actually works on. The ideas below are examples of the scale we have in mind.
- Mon Oct 12Project ideas published, including problems from Crusoe.
- Tue Nov 10Capstone kickoff at the end of the attention lecture. Work solo or in pairs.
- Dec 2–13No lectures: revision, Assignment 2 and the capstone build.
- Sat Dec 5Proposal due: one page with the problem, the baseline, the target metric and the GPU you need.
- Dec 15–27Capstone build, with no regular lectures.
- Mon Dec 28Demo day, Lecture 25.
- Thu Dec 31Final code and worklog due.
A decode attention kernel for a paged KV cache
Beat the vLLM kernel on one model's shapes, at batch sizes that matter in serving.
A fused RMSNorm, rotary and quantise kernel
Replace three launches in a real transformer block with one, and measure the end-to-end effect.
FP8 or NVFP4 GEMMs for one model's layer shapes
Tune for the exact matrix shapes of an open model such as Qwen3-8B on H100 or B200.
A grouped GEMM for mixture-of-experts routing
Handle uneven expert loads without padding every expert to the largest one.
You against the machine
Optimise the same kernel by hand and with an agent loop, and write up what each found and missed.
Speed up a served model
Profile a vLLM deployment on Modal, find the slowest kernel, replace it, and show the change in tokens per second.
- Correct. It passes a test against a trusted reference, including awkward sizes.
- Faster, and measured honestly. Warm-up, synchronisation and fixed clocks, against a fair baseline.
- Explained. A worklog where every change comes with a measurement and a profile.
- Defended. At demo day you can answer why each step worked, which is what an on-site interview will ask.
