Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
5 days ago | |
|---|---|---|
| .github | 6 days ago | |
| .vscode | 1 year ago | |
| benchmarking | 1 month ago | |
| bitsandbytes | 6 days ago | |
| csrc | 1 week ago | |
| docs/source | 6 days ago | |
| examples | 8 months ago | |
| scripts | 1 year ago | |
| tests | 6 days ago | |
| .clang-format | 6 months ago | |
| .editorconfig | 1 year ago | |
| .git-blame-ignore-revs | 6 months ago | |
| .gitattributes | 1 month ago | |
| .gitignore | 1 year ago | |
| .pre-commit-config.yaml | 1 month ago | |
| CHANGELOG.md | 10 months ago | |
| CMakeLists.txt | 5 days ago | |
| CODE_OF_CONDUCT.md | 4 years ago | |
| CONTRIBUTING.md | 1 year ago | |
| LICENSE | 4 years ago | |
| MANIFEST.in | 5 months ago | |
| NOTICE.md | 2 weeks ago | |
| README.md | 5 days ago | |
| _typos.toml | 3 months ago | |
| check_bnb_install.py | 1 year ago | |
| install_cuda.py | 3 months ago | |
| install_cuda.sh | 7 months ago | |
| pyproject.toml | 1 week ago | |
| setup.py | 6 days ago | |
bitsandbytes enables accessible large language models via k-bit quantization for PyTorch. We provide three main features for dramatically reducing memory consumption for inference and training:
The library includes quantization primitives for 8-bit & 4-bit operations, through bitsandbytes.nn.Linear8bitLt and bitsandbytes.nn.Linear4bit and 8-bit optimizers through bitsandbytes.optim module.
bitsandbytes has the following minimum requirements for all platforms:
Note: this table reflects the status of the current development branch. For the latest stable release, see the
document in the 0.49.0 tag.
🚧 = In Development,
〰️ = Partially Supported,
✅ = Supported,
🐢 = Slow Implementation Supported,
❌ = Not Supported
| Platform | Accelerator | Hardware Requirements | LLM.int8() | QLoRA 4-bit | 8-bit Optimizers |
|---|---|---|---|---|---|
| 🐧 Linux, glibc >= 2.24 | |||||
| x86-64 | ◻️ CPU | Minimum: AVX2 Optimized: AVX512F, AVX512BF16 |
✅ | ✅ | ❌ |
🟩 NVIDIA GPU cuda |
SM60+ minimum SM75+ recommended |
✅ | ✅ | ✅ | |
🟥 AMD GPU cuda |
CDNA: gfx90a, gfx942, gfx950 RDNA: gfx1100, gfx1101, gfx1150, gfx1151, gfx1200, gfx1201 |
✅ | 〰️ | ✅ | |
🟦 Intel GPU xpu |
Data Center GPU Max Series Arc A-Series (Alchemist) Arc B-Series (Battlemage) |
✅ | ✅ | 〰️ | |
🟪 Intel Gaudi hpu |
Gaudi2, Gaudi3 | ✅ | 〰️ | ❌ | |
| aarch64 | ◻️ CPU | ✅ | ✅ | ❌ | |
🟩 NVIDIA GPU cuda |
SM75+ | ✅ | ✅ | ✅ | |
| 🪟 Windows 11 / Windows Server 2022+ | |||||
| x86-64 | ◻️ CPU | AVX2 | ✅ | ✅ | ❌ |
🟩 NVIDIA GPU cuda |
SM60+ minimum SM75+ recommended |
✅ | ✅ | ✅ | |
🟦 Intel GPU xpu |
Arc A-Series (Alchemist) Arc B-Series (Battlemage) |
✅ | ✅ | 〰️ | |
| 🍎 macOS 14+ | |||||
| arm64 | ◻️ CPU | Apple M1+ | ✅ | ✅ | ❌ |
⬜ Metal mps |
Apple M1+ | 🐢 | 🐢 | ❌ | |
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.
bitsandbytes is MIT licensed.
If you found this library useful, please consider citing our work:
@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}
}
@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}
}
@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}
}
No Description
Python Cuda C++ Text Shell other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》