jp6/cu128/: bitsandbytes-0.47.0.dev0 metadata and description
k-bit optimizers and matrix multiplication routines.
author_email | Tim Dettmers <dettmers@cs.washington.edu> |
classifiers |
|
description_content_type | text/markdown |
keywords | gpu, optimizers, optimization, 8-bit, quantization, compression |
license | MIT License Copyright (c) Facebook, Inc. and its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
maintainer_email | Titus von KΓΆller <titus@huggingface.co>, Matthew Douglas <matthew.douglas@huggingface.co> |
project_urls |
|
requires_dist |
|
requires_python | >=3.9 |
Because this project isn't in the mirror_whitelist
,
no releases from root/pypi are included.
File | Tox results | History |
---|---|---|
bitsandbytes-0.47.0.dev0-cp312-cp312-linux_aarch64.whl
|
|
bitsandbytes
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:
- 8-bit optimizers uses block-wise quantization to maintain 32-bit performance at a small fraction of the memory cost.
- LLM.int8() or 8-bit quantization enables large language model inference with only half the required memory and without any performance degradation. This method is based on vector-wise quantization to quantize most features to 8-bits and separately treating outliers with 16-bit matrix multiplication.
- QLoRA or 4-bit quantization enables large language model training with several memory-saving techniques that don't compromise performance. This method quantizes a model to 4-bits and inserts a small set of trainable low-rank adaptation (LoRA) weights to allow 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.
System Requirements
bitsandbytes has the following minimum requirements for all platforms:
- Python 3.9+
- PyTorch 2.2+
- Note: While we aim to provide wide backwards compatibility, we recommend using the latest version of PyTorch for the best experience.
Accelerator support:
Platform | Accelerator | Hardware Requirements | Support Status |
---|---|---|---|
π§ Linux, glibc >= 2.24 | |||
x86-64 | β»οΈ CPU | AVX2 | γ°οΈ Partial Support |
π© NVIDIA GPU cuda |
SM50+ minimum SM75+ recommended |
β Full Support | |
π₯ AMD GPU cuda |
CDNA: gfx90a, gfx942 RDNA: gfx1100, gfx1200 |
π§ In Development | |
π¦ Intel GPU xpu |
Data Center GPU Max Series Arc A-Series (Alchemist) Arc B-Series (Battlemage) |
π§ In Development | |
πͺ Intel Gaudi hpu |
Gaudi1, Gaudi2, Gaudi3 | π§ In Development | |
aarch64 | β»οΈ CPU | γ°οΈ Partial Support | |
π© NVIDIA GPU cuda |
SM75, SM80, SM90, SM100 | β Full Support | |
πͺ Windows 11 / Windows Server 2019+ | |||
x86-64 | β»οΈ CPU | AVX2 | γ°οΈ Partial Support |
π© NVIDIA GPU cuda |
SM50+ minimum SM75+ recommended |
β Full Support | |
π¦ Intel GPU xpu |
Arc A-Series (Alchemist) Arc B-Series (Battlemage) |
π§ In Development | |
π macOS 13.1+ | |||
arm64 | β»οΈ CPU | Apple M1+ | π§ In Development |
β¬ Metal mps |
Apple M1+ | π§ In Development |
:book: Documentation
- Official Documentation
- π€ Transformers
- π€ Diffusers
- π€ PEFT
: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.
We thank Fabio Cannizzo for his work on FastBinarySearch which we use for CPU quantization.
How to cite us
If you found this library useful, please consider citing our work:
QLoRA
@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()
@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
@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}
}