Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
Atrex Kernel Agent (AKA)

GPU kernel optimization with coding agents and measured evidence

Overview

Atrex Kernel Agent (AKA) optimizes GPU kernels through an iterative loop of research, implementation, profiling, and evaluation. Coding agents propose candidates; the Supervisor verifies correctness and performance before promoting an improvement.

Its lightweight workflow keeps the optimization loop focused, while a plugin architecture lets users configure and replace agents, workspaces, evaluation, execution, and knowledge providers.

AKA supports Claude, Qoder, Codex, and Pi, with CUDA, Triton, CuTeDSL, FlyDSL, and TileLang tooling for supported NVIDIA, AMD, and T-Head PPU environments. Native Atrex-Bench evaluation runs through Agate; GPU Wiki provides optimization knowledge.

How AKA works

AKA architecture: baseline, coding agent, private Tool Runtime, Agate GPU execution, acceptance, and incumbent; the Supervisor verifies and promotes each candidate.

  1. Establish a baseline. Freeze the operator's evaluator inputs and measure the initial implementation.
  2. Explore and measure. The agent researches, edits a managed source draft, and uses private tools to evaluate and profile candidates.
  3. Submit evidence. A report binds the candidate to its exact source snapshot and measurement records.
  4. Verify and promote. The Supervisor checks correctness and applicable policy, then compares candidate and incumbent in the same GPU allocation using ABBA measurements. Only a verified improvement is promoted.
  5. Continue or finish. Retain evidence and reusable knowledge across Episodes, recover interrupted work, and export the retained implementation.

News

  • [2026-10] v0.4.0: A lightweight workflow and plugin architecture. Better kernel performance with 20–30% lower average token consumption, plus configurable, replaceable providers for agents, workspaces, evaluation, execution, and knowledge. Release notes.

  • [2026-09] From leaderboards to real-world workloads: accelerating Qwen3.8-Max's core inference operators (WeChat): AKA delivers lower average latency than expert implementations for all three key operator families across 60 real-world shapes, with up to 1.55× speedup over production/official baselines.

    Operator performance comparison for FA4 prefill, FA4 decode, and GDN prefill: AKA, expert implementations, and production/official baselines.

  • [2026-09] We released Atrex Kernel Agent v0.3.0 with resumable fast, full, and goal episodes; native Atrex-Bench and multi-framework production campaigns; Claude, Qoder, Codex, and Pi backends; isolated SSH GPU execution with recovery; PPU profiling; plugin-backed GPU Wiki retrieval; and production-mode supplemental numerical probes. See the v0.3.0 release notes.

  • [2026-08] We slimmed down Atrex Kernel Agent by consolidating on a single orchestrated workflow and removing legacy paths and redundant context for a smaller context footprint and lower token usage.

  • [2026-07] We helped Qwen3.8 rank No. 1 on the SOL-ExecBench FlashInfer operator optimization leaderboard.

  • [2026-07] We released Atrex Kernel Agent v0.2.0 with an orchestrated clean-session loop, native SOL-ExecBench operator workflow, Triton-to-Gluon conversion support, and a fuller NVIDIA profiling toolchain. [Release]

  • [2026-07] We released the Atrex paper: Are LLM-Generated GPU Kernels Production-Ready? A Trace-Driven Benchmark and Optimization Agent.

  • [2026-06] We released Atrex Kernel Agent v0.1.0 as the initial open-source version, with the GPU Wiki knowledge base, profile-driven optimization workflow, profiling tools, and reference templates. [Release]

Quick Start

Recommended: launch through a prompt. Open this repository in your coding agent and give it the operator path, target GPU, framework, and optimization budget:

Read docs/quickstart.md and set up the matching AKA packages from this checkout.
Optimize /path/to/atrex-bench/operator on a <gpu_arch> Agate worker using CUDA,
Claude as the coding agent, production mode, and up to 20 iterations.
Use ~/aka-opt as the workspace. Check the required environment, launch the
campaign, and report the verified result and output location.

Replace the example values with your workload and configured GPU environment. See the setup guide for prerequisites and problem preparation.

Documentation

Acknowledgements

AKA builds on and learns from many open-source projects, including:

Citation

If AKA is useful in your work, please cite the Atrex paper:

@misc{atrex2026,
  title         = {Are LLM-Generated GPU Kernels Production-Ready? A Trace-Driven Benchmark and Optimization Agent},
  author        = {Lingyun Yang and Yuxiao Wang and Shenghao Liang and Linfeng Yang and Daocheng Ying and Chunbo You and Rui Zhang and Luping Wang and Yinghao Yu and Guodong Yang and Liping Zhang},
  year          = {2026},
  eprint        = {2607.14541},
  archivePrefix = {arXiv},
  primaryClass  = {cs.AI},
  url           = {https://arxiv.org/abs/2607.14541}
}

License

Licensed under the Apache License 2.0.

关于 About

An end-to-end agent project for GPU kernel implementation, analysis, profiling, and iterative optimization. It helps an agent turn PyTorch logic or an existing kernel into a high-performance GPU kernel through a structured, profile-driven workflow.
agentagentic-workflowamd-gpuautoresearchgpugpu-kernelgpu-programmingkernel-generationnvidia-gpuself-improving-agentskills

语言 Languages

Python96.7%
Shell1.9%
HTML0.7%
Cuda0.5%
C0.1%
C++0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
107
Total Commits
峰值: 11次/周
Less
More

核心贡献者 Contributors