# `bitsandbytes`
[![Downloads](https://static.pepy.tech/badge/bitsandbytes)](https://pepy.tech/project/bitsandbytes) [![Downloads](https://static.pepy.tech/badge/bitsandbytes/month)](https://pepy.tech/project/bitsandbytes) [![Downloads](https://static.pepy.tech/badge/bitsandbytes/week)](https://pepy.tech/project/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](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](https://github.com/fabiocannizzo/FastBinarySearch) which we use for CPU quantization.
Raw data
{
"_id": null,
"home_page": "https://github.com/TimDettmers/bitsandbytes",
"name": "bitsandbytes",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "gpu optimizers optimization 8-bit quantization compression",
"author": "Tim Dettmers",
"author_email": "dettmers@cs.washington.edu",
"download_url": null,
"platform": null,
"description": "# `bitsandbytes`\n\n[![Downloads](https://static.pepy.tech/badge/bitsandbytes)](https://pepy.tech/project/bitsandbytes) [![Downloads](https://static.pepy.tech/badge/bitsandbytes/month)](https://pepy.tech/project/bitsandbytes) [![Downloads](https://static.pepy.tech/badge/bitsandbytes/week)](https://pepy.tech/project/bitsandbytes)\n\nThe `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.\n\nThe 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.\n\nThere 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.\n\n**Please head to the official documentation page:**\n\n**[https://huggingface.co/docs/bitsandbytes/main](https://huggingface.co/docs/bitsandbytes/main)**\n\n## License\n\nThe 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.\n\nWe thank Fabio Cannizzo for his work on [FastBinarySearch](https://github.com/fabiocannizzo/FastBinarySearch) which we use for CPU quantization.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "k-bit optimizers and matrix multiplication routines.",
"version": "0.43.1",
"project_urls": {
"Homepage": "https://github.com/TimDettmers/bitsandbytes"
},
"split_keywords": [
"gpu",
"optimizers",
"optimization",
"8-bit",
"quantization",
"compression"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2fa4d8c8c1f69ceb3afdc285d62c65bec8d46900d70e81c9a8b24883001e23f8",
"md5": "ce47198eb1fff8b7210fe3e3b34fabe1",
"sha256": "a81c826d576d6d691c7b4a7491c8fdc0f37f769795d6ca2e54afa605d2c260a3"
},
"downloads": -1,
"filename": "bitsandbytes-0.43.1-py3-none-manylinux_2_24_x86_64.whl",
"has_sig": false,
"md5_digest": "ce47198eb1fff8b7210fe3e3b34fabe1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 119827111,
"upload_time": "2024-04-11T18:23:49",
"upload_time_iso_8601": "2024-04-11T18:23:49.083859Z",
"url": "https://files.pythonhosted.org/packages/2f/a4/d8c8c1f69ceb3afdc285d62c65bec8d46900d70e81c9a8b24883001e23f8/bitsandbytes-0.43.1-py3-none-manylinux_2_24_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "32e8ab6c97347c99cf5d18d0750c7336270719b17cb0610eb0a44cf833aa378f",
"md5": "b8a3fd842bb87409c8df2fcb05e7fe78",
"sha256": "52c1c7189a6ca006555a9663e544e75f40520a97a26e075411f9f9aca0771fcd"
},
"downloads": -1,
"filename": "bitsandbytes-0.43.1-py3-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "b8a3fd842bb87409c8df2fcb05e7fe78",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 101565961,
"upload_time": "2024-04-11T18:24:13",
"upload_time_iso_8601": "2024-04-11T18:24:13.733841Z",
"url": "https://files.pythonhosted.org/packages/32/e8/ab6c97347c99cf5d18d0750c7336270719b17cb0610eb0a44cf833aa378f/bitsandbytes-0.43.1-py3-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-11 18:23:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TimDettmers",
"github_project": "bitsandbytes",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "bitsandbytes"
}