#6060th of 105 in ML frameworks and libraries

bitsandbytes

8-bit and 4-bit quantization and 8-bit optimizers for PyTorch models

Stars
8.5k
License
MIT
Last commit
Sep 2026
Last release
Aug 2026
Language
Python
Stars, last 29 weeks+499
1 Apr 2026: 8,030 stars8 Apr 2026: 8,052 stars15 Apr 2026: 8,067 stars22 Apr 2026: 8,097 stars29 Apr 2026: 8,119 stars6 May 2026: 8,133 stars13 May 2026: 8,154 stars20 May 2026: 8,177 stars27 May 2026: 8,193 stars3 Jun 2026: 8,219 stars10 Jun 2026: 8,229 stars17 Jun 2026: 8,248 stars24 Jun 2026: 8,257 stars1 Jul 2026: 8,276 stars8 Jul 2026: 8,285 stars15 Jul 2026: 8,300 stars22 Jul 2026: 8,314 stars29 Jul 2026: 8,354 stars5 Aug 2026: 8,373 stars12 Aug 2026: 8,397 stars19 Aug 2026: 8,415 stars26 Aug 2026: 8,430 stars2 Sept 2026: 8,444 stars9 Sept 2026: 8,462 stars16 Sept 2026: 8,473 stars23 Sept 2026: 8,495 stars30 Sept 2026: 8,506 stars7 Oct 2026: 8,511 stars14 Oct 2026: 8,523 stars21 Oct 2026: 8,529 stars

8,030 on 1 Apr 20268,529 on 21 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

bitsandbytes is a PyTorch library that provides LLM.int8() 8-bit inference, QLoRA 4-bit quantization and block-wise 8-bit optimizers. It exposes Linear8bitLt and Linear4bit layers plus a bitsandbytes.optim module, and is documented as a quantization backend for Hugging Face Transformers, Diffusers and PEFT. Backends cover CPU, NVIDIA, AMD, Intel GPU and Gaudi, and Apple Metal.

Who it is for: ML engineers fitting or fine-tuning large models in less GPU memory

Strengths

  • Drop-in Linear8bitLt and Linear4bit layers plus 8-bit optimizers in bitsandbytes.optim
  • Documented integrations with Hugging Face Transformers, Diffusers and PEFT
  • Wide hardware matrix: x86-64 and aarch64 CPU, NVIDIA, AMD, Intel XPU, Windows, macOS
  • Backed by published papers: LLM.int8(), QLoRA and 8-bit optimizers

Weaknesses

  • Library only, no model server, UI or CLI; requires writing PyTorch code
  • Gaudi has partial 4-bit support and no 8-bit optimizers
  • Metal 8-bit optimizers only planned; some CPU and Metal paths lack optimizations
  • Requires Python 3.10+ and PyTorch 2.4+

What it needs

  • GPU optional
  • Needs PyTorch 2.4+, Python 3.10+
  • Models: PyTorch models, Hugging Face Transformers, Diffusers, PEFT

Also in ML frameworks and libraries

See all 105
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168k starsApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning105k starscustom license94 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.7k starsAGPL-3.093 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.092 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.3k starsMIT91 out of 100