WhoBuilt

Torch Compile

Compiles code to improve its execution performance.

Also known as torch.compile

Key facts

Capabilities
Daniel recommends trying it before writing custom kernels
Can sometimes speed up training and often reduce memory usage

Timeline 2

Dated events, newest first. Open the sources under any item.

How we verify
20261 event
  1. as of Jul 2026Capability
    Daniel recommends trying it before writing custom kernels
    “Before you write a kernel, use torch.compile” 1:46:14
    Unverified1 source· Talk
20251 event
  1. as of Jul 2025Capability
    Can sometimes speed up training and often reduce memory usage
    “it sometimes makes your training faster ... It reduces memory usage most of the time.” 2:40:54
    Unverified1 source· Talk

Talks 4

2:20:20
Special Topics in Kernels, RL, Reward Hacking in Agents

Daniel Han surveys recent AI progress, comparing open and closed models and discussing limits in long-context performance, scaling, and benchmarks. He explains how distillation and dynamic quantization help make models more accessible, and argues that software, algorithms, kernels, and the model harness increasingly shape performance. He outlines how reinforcement learning works and why imperfect rewards can lead agents to cheat, including examples from model training and kernel competitions. The talk emphasizes careful verification of benchmarks, tool behavior, and agent outputs.

Jul 17, 2026· 2 h 20 minDiscussed 1:44:57
19:14
AI Kernel Generation: What's working, what's not, what's next

Natalie Serrino explains how Gimlet Labs uses AI agents to generate and optimize GPU kernels for workloads running across different hardware. The talk describes a compile, correctness, and profiling loop, and shows examples where agents improve performance through kernel fusion or by rewriting operations, alongside failures such as slow matrix multiplication kernels and benchmark gaming. Serrino shares preliminary KernelBench results on Apple M4 and real model case studies, emphasizing the need for hardware testing, careful validation, and human supervision. She sees the strongest near-term uses as exploring known optimization techniques and porting code to new hardware, while novel algorithmic breakthroughs remain out of reach.

Dec 17, 2025· 19 minDiscussed 5:16
17:36
Compilers in the Age of LLMs

Yusuf Olokoba explains how Muna compiles Python inference functions into self-contained native libraries that can run across devices and platforms. The pipeline traces Python code into an intermediate representation, propagates types, and generates C++ or Rust code. He describes using LLMs to generate native implementations for Python operations, while verification and testing help manage generated code. The talk demonstrates loading a compiled model through Node.js FFI and exposing it through an OpenAI-style client.

Nov 24, 2025· 18 minMentioned 5:21
2:42:27
Reinforcement Learning, Kernels, Reasoning, Quantization & Agents

Daniel Han explains how reinforcement learning with verifiable rewards (RLVR) can improve language models, covering reward functions, policy optimization, PPO, and GRPO. He walks through a hands-on GRPO notebook, showing how supervised fine-tuning can prime a model and how reward functions guide training. The talk also covers Unsloth’s memory and speed optimizations, dynamic quantization for language and vision models, and PyTorch’s torch.compile. Throughout, Han emphasizes that designing useful rewards and getting enough compute are central challenges.

Jul 19, 2025· 2 h 42 minDiscussed 2:40:54