https://github.com/fastmachinelearning/hls4ml-tutorial
Tutorial notebooks for hls4ml
https://github.com/fastmachinelearning/hls4ml-tutorial
fpga hls4ml machine-learning pruning quantization-aware-training tutorial
Last synced: about 1 month ago
JSON representation
Tutorial notebooks for hls4ml
- Host: GitHub
- URL: https://github.com/fastmachinelearning/hls4ml-tutorial
- Owner: fastmachinelearning
- Created: 2020-06-02T12:59:21.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-01T18:15:00.000Z (about 2 months ago)
- Last Synced: 2025-05-16T05:04:07.627Z (about 1 month ago)
- Topics: fpga, hls4ml, machine-learning, pruning, quantization-aware-training, tutorial
- Language: Jupyter Notebook
- Homepage: http://fastmachinelearning.org/hls4ml-tutorial/
- Size: 19.9 MB
- Stars: 340
- Watchers: 20
- Forks: 154
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hls4ml-tutorial: Tutorial notebooks for `hls4ml`
[](https://fastmachinelearning.org/hls4ml-tutorial)

[](https://github.com/psf/black)
[](https://github.com/pre-commit/pre-commit)
[](https://mybinder.org/v2/gh/fastmachinelearning/hls4ml-tutorial)There are several ways to run the tutorial notebooks:
## Online
[](https://mybinder.org/v2/gh/fastmachinelearning/hls4ml-tutorial/HEAD)## Conda
Running the tutorials requires AMD Vitis HLS to be installed, see [here](https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vitis.html).
After the installation, the necessary environmental variables can be set using
```
source /path/to/your/installtion/Xilinx/Vitis_HLS/202X.X/settings64.(c)sh
```The Python environment used for the tutorials is specified in the `environment.yml` file.
It can be setup like:
```bash
conda env create -f environment.yml
conda activate hls4ml-tutorial
source /path/to/your/installtion/Xilinx/Vitis_HLS/202X.X/settings64.(c)sh
```Note that part 7 of the tutorial makes use of the `VivadoAccelator` backend of hls4ml for which no Vitis equivalent is available yet. For this part of the tutorial it is therefore necesary to install and source Vivado HLS version 2019.2 or 2020.1, which can be obtained [here](https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vivado-design-tools/archive.html).
## Companion material
We have prepared a set of slides with some introduction and more details on each of the exercises.
Please find them [here](https://docs.google.com/presentation/d/1c4LvEc6yMByx2HJs8zUP5oxLtY6ACSizQdKvw5cg5Ck/edit?usp=sharing).## Notebooks
```{tableofcontents}
```