bitsandbytes-foundation/bitsandbytes
Accessible large language models via k-bit quantization for PyTorch. observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 28
- age_days: 1917
- days_rel: 7
- days_push: 7
- n_releases_24m: 20
Adoption not part of the score
8439 stars · 916 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
bitsandbytes is a Python library providing k-bit quantization primitives for PyTorch, enabling 8-bit (LLM.int8()) and 4-bit (QLoRA) quantization plus 8-bit optimizers to dramatically reduce memory usage for LLM inference and training. It integrates tightly with the Hugging Face ecosystem and supports NVIDIA, AMD, Intel, and Apple Silicon accelerators.
Use cases
- run large language models on GPUs with limited VRAM via 8-bit quantization
- finetune LLMs with QLoRA 4-bit quantization on consumer GPUs
- reduce optimizer memory usage during model training
- load Hugging Face Transformers models in 4-bit or 8-bit
- train 70B parameter models with FSDP-QLoRA on dual 24GB GPUs
When to choose
- you need to fit large LLMs into memory-constrained GPUs for inference or training
- you use Hugging Face Transformers/PEFT and want drop-in quantization via BitsAndBytesConfig
- you want memory-efficient 8-bit optimizers without accuracy loss
When to avoid
- you need maximum inference speed rather than memory savings, as quantization adds overhead
- your workload is CPU-only or uses small models where quantization gains are negligible
- you require non-PyTorch frameworks like JAX or TensorFlow
Facets
library · maturity active
machine-learning llm-training llm-inference gpu-computing large-language-models machine-learning deep-learning python windows cross-platform quantization qlora 8-bit-optimizers pytorch memory-optimization hugging-face gpu linux macos
10 sources
- readme: https://github.com/bitsandbytes-foundation/bitsandbytes · fetched 2026-08-28 · 465d85c29b48
- homepage: https://huggingface.co/docs/bitsandbytes/main/en/index · fetched 2026-08-29 · 42e9f1ac18d1
- site_page: https://huggingface.co/docs · fetched 2026-08-29 · bdec26667b98
- site_page: https://huggingface.co/docs/bitsandbytes/main/en/installation · fetched 2026-08-29 · 76921f4831aa
- site_page: https://huggingface.co/docs/bitsandbytes/main/en/quickstart · fetched 2026-08-29 · 5ea9acdd5b7f
- site_page: https://huggingface.co/docs/bitsandbytes/main/en/optimizers · fetched 2026-08-29 · 4180fbfb46eb
- site_page: https://huggingface.co/docs/bitsandbytes/main/en/fsdp_qlora · fetched 2026-08-29 · efd2e11b59b8
- site_page: https://huggingface.co/docs/bitsandbytes/main/en/integrations · fetched 2026-08-29 · d1b11143ad5b
- site_page: https://huggingface.co/docs/bitsandbytes/main/en/errors · fetched 2026-08-29 · b5fb19922313
- registry_pypi: https://pypi.org/pypi/bitsandbytes/json · fetched 2026-08-29 · 773f1207f5e3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bitsandbytes-foundation/bitsandbytes | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="bitsandbytes-foundation/bitsandbytes")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem