k-bit optimizers and matrix multiplication routines.
Project description
bitsandbytes
The bitsandbytes library is a lightweight Python wrapper around CUDA custom functions, in particular 8-bit optimizers, matrix multiplication (LLM.int8()), and 8 & 4-bit quantization functions.
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.
There are ongoing efforts to support further hardware backends, i.e. Intel CPU + GPU, AMD GPU, Apple Silicon. Windows support is quite far along and is on its way as well.
Please head to the official documentation page:
https://huggingface.co/docs/bitsandbytes/main
License
The majority of bitsandbytes is licensed under MIT, however small portions of the project are available under separate license terms, as the parts adapted from Pytorch are licensed under the BSD license.
We thank Fabio Cannizzo for his work on FastBinarySearch which we use for CPU quantization.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bitsandbytes-0.43.0-py3-none-win_amd64.whl.
File metadata
- Download URL: bitsandbytes-0.43.0-py3-none-win_amd64.whl
- Upload date:
- Size: 101.6 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fa7f3255fe9f3e549fb110bc60794079761a4e608b5fb86ebe7b4047467dd99
|
|
| MD5 |
f3962a9726b1e34a08c2442313fb25b7
|
|
| BLAKE2b-256 |
db5bce65d93d7bb60fb07e5253f8f4c2da79d0329386188374a25b0ace74aae4
|
File details
Details for the file bitsandbytes-0.43.0-py3-none-manylinux_2_24_x86_64.whl.
File metadata
- Download URL: bitsandbytes-0.43.0-py3-none-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 102.2 MB
- Tags: Python 3, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2626ada0ae447ae0cf3dd0be8f5b0abad7abdec7056c7fb738aa13a5a862007
|
|
| MD5 |
d948ae625c2a41a200df3178ce766eaf
|
|
| BLAKE2b-256 |
dff7da7090dc7690d6a69a311cfb026825ddd9d3693c9c03dd47fdb56521ca41
|