面向ML ASICs的代理操作生成
Agentic Operator Generation for ML ASICs
AI总结:
TritorX通过代理AI系统生成适用于新兴加速器平台的PyTorch ATen内核,强调覆盖范围和正确性,成功生成481个内核并通过测试。
摘要:
我们提出了TritorX,一种代理AI系统,旨在大规模生成功能正确的Triton PyTorch ATen内核,以适应新兴的加速器平台。TritorX集成了开源大语言模型与定制的检查器、即时编译和基于PyTorch OpInfo的测试框架。该流程兼容真实Meta训练和推理加速器(MTIA)硅片以及硬件模拟环境,适用于下一代设备。与以往侧重性能的内核生成方法不同,TritorX侧重于覆盖范围。我们的系统强调在完整操作集上的一致性和通用性,包括多样化的数据类型、形状和参数模式。在我们的实验中,TritorX成功生成了481个独特的ATen内核和包装器,这些内核通过了所有对应的PyTorch OpInfo测试(总计超过20,000个)。TritorX为新加速器平台的完整PyTorch ATen后端的过夜生成铺平了道路。
英文摘要:
We present TritorX, an agentic AI system designed to generate functionally correct Triton PyTorch ATen kernels at scale for emerging accelerator platforms. TritorX integrates open-source large language models with a custom linter, JIT compilation, and a PyTorch OpInfo-based test harness. This pipeline is compatible with both real Meta Training and Inference Accelerator (MTIA) silicon and in hardware simulation environments for next-generation devices. In contrast to previous kernel-generation approaches that prioritize performance for a limited set of high-usage kernels, TritorX prioritizes coverage. Our system emphasizes correctness and generality across the entire operator set, including diverse data types, shapes, and argument patterns. In our experiments, TritorX successfully generated kernels and wrappers for 481 unique ATen operators that pass all corresponding PyTorch OpInfo tests (over 20,000 in total). TritorX paves the way for overnight generation of complete PyTorch ATen backends for new accelerator platforms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。