Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
arXiv AI · 2026/7/29 04:00:00
Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels
AI 中文解读
核心亮点:AI学会了自动编写GPU底层代码,让热门AI模型的运行速度提升近3倍,而且完全开源免费。
通俗解读:过去要优化AI模型的运行效率,得靠顶尖工程师手动调整显卡的“小精灵指令”——CUDA内核,既费时又费钱。Kernel Forge就像一位AI代工,你只要把现成的PyTorch模型丢给它,它就能自动生成并优化这些指令。更聪明的是,它不像其他工具一条路走到黑,而是像下棋一样用“蒙特卡洛树搜索”尝试多种优化方案,选出最佳结果。它还自带图形界面,你随时能看到优化进展,就像看工程师在后台调试一样直观。
实际影响:今后你用AI画画、聊天或做视频处理时,等待时间可能缩短一半以上。比如用Stable Diffusion生成图片,或者用大模型写文章,背后那些重复计算的内核被加速后,你的体验会更流畅。对企业和开发者来说,不再需要养昂贵的GPU优化团队,直接拿这个工具跑一遍就能让AI服务更省钱、更快落地。这项技术等于把专业显卡编程的门槛从“专家专利”降到了“粘贴即用”。
arXiv:2607.24762v1 Announce Type: new
Abstract: Machine learning models are increasingly embedded in everyday software, and most of their runtime is spent in a small set of compute kernels such as matrix multiplication, convolution, and normalization. Optimizing these kernels is one of the most direct ways to reduce latency and cost, but it has traditionally required expert engineers to hand-write low-level GPU code. Agentic systems built on large language models (LLMs) can now generate and optimize kernels with far less human effort, yet existing tools are largely evaluated on randomly generated tensors and isolated kernels, emit standalone CUDA code that developers must manually reintegrate, mostly target only LLM PyTorch models, and offer limited support for inspecting and debugging results. We present Kernel Forge, an open-source, end-to-end agentic harness that accepts any unmodified PyTorch model in place. Kernel Forge supports vision, diffusion, and LLM workloads, uses Monte Carlo Tree Search (MCTS) to explore multiple optimization paths rather than a single linear refinement chain, and ships with a graphical user interface for monitoring progress, inspecting candidate kernels, and debugging failures. We evaluate Kernel Forge on four PyTorch models spanning vision, diffusion, and LLM workloads on an NVIDIA DGX Spark with GB10 GPU. With only 50 optimization iterations per kernel, it optimizes 14 kernels to outperform PyTorch eager mode, reaching $1.52\times$ on adaptive\_avgpool2d in ResNet-50, $1.70\times$ on group\_norm in Stable Diffusion 3.5 Medium, $2.83\times$ on softmax in Gemma 4 E2B, and $1.54\times$ on softmax in Qwen 3.5 35B-A3B.
分享
阅读原文 ↗