Introducing AutoRound: Intel’s Advanced Quantization for LLMs and VLMs
AutoRound is Intel's weight-only post-training quantization method for LLMs and VLMs. It uses signed gradient descent to jointly optimize weight rounding and clipping ranges, which allows INT2–INT8 quantization with small accuracy loss, and at 2 bits it beats popular baselines by up to 2.1x in relative accuracy. It needs about 200 tuning steps and 128 calibration samples, and quantizes a 72B model in 37 minutes on an A100 in light mode. The post gives benchmark tables comparing the best, default and light recipes against AutoAWQ and GPTQ, plus CLI and Python examples for quantizing, exporting to GPTQ/AWQ/GGUF formats, and running inference on CPU, Intel GPU or CUDA.
Related posts
- Making LLMs lighter with AutoGPTQ and transformers
Hugging Face mediumAdeptAutoGPTQ is now integrated into Hugging Face Transformers (via Optimum), letting users quantize and run LLMs at 8, 4, 3 or 2 bits with the GPTQ post-training method. GPTQ needs a calibration dataset and quantizes only the weights: int4 weights are dequantized on the fly in a fused kernel while compute stays in fp16. That gives nearly 4x memory savings with negligible accuracy loss at 4-bit. On an A100 at batch size 1, Llama-2-7B with the exllama kernel dropped peak memory from about 29 GB to 10.5 GB with slightly better per-token latency than fp16. Text-Generation-Inference can now serve a 70B model on a single 80GB GPU and PEFT adapters can be fine-tuned on top, but the kernels slow down at larger batch sizes and W4A8 or Triton kernels remain open work.
- A Chatbot on your Laptop: Phi-2 on Intel Meteor Lake
Hugging Face mediumAdeptMicrosoft's 2.7B-parameter Phi-2 can run as a usable local chatbot on a mid-range Intel Core Ultra 7 155H (Meteor Lake) laptop once its weights are quantized to 4-bit with OpenVINO through Hugging Face's Optimum Intel library. The walkthrough covers Meteor Lake's CPU, iGPU (Xe Vector Engines with DP4a) and NPU, then shows code using OVWeightQuantizationConfig with bits=4, group_size=128 and ratio=0.8, where 80% of weights go to 4-bit and the rest to 8-bit. Lowering ratio or group size improves accuracy but costs model size and latency. Generation quality and speed are shown only through demo videos, with no measured benchmarks.
- Fine-tuning LLMs to 1.58bit: extreme quantization made easy
Hugging Face hardMasterExisting LLMs can be fine-tuned into BitNet's 1.58-bit ternary format (-1, 0, 1) instead of pre-training from scratch, and a Llama3 8B fine-tuned this way on 100B tokens outperforms Llama 1 7B on MMLU. Training uses BitLinear layers with absmean per-tensor weight quantization, absmax per-token 8-bit activation quantization, layer normalization before activation quantization, and a straight-through estimator implemented via detach(). Inference quantizes weights without rescaling and runs matrix multiplication through efficient kernels. The resulting models load in Transformers through a new 'bitnet' quantization method with no API changes, and pre-training experiments show layer normalization lowering validation perplexity from 6.3 to 5.9.
- Smaller is better: Q8-Chat, an efficient generative AI experience on Xeon
Hugging Face easyNoviceSmoothQuant enables accurate 8-bit (INT8) post-training quantization of LLMs by mathematically shifting activation outliers into the weights, which makes Transformer layers quantization-friendly. Intel applied it to OPT, LLaMA, Alpaca, Vicuna, BloomZ and MPT-7B-chat models, roughly halving model size. On many LM Evaluation Harness tasks the quantized models matched or slightly improved accuracy, and most remaining tasks degraded only marginally. Running on a single 32-core Sapphire Rapids Xeon socket at batch size 1, the quantized models deliver low per-token latency, demonstrated in the Q8-Chat Space, with Optimum Intel integration via Intel Neural Compressor planned.
- Optimize and deploy with Optimum-Intel and OpenVINO GenAI
Hugging Face mediumAdeptHugging Face Transformers LLMs can be exported to OpenVINO IR with Optimum-Intel, quantized with NNCF, and deployed through the lightweight OpenVINO GenAI LLMPipeline from Python or C++. Models over one billion parameters default to INT8 weights during export. For Llama 3.1 8B the recommendation is to stack AWQ, scale estimation and mixed INT4/INT8 quantization using a calibration dataset. Wikitext perplexity goes from 7.34 in FP32 to 7.35 at INT8 and 7.83 at INT4. Code examples cover export via API and CLI, generation config, streaming, and chat mode that reuses the KV cache across turns.