Online course · AI

CUDA for AI Engineers: Custom Kernels, Triton, TensorRT & Multi-GPU

Make AI models faster and cheaper on NVIDIA GPUs, and prove it with numbers

Created by TrainSkool Trainer

CUDA for AI Engineers: Custom Kernels, Triton, TensorRT & Multi-GPU course cover

Coming soon Launch price ₹2,999

This course is not open for enrolment yet.

About this course

For AI and ML engineers who already know CUDA C++ basics (our CUDA C++ Programming course, cuda-cpp-gpu-programming, or equivalent) and everyday PyTorch, and want to make models faster and cheaper on NVIDIA GPUs. You follow a fictional AI team in Pune that serves an Indian-language ticket model, from profiling to a costed serving plan. You will read what PyTorch does on the GPU, pick FP16, BF16, FP8 or FP4 by GPU generation, build and register fused C++/CUDA operators, write Triton kernels (softmax, matmul, RMSNorm), understand FlashAttention and CUTLASS/CuTe, optimise inference with torch.compile, quantisation, TensorRT and TensorRT-LLM, plan multi-GPU work with NCCL, DDP and FSDP, and cost it in rupees. Versions are stated as at the time of writing (November 2026). You need access to an NVIDIA GPU: your own, a free notebook GPU or a rented cloud GPU; the course shows each option. Included: 26 text lessons with slides and quick checks, 24 auto-checked CPU exercises in the browser, six chapter projects, chapter quizzes, a rubric-graded capstone, a 20-question final exam and a certificate of completion. Lessons are text and slides; trainer videos are coming later. No job or placement is promised. Not affiliated with or endorsed by NVIDIA. CUDA is a trademark of NVIDIA Corporation. What you will be able to do: - You will be able to explain how PyTorch launches GPU kernels and find launch-bound, memory-bound and synchronisation problems in a profile. - You will be able to choose FP32, TF32, FP16, BF16, FP8 or FP4 for a GPU generation and estimate training and inference memory before renting a GPU. - You will be able to build, package, register, test and benchmark a fused C++/CUDA operator for PyTorch, including torch.compile and autograd support. - You will be able to write and autotune Triton kernels for fused elementwise ops, stable softmax, tiled matmul with epilogues and RMSNorm. - You will be able to explain FlashAttention's tiling and online softmax, check PyTorch's attention backends, and read CuTe layouts. - You will be able to optimise LLM inference with batching, torch.compile, INT8/FP8/4-bit quantisation, TensorRT and TensorRT-LLM, checking accuracy per language. - You will be able to model NCCL collectives, size DDP, FSDP and tensor-parallel deployments, and produce a sourced rupee cost plan with GST. - You will be able to deliver a reproducible latency, throughput and cost report for a model's inference measured on your own GPU.

What you'll learn

  • Explain how PyTorch launches GPU kernels and find launch-bound, memory-bound and synchronisation problems in a profile
  • Choose FP32, TF32, FP16, BF16, FP8 or FP4 for a GPU generation and estimate training and inference memory before renting a GPU
  • Build, package, register, test and benchmark a fused C++/CUDA operator for PyTorch, including torch.compile and autograd support
  • Write and autotune Triton kernels for fused elementwise ops, stable softmax, tiled matmul with epilogues and RMSNorm
  • Explain FlashAttention's tiling and online softmax, check PyTorch's attention backends, and read CuTe layouts
  • Optimise LLM inference with batching, torch.compile, INT8/FP8/4-bit quantisation, TensorRT and TensorRT-LLM, checking accuracy per language
  • Model NCCL collectives, size DDP, FSDP and tensor-parallel deployments, and produce a sourced rupee cost plan with GST
  • Deliver a reproducible latency, throughput and cost report for a model's inference measured on your own GPU

Course content

Chapter 1 · Module 1: How Deep-Learning Frameworks Use the GPU

  • Code lab: From a PyTorch Line to a GPU Kernel: Dispatcher, Streams, Caching Allocator and Launch Overheadrelu(x @ w + b), it looks like one line of maths.17 topics · 45 min
  • Code lab: Your AI-GPU Workbench: Local, Cloud and Notebook GPUs, Version Matching and First ChecksA driver that is too old for the toolkit, a PyTorch wheel built for a different CUDA version than the nvcc on your PATH, a GPU architecture the wheel no longer supports, a Triton release that does…18 topics · 50 min
  • Code lab: Tensor Cores and Number Formats: FP32, TF32, FP16, BF16, FP8 and FP4 by GPU GenerationThe biggest single speed-up most AI workloads ever get comes not from a clever kernel but from using the right number format on the right hardware.17 topics · 45 min
  • Code lab: Mixed Precision and Memory Footprint: autocast, GradScaler and What Fits on Which GPU" is the first question before renting any GPU. The answer is arithmetic, not trial and error.24 topics · 45 min

Chapter 2 · Module 2: PyTorch Custom CUDA Extensions

  • Code lab: When a Custom Op Pays Off: Fusion, Memory Traffic and the RooflineWriting a custom CUDA operator is expensive.19 topics · 40 min
  • Code lab: Your First C++/CUDA Extension with load_inline: a Fused Bias + GELU KernelTensor objects. 3.17 topics · 55 min
  • Code lab: Packaging and Registering Ops: cpp_extension, CUDAExtension, TORCH_CUDA_ARCH_LIST and torch.libraryload_inline is perfect on your laptop and wrong for production. compile, autograd and the rest of PyTorch.17 topics · 55 min
  • Code lab: Testing and Benchmarking Custom Ops Honestly: assert_close, opcheck, CUDA Events and NsightA custom kernel that is fast and wrong is worse than no kernel: it corrupts TicketLM's summaries silently, for every ticket, until someone notices.22 topics · 50 min

Chapter 3 · Module 3: Writing GPU Kernels in Triton

  • Code lab: The Triton Programming Model: Programs, Blocks, Masks and a First Kernelcu file, a C++ wrapper, a dtype dispatch macro, a build system and architecture flags.18 topics · 45 min
  • Code lab: A Fused, Numerically Stable Row Softmax in TritonSoftmax is everywhere in a language model: in every attention head, and at the output to turn TicketLM's 64,000 vocabulary logits into token probabilities.18 topics · 45 min
  • Code lab: Tiled Matrix Multiplication in Triton: tl.dot, Grouped Ordering and AutotuningMatrix multiplication is where tensor cores live and where most of a transformer's FLOPs go.15 topics · 55 min
  • Code lab: Fused Normalisation Kernels and Plugging Triton into PyTorch: triton_op, wrap_triton and DebuggingA kernel that lives in a notebook helps nobody. m.21 topics · 50 min

Chapter 4 · Module 4: Attention Kernels, FlashAttention and CUTLASS/CuTe

  • Code lab: Why Attention Is Memory-Bound: Naive Attention, the S x S Matrix and SDPA BackendsAttention is the operation that made transformers work and the one that made long contexts expensive.15 topics · 50 min
  • Code lab: FlashAttention Ideas: Tiling, Online Softmax and Recomputation, with a Triton Forward KernelFlashAttention changed what is practical with transformers.17 topics · 60 min
  • Code lab: CUTLASS and CuTe: Layouts, Tiles and When to Reach for ThemThe fastest GEMM and attention kernels on Hopper and Blackwell GPUs, including FlashAttention-3 and -4 and many of the kernels inside TensorRT-LLM, are written with CUTLASS and its layout library…22 topics · 45 min

Chapter 5 · Module 5: Inference Optimisation: torch.compile, Quantisation, TensorRT and TensorRT-LLM

  • Code lab: Where Inference Time Goes: Prefill, Decode, the KV Cache and BatchingTraining is about throughput over days; inference is about latency per request and cost per request, every second, for every user.17 topics · 45 min
  • Code lab: torch.compile for Inference: Modes, Graph Breaks, CUDA Graphs and Dynamic Shapescompile is the cheapest optimisation an AI engineer has: one line, no new framework, no separate engine format, and on GPUs it generates fused Triton kernels (Module 3) and can wrap the model in…17 topics · 50 min
  • Code lab: Quantisation for Inference: INT8, FP8, INT4 Weight-Only and NVFP4, and Checking Accuracy1 showed that TicketLM's decode is limited by how many bytes it reads per token.18 topics · 55 min
  • Code lab: TensorRT and TensorRT-LLM: Strongly Typed Engines, trtexec, the LLM API and trtllm-servecompile optimises a PyTorch program.20 topics · 60 min

Chapter 6 · Module 6: Multi-GPU Training and Inference, and GPU Cost Planning in Rupees

  • Code lab: GPU Interconnects and NCCL Collectives: PCIe vs NVLink and the All-Reduce Cost ModelThe moment a workload uses two or more GPUs, the speed of the wires between them becomes part of the performance model.17 topics · 50 min
  • Code lab: Data-Parallel and Sharded Training: DDP, FSDP2 (fully_shard) and the Memory Maths7 GB for model states alone, more than one L4 can comfortably hold with activations.16 topics · 50 min
  • Code lab: Model-Parallel Inference: Tensor and Pipeline Parallelism for Serving2B fits comfortably on one GPU, so serving it on more GPUs simply means running more copies.18 topics · 45 min
  • Code lab: GPU Cost Planning in Rupees: Throughput, Utilisation, GST and Provisioning for PeakEvery optimisation in this course ends as a number on the budget spreadsheet: rupees per month, rupees per 1,000 tickets.22 topics · 45 min

Chapter 7 · Module 7: Capstone - Optimise TicketLM Inference

  • Reading: Capstone Brief: Requirements, Baseline and a Step-by-Step Optimisation PlanThis capstone is where the course becomes a piece of work you can show: a measured, reproducible optimisation of an Indian-language text model's inference, with a latency, throughput and rupee cost…15 topics · 60 min
  • Code lab: Measuring Latency, Throughput and Cost Honestly: the Harness, Percentiles and the ReportThe capstone's conclusions are only as good as its measurements.18 topics · 70 min
  • Assignment: Capstone Deliverables, Demo Script and the 100-Point Grading RubricA performance project is judged by what someone else can verify.13 topics · 50 min

Assessments and certificate

  • Module 1 quiz: How Deep-Learning Frameworks Use the GPU8 questions · 15 min · pass mark 70%
  • Module 2 quiz: PyTorch Custom CUDA Extensions8 questions · 15 min · pass mark 70%
  • Module 3 quiz: Writing GPU Kernels in Triton8 questions · 15 min · pass mark 70%
  • Module 4 quiz: Attention Kernels, FlashAttention and CUTLASS/CuTe8 questions · 15 min · pass mark 70%
  • Module 5 quiz: Inference Optimisation: torch.compile, Quantisation, TensorRT and TensorRT-LLM8 questions · 15 min · pass mark 70%
  • Module 6 quiz: Multi-GPU Training and Inference, and GPU Cost Planning in Rupees8 questions · 15 min · pass mark 70%
  • CUDA for AI Engineers: Custom Kernels, Triton, TensorRT & Multi-GPU — final assessment20 questions · 40 min · pass mark 70%

Related courses

Frequently asked questions

Can I get a refund for CUDA for AI Engineers: Custom Kernels, Triton, TensorRT & Multi-GPU?

Yes. You can request a full refund within 7 days of purchase, provided you have completed no more than 25% of the lessons, not started the final exam and not been issued a certificate. Pre-orders of a course that has not launched yet can be refunded in full any time before launch. Email refunds@trainskool.com with your order reference; approved refunds go back to your original payment method.

How long do I have access to the course?

Lifetime access. A one-time payment of ₹2,999 keeps the course in your TrainSkool learning dashboard, on the web and in the TrainSkool apps, with no subscription to cancel.

Do I get a certificate?

Yes. TrainSkool issues a certificate when you meet the course requirements, including passing its 7 graded assessments. Every certificate has a public verification link that employers can check.

Are there any prerequisites?

No other course is required. The course level is advanced, so check the curriculum to confirm it matches your experience.

How is the course delivered?

Online and self-paced: 7 modules and 26 lessons, about 21h 55m of study, with graded assessments. Learn in your browser or the TrainSkool Android and Windows apps.