bitsandbytes
An open-source library for quantization and acceleration of deep neural networks. It supports 8-bit and 4-bit quantization such as NF4 and is commonly used for large-model inference under low GPU memory.
Timeline (last 90 days)
Common quantization schemes include bitsandbytes' LLM.int8/NF4, GPTQ, AWQ, and others, and Diffusers provides interface support such as PipelineQuantizationConfig for some of them.
The GGUF format mainly targets the llama.cpp ecosystem, GPTQ and AWQ are common in GPU inference stacks, and bitsandbytes provides an online quantization solution integrated with Hugging Face Transformers.
8-bit Adam (such as the bitsandbytes library) uses block-wise dynamic quantization to compress first- and second-order moments from FP32 to INT8, significantly reducing memory while maintaining convergence.
Common quantization schemes in the community include GPTQ, AWQ, GGUF (llama.cpp ecosystem), and bitsandbytes' NF4, among others, with different schemes making different trade-offs between accuracy loss and throughput.
Unsloth's 3bit quantization is not a standard bitsandbytes configuration; it usually refers to its own asymmetric quantization scheme, which can compress 7B-class model weights to about 3GB.
According to the Transformers bitsandbytes documentation, quantized linear layers and other modules are handled separately, and weight storage and compute dtype are two different things.
Different quantization formats (GGUF, AWQ, GPTQ, bitsandbytes) have different metadata overhead and layouts, and peak memory during loading may also differ.
On the Python side, single-prompt model.generate speeds up Llama and Qwen3 models by up to 2.7x at 32K context; with bitsandbytes 4-bit models, generating 2 to 4 prompts at a time speeds up by up to 2.8x on some NVIDIA GPUs.
The self-developed W4 kernel's perplexity (probe ppl) is 15.76, better than bitsandbytes NF4's 18.98.
In the same test, the bf16 baseline exceeded the self-developed W4 kernel (25.5 tok/s) and bitsandbytes NF4 (25.7 tok/s) at 31.3 tok/s, reaching 29.8% of the theoretical roofline.
3 more timeline events
All Facts (11)
The Transformers framework natively supports mainstream quantization solutions including bitsandbytes, GPTQ, and AWQ.
90%UnverifiedThe Transformers library integrates quantization technologies such as GPTQ, AWQ, and bitsandbytes, as well as the Flash Attention acceleration scheme.
90%UnverifiedCommon quantization schemes include bitsandbytes' LLM.int8/NF4, GPTQ, AWQ, and others, and Diffusers provides interface support such as PipelineQuantizationConfig for some of them.
50%UnverifiedThe GGUF format mainly targets the llama.cpp ecosystem, GPTQ and AWQ are common in GPU inference stacks, and bitsandbytes provides an online quantization solution integrated with Hugging Face Transformers.
50%Unverified8-bit Adam (such as the bitsandbytes library) uses block-wise dynamic quantization to compress first- and second-order moments from FP32 to INT8, significantly reducing memory while maintaining convergence.
50%UnverifiedCommon quantization schemes in the community include GPTQ, AWQ, GGUF (llama.cpp ecosystem), and bitsandbytes' NF4, among others, with different schemes making different trade-offs between accuracy loss and throughput.
50%UnverifiedUnsloth's 3bit quantization is not a standard bitsandbytes configuration; it usually refers to its own asymmetric quantization scheme, which can compress 7B-class model weights to about 3GB.
50%UnverifiedAccording to the Transformers bitsandbytes documentation, quantized linear layers and other modules are handled separately, and weight storage and compute dtype are two different things.
50%UnverifiedDifferent quantization formats (GGUF, AWQ, GPTQ, bitsandbytes) have different metadata overhead and layouts, and peak memory during loading may also differ.
50%UnverifiedPascal架构对应CUDA计算能力6.x,而vLLM、bitsandbytes等现代推理框架已将最低支持版本提升至7.0,部分功能要求8.0以上
50%UnverifiedMainstream quantization toolchains include llama.cpp (GGUF format) and bitsandbytes.
50%