Skip to main content

AMD AIE backend plugin for hls4ml

Project description

aie4ml

License PyPI PyPI - Downloads arXiv

aie4ml is an end-to-end compiler that generates optimized AIE firmware automatically, which can be then built and simulated directly using AMD Vitis. It targets the AMD AI Engine (AIE) from model-level frontends and lowers supported operators into AIE graphs and kernels as a standalone AIE project.

  • Current hardware targets: AIE-ML and AIE-MLv2 devices.
  • Current frontend paths: ONNX for explicit operator graphs, and an optional hls4ml frontend path.
  • Current operator support: Dense/Linear, ReLU, Matrix Multiplication, Elementwise Add, quantized LayerNorm, Permute, graph branch/fanout, and quantized Softmax.

Prerequisites

  • AMD Vitis 2025.2 and a valid AIE tools license.
  • Python 3.10+.
  • Optional: hls4ml if using the hls4ml frontend integration.

Frontend Compatibility

The ONNX path is the recommended route for operator-level compiler development and for models that already express quantized tensors and Q/DQ boundaries explicitly. The hls4ml path is intended for MLP-style pipelines at the moment.

Installation

pip install aie4ml

Install hls4ml only if you need the hls4ml frontend/backend integration:

pip install hls4ml

Documentation & Tutorials

Documentation and usage: https://github.com/dimdano/aie4ml

Tutorial 1: tutorials/tutorial_1.ipynb Tutorial 2: tutorials/tutorial_2.ipynb

General hls4ml concepts: https://fastmachinelearning.org/hls4ml

Maintainer

aie4ml is developed and maintained by Dimitrios Danopoulos.

Citation

If aie4ml contributes to your research, please cite the corresponding arXiv preprint:

@misc{danopoulos2025aie4mlendtoendframeworkcompiling,
      title={AIE4ML: An End-to-End Framework for Compiling Neural Networks for the Next Generation of AMD AI Engines},
      author={Dimitrios Danopoulos and Enrico Lupi and Chang Sun and Sebastian Dittmeier and Michael Kagan and Vladimir Loncar and Maurizio Pierini},
      year={2025},
      eprint={2512.15946},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2512.15946},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aie4ml-0.1.5.tar.gz (482.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aie4ml-0.1.5-py3-none-any.whl (156.9 kB view details)

Uploaded Python 3

File details

Details for the file aie4ml-0.1.5.tar.gz.

File metadata

  • Download URL: aie4ml-0.1.5.tar.gz
  • Upload date:
  • Size: 482.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for aie4ml-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cc60a86a66f1cd3fc85efcab83d0114bc24d15786b69f291faa9b95afa2f8c74
MD5 a904ed83cf1958199b9e5b716d1f155f
BLAKE2b-256 f37b224cfdadf20eb473b33903c02f0200378cf2def46cceaea1ff768e6fc34e

See more details on using hashes here.

File details

Details for the file aie4ml-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: aie4ml-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 156.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for aie4ml-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1594e5f140c402f61242255f339da43a3ad1f737d55fbd94958267ed0bcd5a3f
MD5 887b757d46214482e3ee4748769e21a6
BLAKE2b-256 8119e9955723433b80fce44e77ef7c479da409b713f7ba11cb5ee655fa957970

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page