Google Accelerator Agents for TPU Development (GitHub Repo)
Summary
Google Accelerator Agents is a GitHub repository of AI-powered tools to accelerate machine learning development on TPUs, featuring agents for code migration and kernel optimization using Gemini.
View Cached Full Text
Cached at: 09/08/26, 11:54 PM
AI-Hypercomputer/accelerator-agents
Source: https://github.com/AI-Hypercomputer/accelerator-agents
Accelerator Agents
Accelerator Agents is a collection of AI-powered tools designed to accelerate machine learning development on Google Cloud TPUs. This repository hosts agents that assist with code migration, kernel optimization, and performance tuning, enabling developers to leverage the full power of TPUs with greater velocity.
Disclaimer: This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.
Overview
As machine learning models grow in complexity, optimizing them for specific hardware accelerators like TPUs becomes increasingly challenging. This project aims to provide a suite of “Agents”—specialized AI tools powered by Gemini—to automate and assist with these complex tasks.
The project includes two primary agents:
1. MaxCode
The MaxCode agent facilitates the conversion of existing PyTorch models and codebases into JAX. It is designed to help users migrate their workloads to run efficiently on TPUs, leveraging high-performance frameworks like MaxText.
Note: MaxCode is under active development, and we are continuously working to improve migration quality and expand model coverage.
Features:
- Automated Conversion: Converts functional code blocks and model layers from PyTorch to JAX.
- MaxText Integration: Generates JAX code compatible with the MaxText framework for immediate training and inference on TPUs.
- Human-in-the-Loop: Designed to draft initial implementations that developers can review and refine.
2. MaxKernel
The MaxKernel agent is a specialized tool for high-performance kernel development on TPUs. It assists engineers in writing, optimizing, and debugging custom kernels, specifically focusing on Pallas (JAX’s kernel language).
Features:
- Kernel Writing: Drafts Pallas kernels from scratch or based on JAX reference implementations.
- CUDA to Pallas Conversion: Assists in porting custom CUDA/GPU kernels to run optimally on TPUs.
- Optimization & Profiling: Provides profiling insights and optimization suggestions to improve kernel performance (MFU).
- Test Harness Generation: Automatically generates boilerplate code for correctness testing and compilation checks.
Getting Started
Prerequisites
- A Google Cloud VM. A CPU-only VM is sufficient for MaxCode, while a TPU VM is recommended for MaxKernel.
- Python 3.11+
- Access to Gemini API (for agent reasoning capabilities).
Installation
Clone the repository: bash git clone https://github.com/AI-Hypercomputer/accelerator-agents.git cd accelerator-agents
(Note: Specific installation instructions for each agent can be found in their respective subdirectories.)
Contributing
We welcome contributions! Please see CONTRIBUTING.md for details on how to submit pull requests, report issues, and contribute to the project.
License
This project is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Similar Articles
Google just unveiled its newest AI chips
Google unveiled eighth-gen TPUs (8t/8i) and a new Gemini Enterprise Agent Platform at Cloud Next, while revealing 75% of new Google code is now AI-generated.
We're launching two specialized TPUs for the agentic era.
Google announces the launch of two new specialized TPU chips, TPU 8i and TPU 8t, designed to optimize AI agent reasoning and large model training respectively.
Our eighth generation TPUs: two chips for the agentic era
Google unveils 8th-gen TPUs: TPU 8t for training and TPU 8i for inference, purpose-built for power-efficient, large-scale AI agent workloads and arriving later this year.
JAXBench: Benchmarking Autonomous TPU Kernel Optimization
JAXBench is a new benchmark suite of 50 JAX workloads for evaluating AI-generated kernel optimization on Google Cloud TPUs, with hand-tuned baselines and an agent evaluation harness. The paper finds that conditioning on curated TPU documentation significantly improves correctness and speedup, with Autocomp beam-search achieving up to 1.6x geomean speedup over XLA on hand-tuned kernels.
@googledevs: Build, train, serve. The new TPU Developer Hub is live. Access documentation and framework recipes in one place to buil…
Google launched the TPU Developer Hub, a centralized resource with documentation and framework recipes for building, training, and serving AI on Google Cloud TPUs, supporting JAX, PyTorch, and vLLM.