bitsandbytes is a crucial lightweight CUDA library that provides the highly optimized 4-bit and 8-bit quantization primitives and efficient matrix operations that QLoRA leverages. It enables the loading of base models in 4-bit quantized format (like NF4) and offers paged optimizers, forming the technical backbone for memory-efficient finetuning.