Xilinx/mlir-aie
A close-to-metal Python API for programming AMD Ryzen™ AI NPUs (AI Engines), built on an open-source MLIR-based compiler toolchain.
What it solves
It provides a low-level, "close-to-metal" programming interface for AMD Ryzen™ AI NPUs. While mainstream software platforms handle high-level inference, this project gives developers direct control over the NPU's internal hardware, including tile placement, data movement, and vectorized compute operations, without hiding details behind a framework.
How it works
It uses an MLIR-based compiler toolchain (including the Peano compiler) to translate Python code into hardware configurations. Developers use a Python API to define compute kernels and data movement, which are then JIT-compiled into instruction streams and binaries (xclbin) that run directly on the NPU's spatial array of tiles.
Who it’s for
It is designed for researchers and performance engineers who need to push the limits of NPU hardware for tasks like machine learning or digital signal processing. It is intended to complement, rather than replace, standard inference tooling.
Highlights
- Direct control over NPU hardware resources like tile placement and memory.
- Python-based JIT compilation workflow for rapid development and testing.
- Built on an open-source, MLIR-based compiler toolchain.
- Includes support for agentic programming, allowing AI coding agents to learn and optimize designs.
- Complements existing AMD Ryzen™ AI software platforms.
Related
- Project
NVIDIA/cuda-tileCUDA Tile IR is an MLIR‑based compiler infrastructure from NVIDIA that introduces a dedicated dialect for tile‑oriented CUDA kernels. It provides C++ and Python APIs, a binary bytecode format, and tools to translate MLIR to bytecode or cubin, enabling high‑performance kernels that target NVIDIA Tensor‑Core units. The project builds on LLVM/MLIR, aligns with CUDA Toolkit 13.1, and includes a conformance test suite. It is a genuine AI‑related compiler project, not a tutorial or list.
- Project
iree-org/ireeIREE is an MLIR-based compiler and runtime that lowers machine learning models to a unified IR for efficient deployment across data centers, mobile, and edge devices.
- Project
buddy-compiler/buddy-mlirBUDDY MLIR is an MLIR-based compiler framework that bridges DSLs to domain-specific architectures, and it includes tools to build and run large AI models like DeepSeek R1, Whisper, and Qwen3-VL on CPU/GPU with optimizations such as layer partitioning and NUMA support.
- Project
cornell-zhang/alloA Python-embedded, MLIR-based language and compiler for the modular design and programming of high-performance machine learning accelerators.
- Project
itwanger/PaiAgentPaiAgent is an open‑source, enterprise‑grade platform that lets users visually compose AI workflows with drag‑and‑drop nodes. It supports multiple large‑model providers via Spring AI, offers two execution engines (a classic DAG engine and a LangGraph4j state‑graph engine), includes a declarative “Skills” system for LLM‑driven function calls, and provides real‑time SSE debugging. The stack is React + TypeScript on the front‑end and Spring Boot 3 + Java 21 on the back‑end, with MySQL (and optional MinIO) for persistence.