微信内可能无法直接打开本站。请点右上角 ··· → 在浏览器打开,或复制链接。
MaxKernel: Agentic Kernel Generation for TPUs
RSS 官方收录 · 可信分层展示
关键摘要
MaxKernel开源多智能体系统,为TPU自动生成高性能定制内核
- 支持人机协同、全自动及图搜索三种TPU内核开发范式
- 基于50个JaxBench任务及真实模型工作负载验证
- 生成内核性能媲美专家手工调优
AI 摘要 · 来源可核验
正文提要
arXiv:2609.04523v1 Announce Type: new Abstract: Designing and authoring high-performance custom kernels for accelerators is a complex task that requires deep hardware-level expertise. Large Language Models (LLM) can be leveraged together with real-time compiler feedback to build agentic systems for kernel generation. In this work, we present MaxKernel, a multi-agent system that implements three distinct paradigms for TPU kernel development: (1) a Human-in-the-Loop (HITL) agent for collaborative, step-by-step design; (2) an Autonomous (Auto) agent that executes a fully automated, metric/trace-driven optimization loop; and (3) a Graph-Based Autonomous Search that scales the Auto agent for global exploration of the design space. All three paradigms leverage a shared pool of specialized sub-agents to handle planning, implementation, self-debugging, testing, and hardware profiling. We evaluate MaxKernel on JaxBench, a comprehensive suite of 50 diverse kernel tasks for TPUs, alongside complex, real-world workloads from state-of-the-art open-source models. We demonstrate that MaxKernel consistently generates highly optimized implementations, matching expert hand-tuned baselines and delivering significant performance across the benchmark. Our agent is open-sourced and available https://github.com/AI-Hypercomputer/accelerator-agents/tree/main/MaxKernel.