通过 k 位量化为 PyTorch 提供可访问的大型语言模型。
cuda
SM60+ minimumcuda
CDNA: gfx908, gfx90a, gfx942, gfx950, gfx1250xpu
Data Center GPU Max Serieshpu
Gaudi2, Gaudi3
✅
〰️
❌
aarch64
◻️ CPU
✅ *
✅
✅
NVIDIA GPU cuda
SM75+
✅
✅
✅
Windows 11 / Windows Server 2022+
x86-64
◻️ CPU
AVX2
✅
✅
✅
NVIDIA GPU cuda
SM60+ minimumcuda
CDNA: gfx908, gfx90axpu
Arc A-Series (Alchemist) cuda
SM121
✅
✅
✅
macOS 14+
arm64
◻️ CPU
Apple M1+
✅ *
✅
✅
⬜ Metal mps
Apple M1+
✅ *
✅
* While supported, these marked features may lack in performance optimizations.
## :book: Documentation
* [Official Documentation](https://huggingface.co/docs/bitsandbytes/main)
* [Transformers](https://huggingface.co/docs/transformers/quantization/bitsandbytes)
* [Diffusers](https://huggingface.co/docs/diffusers/quantization/bitsandbytes)
* [PEFT](https://huggingface.co/docs/peft/developer_guides/quantization#quantize-a-model)
## :heart: Sponsors
The continued maintenance and development of `bitsandbytes` is made possible thanks to the generous support of our sponsors. Their contributions help ensure that we can keep improving the project and delivering valuable updates to the community.
## License
`bitsandbytes` is MIT licensed.
## How to cite us
If you found this library useful, please consider citing our work:
### QLoRA
```bibtex
@article{dettmers2023qlora,
title={Qlora: Efficient finetuning of quantized llms},
author={Dettmers, Tim and Pagnoni, Artidoro and Holtzman, Ari and Zettlemoyer, Luke},
journal={arXiv preprint arXiv:2305.14314},
year={2023}
}
```
### LLM.int8()
```bibtex
@article{dettmers2022llmint8,
title={LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale},
author={Dettmers, Tim and Lewis, Mike and Belkada, Younes and Zettlemoyer, Luke},
journal={arXiv preprint arXiv:2208.07339},
year={2022}
}
```
### 8-bit Optimizers
```bibtex
@article{dettmers2022optimizers,
title={8-bit Optimizers via Block-wise Quantization},
author={Dettmers, Tim and Lewis, Mike and Shleifer, Sam and Zettlemoyer, Luke},
journal={9th International Conference on Learning Representations, ICLR},
year={2022}
}
```暂无开放 Issues,或尚未同步最近议题。