AR
arXiv CS.AI
7/29/2026

Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels
Short summary
Kernel Forge is an open-source agentic harness that automatically generates and optimizes CUDA kernels for any unmodified PyTorch model using Monte Carlo Tree Search. It supports vision, diffusion, and LLM workloads, and includes a GUI for monitoring and debugging. With 50 optimization iterations per kernel, it achieves 1.5x–2.8x speedups over PyTorch eager mode across multiple models.
- •Open-source agentic harness for automatic CUDA kernel generation and optimization
- •Uses MCTS to explore multiple optimization paths rather than linear refinement
- •Achieves 1.52x–2.83x speedups over PyTorch eager mode on ResNet-50, Stable Diffusion 3.5, Gemma 4, and Qwen 3.5
Generated with AI, which can make mistakes.
Is this a good recommendation for you?