• Stars
    star
    286
  • Rank 144,690 (Top 3 %)
  • Language
    Jupyter Notebook
  • Created over 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tutorial notebooks for hls4ml

hls4ml-tutorial: Tutorial notebooks for hls4ml

Jupyter Book Badge deploy-book Code style: black pre-commit Binder

There are several ways to run the tutorial notebooks:

Online

Binder

Conda

The Python environment used for the tutorials is specified in the environment.yml file. It can be setup like:

conda env create -f environment.yml
conda activate hls4ml-tutorial

Docker without Vivado

Pull the prebuilt image from the GitHub Container Registry:

docker pull ghcr.io/fastmachinelearning/hls4ml-tutorial/hls4ml-0.7.1:latest

Follow these steps to build a Docker image that can be used locally, or on a JupyterHub instance. You can build the image (without Vivado):

docker build https://github.com/fastmachinelearning/hls4ml-tutorial -f docker/Dockerfile

Alternatively, you can clone the repository and build locally:

git clone https://github.com/fastmachinelearning/hls4ml-tutorial
cd hls4ml-tutorial
docker build -f docker/Dockerfile -t ghcr.io/fastmachinelearning/hls4ml-tutorial/hls4ml-0.7.1:latest .

Then to start the container:

docker run -p 8888:8888 ghcr.io/fastmachinelearning/hls4ml-tutorial/hls4ml-0.7.1:latest

When the container starts, the Jupyter notebook server is started, and the link to open it in your browser is printed. You can clone the repository inside the container and run the notebooks.

Docker with Vivado

Pull the prebuilt image from the GitHub Container Registry:

docker pull ghcr.io/fastmachinelearning/hls4ml-tutorial/hls4ml-0.7.1-vivado-2019.2:latest

To build the image with Vivado, run (Warning: takes a long time and requires a lot of disk space):

docker build -f docker/Dockerfile.vivado -t ghcr.io/fastmachinelearning/hls4ml-tutorial/hls4ml-0.7.1-vivado-2019.2:latest .

Then to start the container:

docker run -p 8888:8888 ghcr.io/fastmachinelearning/hls4ml-tutorial/hls4ml-0.7.1-vivado-2019.2:latest

Companion material

We have prepared a set of slides with some introduction and more details on each of the exercises. Please find them here.

Notebooks

More Repositories

1

hls4ml

Machine learning on FPGAs using HLS
C++
1,223
star
2

qonnx

QONNX: Arbitrary-Precision Quantized Neural Networks in ONNX
Python
121
star
3

example-models

Python
16
star
4

models

Models and examples built with hls4ml
C++
12
star
5

qonnx_model_zoo

Model zoo for the Quantized ONNX (QONNX) model format
9
star
6

keras-training

jet classification and regression training in keras
Python
9
star
7

hls4ml-live-demo

Live demo of hls4ml on embedded platforms such as the Pynq-Z2
VHDL
8
star
8

SonicCMS

Services for Optimized Network Inference on Coprocessors (for CMS)
C++
8
star
9

pytorch-training

jet classification and regression training in pytorch
Python
6
star
10

AFM-training

Training models for Atomic Force Microscopy
Jupyter Notebook
6
star
11

fastml-science

Implementations of the fastml-science bechmark models, including a standard Keras (float) and QKeras (quantized) implementations.
Python
5
star
12

FaaST

C++
5
star
13

ml4quantum-release

Repository for the paper "Neural network accelerator for quantum control" https://arxiv.org/abs/2208.02645
Ada
4
star
14

sonic-workflows

Python
3
star
15

fastmachinelearning.github.io

HTML
3
star
16

bnn_pynq

Python
3
star
17

l1-jet-id

Code for Level-1 jet tagging
C++
3
star
18

gw-iaas

Deep learning inference-as-a-service tools and pipelines for gravitational wave physics
Python
2
star
19

hawq-jet-tagging

Jupyter Notebook
2
star
20

hls4ml-catapult-framework

A framework for developing the hls4ml Catapult backend. The C++ part of the backend is included as well
C
2
star
21

hls4ml-frame-grabbers

Jupyter Notebook
2
star
22

analysis-tools

Jupyter Notebook
1
star
23

tmva-training

For TMVA BDTs, mostly physicists
C
1
star