fastmachinelearning/hls4ml-tutorial
Tutorial notebooks for hls4ml
What it solves
Training a machine learning model is only half the battle; deploying it on custom hardware like an FPGA is difficult and requires converting the model into low-level firmware. These tutorial notebooks show how to use the hls4ml package to turn neural networks into high-level synthesis (HLS) code that can be compiled into FPGA firmware.
How it works
The tutorials are Jupyter notebooks that walk you through the hls4ml workflow step by step. They are designed to run either online via Binder, or locally using a Conda environment defined in environment.yml. To actually synthesize the generated code into hardware you also need AMD Vitis HLS installed, and you set up its environment by sourcing its settings64.sh (or .csh) script. The project also includes companion slides with background material and exercise details.
Who it's for
It is for developers and researchers who already have trained machine learning models and want to deploy them on FPGAs, especially those interested in low-latency or high-throughput inference. A working knowledge of Python and basic neural network concepts is expected, along with access to AMD Vitis HLS for the full synthesis flow.
Highlights
- Interactive Jupyter notebooks that guide you through each step of the hls4ml workflow.
- Can be run online with Binder — no local setup needed.
- Local setup via Conda is provided with an
environment.ymlfile. - Companion slides are available for deeper background and exercise walk-throughs.
Related
- Project
- Project
- Project
- Project