Kaiming Cheng: Roughly 85% Less Code, Same Kernel Performance
Автор: AgentGlass, Inc.
Загружено: 2026-10-27
Просмотров: 35
Описание:
Kaiming Cheng explains how KernelAgent uses multiple agents and real hardware profiler feedback to produce GPU kernels that are correct, fast and reviewable. His guiding rule is “Correct before fast”, and one fused MoE norm kernel ended up with roughly 85% less code while keeping the same performance.
The first roughly eight minutes of the presentation were not recorded. This video starts partway through the session, with the process of finding a correct kernel, then follows the agents as they test changes against real hardware, retain unsuccessful attempts for possible later combinations, and use profiler feedback to guide optimization. Results include a sliding window attention training kernel reaching 2.3x performance on Meta’s AI chips and a 1% end-to-end gain on a 30B model.
The production challenge is making those kernels reviewable. A fused MoE norm kernel reached around 90% of the GB200 HBM roofline but initially took roughly 2,000 lines of code. Cheng shows how reviewer feedback about repeated dtype checks, unnecessary metadata and verbose wrappers was built back into the harness to produce shorter implementations. He also covers NVIDIA, AMD, TPU and MTIA support, reward hacking, and questions about verification, model choice and upstreaming kernels into torch.compile.
Chapters
0:00 Getting a correct kernel first
1:30 Hill climbing with profiler feedback
3:15 Inference and training kernel results
6:17 Getting kernels into production
8:24 Shorter code, same performance
10:38 Heterogeneous hardware support
13:28 Lessons learned
16:23 Q&A
21:47 End
Recorded at PyTorch Conference North America 2026, San Jose McEnery Convention Center, October 20, 2026. Organized by the PyTorch Foundation.
@SidraMiconi · @AgentGlassInc
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: