RepositoryPythonUSHoa Kỳ
Xilinx

Xilinx/brevitas

Brevitas: neural network quantization in PyTorch

1.6ksao
262fork
181issue
7lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: ptq

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: qat

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: brevitas

#1 Repository của tuần

🔧 Brevitas: Lượt tĩnh mạng nơron trong PyTorch

Thư viện nghiên cứu hỗ trợ PTQ và QAT, tích hợp sẵn các lớp quantized như QuantConv2d, QuantLSTM.

Brevitas là thư viện Python dựa trên PyTorch, cung cấp công cụ lượt tĩnh (quantization) cho mạng nơron sâu. Dự án hỗ trợ cả post-training quantization (PTQ) và quantization-aware training (QAT), giúp người dùng dễ dàng áp dụng lượt tĩnh vào các mô hình torchvision hoặc các kiến trúc tùy chỉnh.

✨ Điểm nổi bật

  • Hỗ trợ PTQ và QAT: Tùy chỉnh cấu hình lượt tĩnh (bit-width, độ nhớt scale) cho cả hai phương pháp.
  • Các lớp quantized: Cung cấp QuantConv1d, QuantConv2d, QuantLSTM, QuantRNN, QuantMultiheadAttention v.v. trong brevitas.nn.
  • Tùy chỉnh tensor: Lượt tĩnh từng tensor (input, weight, bias, output) độc lập theo từng lớp.
  • Ví dụ PTQ ImageNet: Cung cấp pipeline tham chiếu cho phân loại ảnh ImageNet bằng PTQ.
  • Tích hợp PyTorch: Tương thích PyTorch >= 1.12, hỗ trợ Windows, Linux, macOS.
  • Dễ lắp đặt: Cài đặt qua pip install brevitas, yêu cầu Python 3.9–3.12.

💡 Vì sao đáng chú ý

Brevitas khác biệt bằng cách cung cấp API trực tiếp tích hợp với PyTorch, giúp người dùng thay thế các lớp chuẩn bằng các lớp quantized mà không cần viết lại toàn bộ pipeline. Đặc biệt phù hợp cho nghiên cứu và triển khai mô hình lên thiết bị hardware như FPGA, nơi yêu cầu tính toán cố định điểm (fixed-point).


#Quantization #PyTorch #PTQ #QAT #HardwareAcceleration #FPGA #DeepLearning #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.

RepositoryPython
labmlai/annotated_deep_learning_paper_implementations

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠

67.8k
Nov 2, 2026
RepositoryPython
labmlai/annotated_deep_learning_paper_implementations

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠

67.8k
Nov 2, 2026
RepositoryPython
keras-team/keras

Deep Learning for humans

64.5k
Dec 1, 2026
RepositoryPython
yunjey/pytorch-tutorial

PyTorch Tutorial for Deep Learning Researchers

32.5k
Aug 15, 2023
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

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

109.4k
Nov 26, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryPython
AUTOMATIC1111/stable-diffusion-webui

Stable Diffusion web UI

165.4k
Mar 2, 2026
RepositoryPython
Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

149.6k
Dec 2, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026