← 开源
fastmachinelearning

hls4ml

Machine learning on FPGAs using HLS

InfrastructureModel optimizationPython
在 GitHub 打开
增长势头
+124 小时新增 Star+0.0%
2.19k
Star
610
Fork
+8
本周
86
贡献者
创建于 2017-10-25 · 更新于 2026-10-16 · 今日第 5151 名
主要开发者

fastmachinelearning/hls4ml 排名第 5,151,有 2,188 个星标。

同类别比较

fastmachinelearning/hls4ml 排名第 5,151,此处有 8 个同类条目;NannyML/nannyml 排名第 5,163。

同类别比较
名称排名指标
Mintplex-Labs/vector-admin5,122
语言:
TypeScript
星标数:
2,244
分叉数:
366
简介:
The universal tool suite for vector database management. Manage Pinecone, Chroma, Qdrant, Weaviate and more vector databases with ease.
AmoyLab/Unla5,125
语言:
TypeScript
星标数:
2,241
分叉数:
190
简介:
🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. Features Docker deployment and management UI, requiring no infrastructure modifications.
tensorchord/envd5,126
语言:
Go
星标数:
2,239
分叉数:
172
简介:
🏕️ Reproducible development environment for humans and agents
mozilla-ai/any-llm5,133
语言:
Python
星标数:
2,221
分叉数:
237
简介:
Communicate with an LLM provider using a single interface
NannyML/nannyml5,163
语言:
Python
星标数:
2,160
分叉数:
208
简介:
nannyml: post-deployment data science in python
run-llama/llama_deploy5,186
语言:
Python
星标数:
2,066
分叉数:
227
简介:
Deploy your agentic worfklows to production
ROCm/FastFlowLM5,234
语言:
C++
星标数:
1,960
分叉数:
164
简介:
Run LLMs on AMD Ryzen™ AI NPUs in minutes; purpose-built and deeply optimized for the AMD NPUs.
NVIDIA/dcgm-exporter5,256
语言:
Go
星标数:
1,905
分叉数:
350
简介:
NVIDIA GPU metrics exporter for Prometheus leveraging DCGM
关键参数与规格
关键参数与规格
参数值
语言Python
类别Infrastructure
子类别Model optimization
星标数2,188
分叉数610
贡献者86
创建日期2017-10-25
更新日期2026-10-16
1 天星标数1
7 天星标数8
排名5,151
上次排名3,852
排名变化-1,299
7 天星标排名4,437
上次 7 天星标排名4,423
7 天星标排名变化-14
总星标排名5,911
上次总星标排名5,904
总星标排名变化-7
README 摘录

A package for machine learning inference in FPGAs. We create firmware implementations of machine learning algorithms using high-level synthesis (HLS). We translate traditional open-source machine learning package models into HLS that can be configured for your use-case! hls4ml is designed for ultra-low-latency inference on FPGAs. While it has strong roots in high-energy physics applications (e. , L1 trigger systems at the CERN Large Hadron Collider), it has also been adopted across diverse scientific and industrial

domains. Example use cases include control systems for quantum computing, feedback loops in nuclear fusion, low-power environmental monitoring on satellites, and biomedical signal processing (e. If you have any questions, comments, or ideas regarding hls4ml or just want to show us how you use hls4ml, don't hesitate to reach out to us through the discussions tab. Documentation & Tutorial For more information visit the webpage: For introductory material on FPGAs, HLS and ML inferences using hls4ml, check out the video

. Detailed tutorials on how to use 's various functionalities can be found here. Installation To install the extra dependencies for profiling: Getting Started Creating an HLS project Building a project We will build the project using Xilinx Vivado HLS, which can be downloaded and installed from here. Alongside Vivado HLS, hls4ml also supports Vitis HLS, Intel HLS, Catapult HLS and Altera HLS IP Gen. The target backend can be changed using the argument when building the model. FAQ The list

of frequently asked questions and common HLS synthesis issues can be found here. Citation If you use this software in a publication, please cite the software the first publication: and the latest overview paper: Additionally, if you use specific features developed in later papers, please cite those as well. For example, CNNs: Distributed arithmetic: binary/ternary networks: Spiking Neural Networks (SNNs): Acknowledgments If you benefited from participating in our community, we ask that you please acknowledge the Fast Machine Learning

collaboration and particular individuals who helped you in any publications. Please use the following text for this acknowledgment: We acknowledge the Fast Machine Learning collective as an open community of multi-domain experts and collaborators. This community and \ , in particular, were important for the development of this project. Funding We gratefully acknowledge previous and current support from the U. National Science Foundation (NSF) Harnessing the Data Revolution (HDR) Institute for Accelerating AI Algorithms for Data Driven Discovery (A3D3) under Cooperative

Agreement No. Department of Energy (DOE) Office of Science, Office of Advanced Scientific Computing Research under the Real‐time Data Reduction Codesign at the Extreme Edge for Science (XDR) Project ( DE-FOA-0002501 ), DOE Office of Science, Office of High Energy Physics Early Career Research Program ( DE-SC0021187 , DE-0000247070), the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation program (Grant No. 772369 and 966696 ), and the Eric & Wendy Schmidt Fund for Strategic Innovation through

the CERN Next Generation Triggers project under grant agreement number SIF-2023-004.

常见问题

记录了多少星标和分叉?

fastmachinelearning/hls4ml 有 2,188 个星标和 610 个分叉。

仓库排名是多少?

fastmachinelearning/hls4ml 排名第 5,151。

记录的语言和类别是什么?

fastmachinelearning/hls4ml 有 2,188 个星标,语言为 Python,类别为 Infrastructure。

哪个仓库排名最接近?

fastmachinelearning/hls4ml 与 NannyML/nannyml 比较,后者排名第 5,163,有 2,160 个星标。

README
![hls4ml](https://raw.githubusercontent.com/fastmachinelearning/hls4ml/refs/heads/main/docs/img/hls4ml_logo.svg) 

A package for machine learning inference in FPGAs. We create firmware implementations of machine learning algorithms using high-level synthesis (HLS). We translate traditional open-source machine learning package models into HLS that can be configured for your use-case!

hls4ml is designed for ultra-low-latency inference on FPGAs. While it has strong roots in high-energy physics applications (e.g., L1 trigger systems at the CERN Large Hadron Collider), it has also been adopted across diverse scientific and industrial domains. Example use cases include control systems for quantum computing, feedback loops in nuclear fusion, low-power environmental monitoring on satellites, and biomedical signal processing (e.g., arrhythmia classification).

If you have any questions, comments, or ideas regarding hls4ml or just want to show us how you use hls4ml, don't hesitate to reach out to us through the discussions tab.

Documentation & Tutorial

For more information visit the webpage: https://fastmachinelearning.org/hls4ml/.

For introductory material on FPGAs, HLS and ML inferences using hls4ml, check out the video.

Detailed tutorials on how to use hls4ml's various functionalities can be found here.

Installation

pip install hls4ml

To install the extra dependencies for profiling:

pip install hls4ml[profiling]

Getting Started

Creating an HLS project

import hls4ml

# Fetch a keras model from our example repository
# This will download our example model to your working directory and return an example configuration file
config = hls4ml.utils.fetch_example_model('KERAS_3layer.json')

# You can print the configuration to see some default parameters
print(config)

# Convert it to an HLS project
hls_model = hls4ml.converters.keras_v2_to_hls(config)

# Print full list of example models if you want to explore more
hls4ml.utils.fetch_example_list()

Building a project

We will build the project using Xilinx Vivado HLS, which can be downloaded and installed from here. Alongside Vivado HLS, hls4ml also supports Vitis HLS, Intel HLS, Catapult HLS and Altera HLS IP Gen. The target backend can be changed using the backend argument when building the model.

# Use Vivado HLS to synthesize the model
# This might take several minutes
hls_model.build()

# Print out the report if you want
hls4ml.report.read_vivado_report('my-hls-test')

FAQ

The list of frequently asked questions and common HLS synthesis issues can be found here.

Citation

If you use this software in a publication, please cite the software

@software{fastml_hls4ml,
  author       = {{FastML Team}},
  title        = {fastmachinelearning/hls4ml},
  year         = 2026,
  publisher    = {Zenodo},
  version      = {v1.3.0},
  doi          = {10.5281/zenodo.1201549},
  url          = {https://github.com/fastmachinelearning/hls4ml}
}

the first publication:

@article{Duarte:2018ite,
    author = "Duarte, Javier and others",
    title = "{Fast inference of deep neural networks in FPGAs for particle physics}",
    eprint = "1804.06913",
    archivePrefix = "arXiv",
    primaryClass = "physics.ins-det",
    reportNumber = "FERMILAB-PUB-18-089-E",
    doi = "10.1088/1748-0221/13/07/P07027",
    journal = "JINST",
    volume = "13",
    number = "07",
    pages = "P07027",
    year = "2018"
}

and the latest overview paper:

@article{Schulte:2025mai,
    author = "Schulte, Jan-Frederik and others",
    title = "{hls4ml: A Flexible, Open-Source Platform for Deep Learning Acceleration on Reconfigurable Hardware}",
    eprint = "2512.01463",
    archivePrefix = "arXiv",
    primaryClass = "cs.AR",
    reportNumber = "FERMILAB-PUB-25-0890-CSAID-ETD-PPD",
    year = "2026",
    doi = "10.1145/3801979",
    journal = "ACM Trans. Reconfigurable Technol. Syst.",
    volume = "19",
    pages = "19",
}


Additionally, if you use specific features developed in later papers, please cite those as well. For example, CNNs:

@article{Aarrestad:2021zos,
    author = "Aarrestad, Thea and others",
    title = "{Fast convolutional neural networks on FPGAs with hls4ml}",
    eprint = "2101.05108",
    archivePrefix = "arXiv",
    primaryClass = "cs.LG",
    reportNumber = "FERMILAB-PUB-21-130-SCD",
    doi = "10.1088/2632-2153/ac0ea1",
    journal = "Mach. Learn. Sci. Tech.",
    volume = "2",
    number = "4",
    pages = "045015",
    year = "2021"
}
@article{Ghielmetti:2022ndm,
    author = "Ghielmetti, Nicol\`{o} and others",
    title = "{Real-time semantic segmentation on FPGAs for autonomous vehicles with hls4ml}",
    eprint = "2205.07690",
    archivePrefix = "arXiv",
    primaryClass = "cs.CV",
    reportNumber = "FERMILAB-PUB-22-435-PPD",
    doi = "10.1088/2632-2153/ac9cb5",
    journal ="Mach. Learn. Sci. Tech.",
    year = "2022"
}

Distributed arithmetic:

@misc{Sun:2025,
      title={da4ml: Distributed Arithmetic for Real-time Neural Networks on FPGAs},
      author={Chang Sun and others},
      year={2025},
      eprint={2507.04535},
      archivePrefix={arXiv},
      primaryClass={cs.AR},
      url={https://arxiv.org/abs/2507.04535},
}

binary/ternary networks:

@article{Loncar:2020hqp,
    author = "Ngadiuba, Jennifer and others",
    title = "{Compressing deep neural networks on FPGAs to binary and ternary precision with HLS4ML}",
    eprint = "2003.06308",
    archivePrefix = "arXiv",
    primaryClass = "cs.LG",
    reportNumber = "FERMILAB-PUB-20-167-PPD-SCD",
    doi = "10.1088/2632-2153/aba042",
    journal = "Mach. Learn. Sci. Tech.",
    volume = "2",
    pages = "015001",
    year = "2021"
}

Spiking Neural Networks (SNNs):

@misc{dillon2026spikingneuralnetworkinference,
      title={Spiking Neural Network inference on FPGAs with hls4ml},
      author={Barry M. Dillon},
      year={2026},
      eprint={2606.10008},
      archivePrefix={arXiv},
      primaryClass={cs.NE},
      url={https://arxiv.org/abs/2606.10008},
}

Acknowledgments

If you benefited from participating in our community, we ask that you please acknowledge the Fast Machine Learning collaboration and particular individuals who helped you in any publications. Please use the following text for this acknowledgment:

We acknowledge the Fast Machine Learning collective as an open community of multi-domain experts and collaborators. This community and , in particular, were important for the development of this project.

Funding

We gratefully acknowledge previous and current support from the U.S. National Science Foundation (NSF) Harnessing the Data Revolution (HDR) Institute for Accelerating AI Algorithms for Data Driven Discovery (A3D3) under Cooperative Agreement No. PHY-2117997, U.S. Department of Energy (DOE) Office of Science, Office of Advanced Scientific Computing Research under the Real‐time Data Reduction Codesign at the Extreme Edge for Science (XDR) Project (DE-FOA-0002501), DOE Office of Science, Office of High Energy Physics Early Career Research Program (DE-SC0021187, DE-0000247070), the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation program (Grant No. 772369 and 966696), and the Eric & Wendy Schmidt Fund for Strategic Innovation through the CERN Next Generation Triggers project under grant agreement number SIF-2023-004.

排名相邻
同类项目