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.…
4-bit quantizer
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. This method also introduces a new data type, 4-bit NormalFloat (LinearNF4) in addition to the standard Float4 data type (LinearFP4). LinearNF4 is a quantization data type for normally distributed data and can improve performance.
Linear4bit
[[autodoc]] bitsandbytes.nn.Linear4bit - init
LinearFP4
[[autodoc]] bitsandbytes.nn.LinearFP4 - init
LinearNF4
[[autodoc]] bitsandbytes.nn.LinearNF4 - init
Params4bit
[[autodoc]] bitsandbytes.nn.Params4bit - init
Source and license
Source: Bitsandbytes documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.