Git Product home page Git Product logo

brevitas_finn_fpga's Introduction

FPGA Accelerated AI

Neural network inference on FPGA with Brevitas and FINN

11 test_video

Prerequisites

  • Ultra96V2 board (other FPGAs supported with slight modifications)
  • PC (with GPU recommended for training),
  • Xilinx tools (Vivado, HLS, Vitis)
  • Environment(s) with Brevitas and FINN

Tested with:

Flow (without PYNQ)

  1. Install Xilins tools and create environment that has Brevitas, Pytorch, ONNX etc.
  2. Gather dataset as outlined in /src/dataset_creation/ README.
  3. Define and train quantized network with Brevitas as outlined in /src/notebooks/ README.
  4. Export to FINN.
  5. Explore folding settings with estimate reports and build accelerator with FINN in docker.
  6. Create pseudo IP for easy Vivado import in any project as outlined in /src/pseudo_ip/ README.
  7. (Optional) Simulate accelerator to verify behavior (example in /src/notebooks/MP4D_AI_FINAL_cnv_w1a2/simulation/).
  8. Construct IP wrapper to interface with accelerator.
  9. Deploy on FPGA.

A stitched FINN IP with two interfacing modules in an MPSoC Vivado diagram could look like: MP4D-AI-diagram

MISC

brevitas_finn_fpga's People

Contributors

nhma20 avatar

Stargazers

lukas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.