Skip to main content

bitsandbytes

Downloads Downloads Downloads

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.

Release files for bitsandbytes 0.43.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for bitsandbytes 0.43.1
File Interpreter ABI Platform
bitsandbytes-0.43.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
bitsandbytes-0.43.1-py3-none-manylinux_2_24_x86_64.whl Python 3 none Linux glibc 2.24+ x86-64 Details

Total release size: 221.4 MB

Release files / bitsandbytes-0.43.1-py3-none-win_amd64.whl

Download URL bitsandbytes-0.43.1-py3-none-win_amd64.whl
Size 101.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
52c1c7189a6ca006555a9663e544e75f40520a97a26e075411f9f9aca0771fcd
BLAKE2b-256 checksum
How to use checksums
32e8ab6c97347c99cf5d18d0750c7336270719b17cb0610eb0a44cf833aa378f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.18

Release files / bitsandbytes-0.43.1-py3-none-manylinux_2_24_x86_64.whl

Download URL bitsandbytes-0.43.1-py3-none-manylinux_2_24_x86_64.whl
Size 119.8 MB
Tags Linux glibc 2.24+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a81c826d576d6d691c7b4a7491c8fdc0f37f769795d6ca2e54afa605d2c260a3
BLAKE2b-256 checksum
How to use checksums
2fa4d8c8c1f69ceb3afdc285d62c65bec8d46900d70e81c9a8b24883001e23f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.18

Release history Release notifications | RSS feed

0.50.2

5 release files

0.50.1

5 release files

0.50.0

5 release files

0.49.2

4 release files

0.49.0

4 release files

0.48.2

3 release files

0.48.0

3 release files

0.47.0

3 release files

0.46.0

3 release files

0.45.4

2 release files

0.45.3

2 release files

0.45.1

2 release files

0.44.1

2 release files

0.44.0

2 release files

0.43.3

2 release files

0.43.2

2 release files

This release

0.43.1 This release

2 release files

0.41.0

2 release files

0.40.2

2 release files

0.40.1

2 release files

0.40.0

2 release files

0.39.1

2 release files

0.39.0

2 release files

0.38.1

2 release files

0.38.0

2 release files

0.37.2

2 release files

0.37.1

2 release files

0.35.3

2 release files

0.35.2

2 release files

0.35.0

2 release files

0.34.0

2 release files

0.33.0

2 release files

0.32.2

2 release files

0.32.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page