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
bitsandbytes multi-backend alpha release is out!
🚀 Big news! After months of hard work and incredible community contributions, we're thrilled to announce the bitsandbytes multi-backend alpha release! 💥
Now supporting:
- 🔥 AMD GPUs (ROCm)
- ⚡ Intel CPUs & GPUs
We’d love your early feedback! 🙏
👉 Instructions for your pip install here
We're super excited about these recent developments and grateful for any constructive input or support that you can give to help us make this a reality (e.g. helping us with the upcoming Apple Silicon backend or reporting bugs). BNB is a community project and we're excited for your collaboration 🤗
License
bitsandbytes is MIT licensed.
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.45.1-py3-none-win_amd64.whl.
File metadata
- Download URL: bitsandbytes-0.45.1-py3-none-win_amd64.whl
- Upload date:
- Size: 69.1 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f5b8c982ae475a7fee2f21c2b1e7835d212da0db10bb5e270a3508614ee2cf9
|
|
| MD5 |
ed6daa040969826965b9b929d0a0f042
|
|
| BLAKE2b-256 |
f136022554463c267f2e3152a17a8bbd979cbf5ae19163bc6958796ddd2d6443
|
Provenance
The following attestation bundles were made for bitsandbytes-0.45.1-py3-none-win_amd64.whl:
Publisher:
python-package.yml on bitsandbytes-foundation/bitsandbytes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bitsandbytes-0.45.1-py3-none-win_amd64.whl -
Subject digest:
3f5b8c982ae475a7fee2f21c2b1e7835d212da0db10bb5e270a3508614ee2cf9 - Sigstore transparency entry: 164901745
- Sigstore integration time:
-
Permalink:
bitsandbytes-foundation/bitsandbytes@8cd7793bae488e45cc3b0b25d86168858b1c655d -
Branch / Tag:
refs/tags/0.45.1 - Owner: https://github.com/bitsandbytes-foundation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@8cd7793bae488e45cc3b0b25d86168858b1c655d -
Trigger Event:
push
-
Statement type:
File details
Details for the file bitsandbytes-0.45.1-py3-none-manylinux_2_24_x86_64.whl.
File metadata
- Download URL: bitsandbytes-0.45.1-py3-none-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 69.7 MB
- Tags: Python 3, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9f6a38b3fccd012549f875e4f371a47c515c4394df7a488dec65faa14465323
|
|
| MD5 |
724bdd02128d7c5e443146df990e8552
|
|
| BLAKE2b-256 |
e4260897c35865a6d7a04b05af5d59558484fda14fa26e5ec922a3bb8d3e0d18
|
Provenance
The following attestation bundles were made for bitsandbytes-0.45.1-py3-none-manylinux_2_24_x86_64.whl:
Publisher:
python-package.yml on bitsandbytes-foundation/bitsandbytes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bitsandbytes-0.45.1-py3-none-manylinux_2_24_x86_64.whl -
Subject digest:
f9f6a38b3fccd012549f875e4f371a47c515c4394df7a488dec65faa14465323 - Sigstore transparency entry: 164901743
- Sigstore integration time:
-
Permalink:
bitsandbytes-foundation/bitsandbytes@8cd7793bae488e45cc3b0b25d86168858b1c655d -
Branch / Tag:
refs/tags/0.45.1 - Owner: https://github.com/bitsandbytes-foundation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@8cd7793bae488e45cc3b0b25d86168858b1c655d -
Trigger Event:
push
-
Statement type: