Buckets:
| # bitsandbytes | |
| > bitsandbytes enables accessible large language models via k-bit quantization for PyTorch. bitsandbytes provides three main features for dramatically reducing memory consumption for inference and… | |
| Each page below links to its Markdown. The text of every page is in [llms-full.txt](https://huggingface.co/docs/bitsandbytes/pr_2089/llms-full.txt) (162 KB), and the text of each section in: | |
| - [Get started](https://huggingface.co/docs/bitsandbytes/pr_2089/llms-full/get-started.txt): 3 pages, 25 KB | |
| - [Usage Guides](https://huggingface.co/docs/bitsandbytes/pr_2089/llms-full/usage-guides.txt): 6 pages, 26 KB | |
| - [Explanation](https://huggingface.co/docs/bitsandbytes/pr_2089/llms-full/explanation.txt): 2 pages, 9 KB | |
| - [API reference](https://huggingface.co/docs/bitsandbytes/pr_2089/llms-full/api-reference.txt): 14 pages, 102 KB | |
| ## Get started | |
| - [bitsandbytes](https://huggingface.co/docs/bitsandbytes/pr_2089/index.md): bitsandbytes enables accessible large language models via k-bit quantization for PyTorch. bitsandbytes provides three main features for dramatically reducing memory consumption for inference and… | |
| - [Installation](https://huggingface.co/docs/bitsandbytes/pr_2089/installation.md): Welcome to the installation guide for the `bitsandbytes` library! | |
| - [Quickstart](https://huggingface.co/docs/bitsandbytes/pr_2089/quickstart.md): Welcome to bitsandbytes! | |
| ## Usage Guides | |
| - [8-bit optimizers](https://huggingface.co/docs/bitsandbytes/pr_2089/optimizers.md): With 8-bit optimizers, large models can be finetuned with 75% less GPU memory without losing any accuracy compared to training with standard 32-bit optimizers. | |
| - [FSDP-QLoRA](https://huggingface.co/docs/bitsandbytes/pr_2089/fsdp_qlora.md): FSDP-QLoRA combines data parallelism (FSDP enables sharding model parameters, optimizer states, and gradients across GPUs), 4-bit quantization, and LoRA to train LLMs up to 70B parameters on a dual… | |
| - [Integrations](https://huggingface.co/docs/bitsandbytes/pr_2089/integrations.md): bitsandbytes is widely integrated with many of the libraries in the Hugging Face and wider PyTorch ecosystem. | |
| - [Troubleshoot](https://huggingface.co/docs/bitsandbytes/pr_2089/errors.md): This problem arises with the cuda version loaded by bitsandbytes is not supported by your GPU, or if you pytorch CUDA version mismatches. | |
| - [Contribute](https://huggingface.co/docs/bitsandbytes/pr_2089/contributing.md): Now all the pre-commit hooks will be automatically run when you try to commit and if they introduce some changes, you need to re-add the changed files before being able to commit and push. | |
| - [FAQs](https://huggingface.co/docs/bitsandbytes/pr_2089/faqs.md): Please submit your questions in this Github Discussion thread if you feel that they will likely affect a lot of other users and that they haven't been sufficiently covered in the documentation. | |
| ## Explanation | |
| - [8-bit optimizers](https://huggingface.co/docs/bitsandbytes/pr_2089/explanations/optimizers.md): Stateful optimizers maintain gradient statistics over time, for example, the exponentially smoothed sum (SGD with momentum) or squared sum (Adam) of past gradient values. | |
| - [Papers, resources & how to cite](https://huggingface.co/docs/bitsandbytes/pr_2089/explanations/resources.md): The below academic work is ordered in reverse chronological order. | |
| ## API reference | |
| - [Functional](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/functional.md): The `bitsandbytes.functional` API provides the low-level building blocks for the library's features. | |
| ### Optimizers | |
| - [Overview](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/optim_overview.md): 8-bit optimizers reduce the memory footprint of 32-bit optimizers without any performance degradation which means you can train large models with many parameters faster. | |
| - [AdaGrad](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/adagrad.md): AdaGrad (Adaptive Gradient) is an adaptive learning rate optimizer. | |
| - [Adam](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/adam.md): Adam (Adaptive moment estimation) is an adaptive learning rate optimizer, combining ideas from `SGD` with momentum and `RMSprop` to automatically scale the learning rate: | |
| - [AdamW](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/adamw.md): AdamW is a variant of the `Adam` optimizer that separates weight decay from the gradient update based on the observation that the weight decay formulation is different when applied to `SGD` and… | |
| - [AdEMAMix](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/ademamix.md): AdEMAMix is a variant of the `Adam` optimizer. | |
| - [LAMB](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/lamb.md): LAMB (Layerwise adaptive large batch optimization) is an adaptive optimizer designed for training with large batch sizes to accelerate training, combining ideas from `LARS` and `Adam` to… | |
| - [LARS](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/lars.md): LARS (Layer-wise Adaptive Rate Scaling) is an optimizer designed for training with large batch sizes to accelerate training. | |
| - [Lion](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/lion.md): Lion (Evolved Sign Momentum) is a unique optimizer that uses the sign of the gradient to determine the update direction of the momentum. | |
| - [RMSprop](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/rmsprop.md): RMSprop is an adaptive learning rate optimizer that is very similar to `Adagrad`. | |
| - [SGD](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/optim/sgd.md): Stochastic gradient descent (SGD) is a basic gradient descent optimizer to minimize loss given a set of model parameters and updates the parameters in the opposite direction of the gradient. | |
| ### Modules | |
| - [LLM.int8()](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/nn/linear8bit.md): LLM.int8() is a quantization method that aims to make large language model inference more accessible without significant degradation. | |
| - [4-bit quantizer](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/nn/linear4bit.md): QLoRA is a finetuning method that quantizes a model to 4-bits and adds a set of low-rank adaptation (LoRA) weights to the model and tuning them through the quantized weights. | |
| - [Embedding](https://huggingface.co/docs/bitsandbytes/pr_2089/reference/nn/embeddings.md): The embedding class is used to store and retrieve word embeddings from their indices. | |
Xet Storage Details
- Size:
- 6.52 kB
- Xet hash:
- bb5fa5196ebf9eb5c00ab51b13c8aa424b027dd3a809b6119a52b1dab69952fe
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.