Skip to main content

Fork of FINN, a QNN dataflow compiler for AMD/Xilinx FPGAs

Project description

Dataflow Compiler for Fast, Scalable Quantized Neural Network Inference on FPGAs

FINN+ is a fork of FINN, an experimental framework from the Integrated Communications and AI Lab of AMD Research & Advanced Development to explore deep neural network inference on FPGAs. It specifically targets quantized neural networks, with emphasis on generating dataflow-style architectures customized for each network. The resulting FPGA accelerators are highly efficient and can yield high throughput and low latency. The framework is fully open-source in order to give a higher degree of flexibility, and is intended to enable neural network research spanning several layers of the software/hardware abstraction stack.

To get an overview of how FINN+ is used, take a look at the Getting Started section below!

While our Wiki is under construction, we refer to the original FINN homepage for further information.

FINN+ Extensions

FINN+ aims to incorporate all development from the upstream repository (dev branch) while extending FINN in all directions, including the following list of features that are either in progress or already completed:

  • Transformer/Attention support
  • Improved streamlining
  • Improved automatic folding and FIFO-sizing
  • Empirical quality-of-result (QoR) estimation
  • Back-end extensions
    • Instrumentation for accurate performance profiling in simulation and on hardware
    • Improved Alveo build flow
    • Multi-FPGA support
    • Optimized C++ driver
  • Quality-of-live improvements
    • Better logging and error handling
    • Type hinting/checking
    • Alternative YAML-based build configuration
    • Containerless setup

Please refer to our Feature Tracker for the current status of individual features. While some items are already on-track to be merged into the upstream repository, we try to merge them into the FINN+ dev branch as early as possible to increase development pace and drive our research forward.

Getting Started

This is a quick overview of how to get started, for additional information please refer to our Wiki!

Requirements

The primary dependencies currently are:

Installing via pip

After preparing the dependencies mentioned above, simply run the following to start a build flow:

# Make sure to create a fresh virtual environment for FINN+
pip install finn-plus          # Install FINN+ and its Python dependencies via pip
finn deps update               # Ensure FINN+ pulled all further dependencies (this might update packages in your venv!)
finn build build_config.yaml   # Run a FINN+ build defined in a YAML file

Installing from the repository

To install directly from the repository, you'll need Poetry (>= 2.0) for dependency management. After cloning the repo and setting up the system-level dependencies, run the following to start a build flow:

cd finn-plus
poetry install                 # Install Python packages into a Poetry-managed virtual environment
source <your-poetry-venv>      # Use "poetry env info" to find the path to your Poetry venv. For further information visit the Poetry documentation
finn config create             # Create a default configuration in ~/.finn/settings.yaml. Optional but recommended
finn deps update               # Ensure FINN+ pulled all further dependencies (this might update packages in your venv!)
finn build build_config.yaml   # Run a FINN+ build defined in a YAML file

About Us

FINN+ is maintained by researchers from the Computer Engineering Group (CEG) and Paderborn Center for Parallel Computing (PC²) at Paderborn University, Germany as part of the eki research project.

logo logo

logo logo

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

finn_plus-1.1.0.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

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

finn_plus-1.1.0-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file finn_plus-1.1.0.tar.gz.

File metadata

  • Download URL: finn_plus-1.1.0.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.18 Linux/6.11.0-1015-azure

File hashes

Hashes for finn_plus-1.1.0.tar.gz
Algorithm Hash digest
SHA256 887dcb41cc6b09c6cb1d40c155ab17d81827f3b7eb04b28c6752202b74ec5365
MD5 974a5218ba82a0e21916eca952d62346
BLAKE2b-256 ad47666e256254a31c14324978b92064eacf7dfcfd57fed6fe3f91639afc978b

See more details on using hashes here.

File details

Details for the file finn_plus-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: finn_plus-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.18 Linux/6.11.0-1015-azure

File hashes

Hashes for finn_plus-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 325c055f4fa8bcf5a0e328387c8ebd7170312a34fd420e21323b172d02e2c490
MD5 4b232a6e06f02be7ba0f4bb0fff405f1
BLAKE2b-256 d5cd4d42cd48de2a0a5bcf5d47ac9fd8848b95030576be2a237c87815f0f590d

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