RepositoryScalaUSHoa Kỳ
tensil-ai

tensil-ai/tensil

Open source machine learning accelerators

399sao
36fork
18issue
3lượt xem

⚡ Tensil — Biến mô hình AI thành phần cứng FPGA accelerator

Từ ONNX đến FPGA chạy ResNet 300 FPS — chỉ bằng một toolchain.

Tensil là toolchain mã nguồn mở (Scala) để biến mô hình AI/ML thành accelerator phần cứng chạy trên FPGA Xilinx. Dự án cung cấp toàn bộ pipeline: biên dịch mô hình từ ONNX/TensorFlow/PyTorch, chạy emulator bit-accurate, sinh Verilog RTL, tạo thiết kế Vivado, và triển khai lên FPGA qua PYNQ.

✨ Điểm nổi bật

  • Full toolchain từ model đến silicon: compile → emulate → RTL → Vivado design → chạy trên FPGA — không cần chuyển đổi thủ công giữa các bước
  • Hỗ trợ nhiều framework: TensorFlow, TFLite, PyTorch đều chuyển qua ONNX để biên dịch
  • Bit-accurate emulator: kiểm tra kết quả mô hình trước khi tổng hợp phần cứng, giảm rủi ro sai lệch
  • Hiệu năng thực tế: ResNet20 chạy 300 FPS trên ZCU104, YOLO trên Ultra96V2
  • Docker-based setup: pull container tensilai/tensil là có môi trường phát triển đầy đủ
  • Sinh Verilog RTL tự động: tensil rtl tạo RTL cho kiến trúc TCU cụ thể, sẵn sàng đưa vào Vivado
  • PYNQ integration: chạy Jupyter notebook để điều khiển FPGA và deploy model trực tiếp
  • Build bằng Mill: ./mill chạy compiler, RTL, emulator, test suite từ source

💡 Vì sao đáng chú ý

Hầu hết công cụ AI acceleration dừng lại ở việc tối ưu hóa inference trên GPU/CPU. Tensil đi xa hơn một bước — sinh trực tiếp phần cứng RTL để chạy model trên FPGA, nghĩa là accelerator được thiết kế riêng cho kiến trúc tensor của mô hình, không phải dùng chung silicon. Pipeline này thu hẹp khoảng cách từ nghiên cứu đến triển khai phần cứng, đặc biệt hữu ích khi cần latency thấp hoặc chạy AI trên thiết bị biên (edge).

Dự án phù hợp cho ai muốn thử nghiệm FPGA-based AI acceleration mà không cần viết RTL thủ công. Với Docker setup, PYNQ driver, và các tutorial có sẵn cho YOLO, ResNet, speech-controlled robot, Tensil giảm rào cản tiếp cận phần cứng accelerator xuống mức một vài lệnh CLI.


#FPGA #MachineLearning #OpenSource #Scala #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryVerilog
furrtek/SiliconRE

Traces, schematics, and general infos about custom chips reverse-engineered from silicon

255
Dec 1, 2026
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

109.4k
Nov 26, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryJupyter Notebook
microsoft/AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!

71.5k
Nov 15, 2026
RepositoryTypeScript
ItzCrazyKns/Vane

Vane is an AI-powered answering engine.

38.4k
Dec 1, 2026
Repository
ashishpatel26/500-AI-Machine-learning-Deep-learning-Computer-vision-NLP-Projects-with-code

500 AI Machine learning Deep learning Computer vision NLP Projects with code

38.0k
Sep 26, 2026
RepositoryPython
explosion/spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python

34.1k
Nov 21, 2026
RepositoryAssembly
openhwfoundation/cva6

The CORE-V CVA6 is a highly configurable, 6-stage RISC-V core for both application and embedded applications. Application class configurations are capable of booting Linux.

3.2k
Nov 30, 2026
RepositoryVHDL
stnolting/neorv32

🖥️ A small, customizable and extensible MCU-class 32-bit RISC-V soft-core CPU and microcontroller-like SoC written in platform-independent VHDL.

2.3k
Nov 29, 2026