gemini-2.5-flash| input-price: 0.3 output-price: 2.5 max-context-length: 128_000 (cost: $0.01) Β· Anfrage: 2025-09-15T07:22:16.637314

Generated by rs-summarizer Version unbekannt

Abstract:

This presentation introduces two related projects from CMU: Mirage, a multi-level superoptimizer for tensor programs, and MPK (Mirage Persistent Kernel), which compiles entire large language models (LLMs) into single "mega kernels."

Mangi Wu first details Mirage, explaining its holistic approach to optimizing GPU kernel execution. It addresses the complexity of GPU hardware and the suboptimal performance of current systems that launch separate kernels for individual operators. Mirage uses a novel multi-level graph representation (mugraph) and an exhaustive search strategy guided by "abstract expressions" to discover and generate highly optimized, custom CUDA kernels. It supports algebraic transformations, schedule transformations, and custom kernel generation, verified by a probabilistic equivalence checker. The approach significantly reduces engineering effort while outperforming existing systems by up to 3.3 times.

Shinhao Chang then presents MPK, a follow-up project aimed at compiling entire LLMs into a single mega kernel to overcome limitations of the "kernel per layer" approach in LLM serving. These limitations include poor inter-layer pipelining, difficulty overlapping computation and communication, and high kernel launch overheads due to dynamic workloads. MPK leverages a "task graph" for fine-grained dependency management and an internal runtime system with GPU-resident schedulers and workers to handle dynamic workloads efficiently within a single kernel. This approach, built upon Mirage's superoptimization, achieves better load balancing, maximizes resource utilization, and delivers LLM serving performance improvements of 1.2 to 6.7 times over existing systems, pushing towards hardware limits. Both projects are open-source, offering adaptable and high-performance solutions for modern deep learning workloads.

Summarizing the Mega Kernel Compiler Project

Summary Rating: No ratings yet
Article Rating: No ratings yet

Source