Note
New: ACT v2.4 released with taidl v2.15, act-oracle v2.11 and act-backend v1.16.
More is in the works, including the new generator act-allo, an even faster simulator in act-oracle v3, and act-e2e for end-to-end LLM deployment.
Recent years have seen a proliferation of specialized ML accelerators -- proposed in both academia (e.g., Gemmini, FEATHER) and industry (e.g., Google TPU, Intel AMX) -- that depart significantly from traditional CPU/GPU architectures. However, research on compiler and systems support for these accelerators remains sparse, largely due to the lack of mature open-source compiler infrastructures capable of targeting them from popular ML frameworks like PyTorch, and JAX. Building such support involves considerable manual effort, slowing innovation and creating a gap between hardware and software research communities.
To bridge this gap, we present ACT (Accelerator Compiler Toolkit) Ecosystem, an ecosystem that automatically generates complete compiler backends and essential software tooling from high-level ISA specifications of tensor accelerators.
The ACT Ecosystem consists of:
- TAIDL (Tensor Accelerator ISA Definition Language): A Python-based DSL for specifying tensor accelerator ISAs. TAIDL leverages tensor IRs like XLA-HLO to compactly and precisely model execution semantics of tensor accelerator ISAs.
- TAIDL-TO (Test Oracle) Generator: Automatically generates scalable functional simulators just from TAIDL specifications, enabling correctness testing of the software stack. TAIDL-TOs are orders of magnitude faster than existing simulators.
- ACT-Backend Generator: Automatically generates sound and complete compiler backends just from a TAIDL specification. ACT backends match or outperform state-of-the-art expert-written libraries, while maintaining low compile times (<1 sec).
- XLA Integration: Enables end-to-end compilation from popular ML frameworks like JAX and PyTorch.
ACT needs Python 3.14 or later.
pip install git+https://github.com/act-compiler/act.git@v2.4This installs the act package along with all components (TAIDL, TAIDL-TO, ACT-Backend).
from act.taidl import Accelerator
from act.generators import generate_oracle, generate_backend
acc = Accelerator('MyAccel')
# ... define ISA spec ...
generate_oracle(acc) # Generate functional simulator
generate_backend(acc) # Generate compiler backenddocker/build.sh builds two images per architecture (amd64, arm64) and variant (the CPU, or cuda13 with JAX's CUDA 13 runtime):
devanshdvj/act-env:<env>-<arch>anddevanshdvj/act-env:<env>-cuda13-<arch>: the environment alone (Python, JAX, OR-Tools, Rust, the ANTLR tool, ruff, clang-format and shfmt), in whose CPU variant the sub-projects' CI installs and tests each package. Its tag names the environment's Python and JAX,py3.14-jax0.11.2as set indocker/act-env.env, and changes only when the environment does.devanshdvj/act:<version>-<arch>anddevanshdvj/act:<version>-cuda13-<arch>: the ecosystem, theactpackage with its pinned components, built on the environment image of the same variant, one per ACT release.
docker/build.sh builds the ecosystem image, first pulling or building the environment image if it is not present; docker/build.sh --env builds the environment image alone.
docker/exec.sh and docker/run.sh run the ecosystem image.
When nvidia-smi succeeds and Docker lists the nvidia runtime, the scripts pick the cuda13 images, and docker/exec.sh and docker/run.sh pass all GPUs to the containers they create; otherwise they pick the CPU images.
docker/build.sh --cpu and docker/build.sh --cuda13 build either variant on any host.
docker/exec.sh, docker/run.sh and docker/cleanup.sh take the same two flags, as in docker/exec.sh --cpu "<cmd>", the flag overriding the host's pick, and a CPU image is passed no GPU.
The cuda13 images need an NVIDIA driver of 580 or later and a GPU that CUDA 13 supports.
The cuda13 images set XLA_PYTHON_CLIENT_PREALLOCATE=false, so JAX allocates GPU memory on demand.
| ACT | TAIDL | TAIDL-TO | ACT-Backend | Docker Image |
|---|---|---|---|---|
| v2.4 | v2.15 | v2.11 | v1.16 | devanshdvj/act:v2.4 |
| v2.3 | v2.14 | v2.10 | v1.12 | devanshdvj/act:v2.3 |
| v2.2 | v2.13 | v2.8 | v1.9 | devanshdvj/act:v2.2 |
| v2.1 | v2.13 | v2.7 | v1.7 | devanshdvj/act:v2.1 |
| v1.3 | v2.3 | v2.5 | v1.6 | devanshdvj/act:v1.3 |
| v1.2 | v2.3 | v2.2 | v1.2 | devanshdvj/act:v1.2 |
| v1.1 | v2.3 | v2.2 | v1.1 | devanshdvj/act:v1.1 |
| v1.0 | v2.2 | v2.1 | v1.0 | devanshdvj/act:v1.0 |
ACT v2.4 moves the ecosystem to TAIDL v2.15, TAIDL-TO v2.11 and ACT-Backend v1.16. ACT v2.3 moves the ecosystem to TAIDL v2.14, TAIDL-TO v2.10 and ACT-Backend v1.12. ACT v2.2 moves the ecosystem to TAIDL-TO v2.8 and ACT-Backend v1.9. ACT v2.1 moves the ecosystem to an environment of Ubuntu 24.04, Python 3.14 and JAX 0.11.2, with TAIDL v2.13, TAIDL-TO v2.7 and ACT-Backend v1.7. ACT v1.3 moves the ecosystem to Python 3.14, JAX 0.10.2, TAIDL-TO v2.5 and ACT-Backend v1.6.
./docker/build.sh --rebuild # the ecosystem image, built anew with the pinned components
./docker/exec.sh "python tests/check_versions.py" # every place that names a version agrees, and pip check passes
./tests/pytest.sh # one accelerator through both generators, a kernel compiled and simulated
./tests/pytest.sh --platform GPU # the same, simulated on an NVIDIA GPUThe CI builds the CPU image and runs the two checks in it, on amd64 and arm64.
After the version check, the CI checks the formatting and lint against pyproject.toml and .editorconfig with ./docker/exec.sh "ruff format --check && ruff check && shfmt -d .".
The ACT Ecosystem is composed of independently installable packages:
- act-compiler/act: Top-level repository with Docker, tutorials, and the unified
actPython package. - act-compiler/taidl: TAIDL, the Tensor Accelerator ISA Definition Language.
- act-compiler/act-oracle: TAIDL-TO, the Test Oracle generator.
- act-compiler/act-backend: ACT-Backend, the Compiler Backend generator.
If you are interested in using ACT for your accelerator, please email Devansh Jain or Prof. Charith Mendis.
We would be happy to help you get started!
If you are interested in contributing to the ACT Ecosystem (e.g., adding new language features, adding new tool generators, improving existing generators, etc.), open an issue or a pull request in the relevant repository.
| Contribution Area | Repository Link |
|---|---|
| TAIDL Language Features | act-compiler/taidl |
| New Tool Generators | act-compiler/act (top-level repository) |
| Test Oracle Generator | act-compiler/act-oracle |
| Compiler Backend Generator | act-compiler/act-backend |
| Documentation & Bug Fixes | Corresponding repository |
Unable to decide? Open an issue in act-compiler/act and we can help route it to the appropriate place.
If ACT helps you in your academic research, you are encouraged to cite our papers.
For TAIDL and TAIDL-TO, please cite our MICRO 2025 paper:
@inproceedings{taidl-micro2025,
author = {Jain, Devansh and Frigo, Marco and Arora, Jai and Pardeshi, Akash and Wang, Zhihao and Patel, Krut and Mendis, Charith},
title = {TAIDL: Tensor Accelerator ISA Definition Language with Auto-generation of Scalable Test Oracles},
year = {2025},
isbn = {9798400715730},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3725843.3756075},
doi = {10.1145/3725843.3756075},
booktitle = {Proceedings of the 2025 58th IEEE/ACM International Symposium on Microarchitecture},
pages = {1316--1333},
numpages = {18},
series = {MICRO '25},
month = oct
}
For ACT-Backend, please cite our OOPSLA 2026 paper:
@article{act-oopsla2026,
author = {Jain, Devansh and Pardeshi, Akash and Frigo, Marco and Khulbe, Kaustubh and Patel, Krut and Lochan, Saatvik and Arora, Jai and Mendis, Charith},
title = {Automatically Generating ML Compiler Backends from Tensor Accelerator ISA Descriptions},
year = {2026},
publisher = {Association for Computing Machinery},
volume = {10},
number = {OOPSLA2},
issn = {2475-1421},
url = {https://doi.org/10.1145/3839457},
doi = {10.1145/3839457},
journal = {Proceedings of the ACM on Programming Languages},
pages = {288--319},
month = oct
}
This project was supported in part by ACE, one of the seven centers in JUMP 2.0, a Semiconductor Research Corporation (SRC) program sponsored by DARPA; and by NSF under grant CCF-2338739. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the U.S. Government.