hqq-quantization

Quantize LLMs to 8/4/3/2/1-bit precision without calibration using HQQ.

2|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/zhuangbiaowei/smart_bot --skill hqq-quantization-zhuangbiaowei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hqq-quantization
Source: https://github.com/zhuangbiaowei/smart_bot/tree/main/skills/hqq
Command: npx skills add https://github.com/zhuangbiaowei/smart_bot --skill hqq-quantization-zhuangbiaowei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires hqq, torch, and includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of large language model (LLM) memory footprints and slow inference speeds by enabling efficient weight quantization without the need for calibration datasets.

Core Features & Use Cases

  • Calibration-Free Quantization: Quantize models to 8/4/3/2/1-bit precision instantly, without requiring sample data.
  • Optimized Backends: Supports multiple backends (PyTorch, ATEN, TorchAO, Marlin, BitBlas) for accelerated inference.
  • Framework Integration: Seamlessly works with HuggingFace Transformers and vLLM.
  • Use Case: You have a large LLM that needs to run on resource-constrained hardware. Use this Skill to quantize the model to 4-bit precision, significantly reducing its memory usage and speeding up inference times for deployment.

Quick Start

Use the hqq-quantization skill to quantize the 'meta-llama/Llama-3.1-8B' model to 4-bit precision.

Frequently Asked Questions about hqq-quantization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I quantize an LLM without a calibration dataset?

You can achieve calibration-free weight quantization of Large Language Models using the HQQ library. This Skill compresses models to 8/4/3/2/1-bit precision instantly without requiring sample data, significantly reducing memory usage and accelerating inference.

Does HQQ quantization work with HuggingFace Transformers and vLLM?

Yes, HQQ quantization integrates natively with both HuggingFace Transformers and vLLM frameworks. This allows you to deploy compressed models seamlessly across these platforms while leveraging optimized backends for accelerated inference.

What is the best way to compress a large LLM for resource-constrained hardware?

The best way to compress large LLMs for constrained hardware is using HQQ for 4-bit weight quantization. By converting models to lower bit precisions without calibration, you drastically cut memory footprints and speed up inference times for deployment.

Which optimized backends are supported for inference acceleration with HQQ?

HQQ supports multiple optimized backends for inference acceleration, including PyTorch, ATEN, TorchAO, Marlin, and BitBlas. These backends facilitate fast execution of quantized models across different deployment environments.

Can I quantize a Llama model to 2-bit or 3-bit precision for memory efficiency?

Yes, you can quantize models like meta-llama/Llama-3.1-8B to 2-bit or 3-bit precision using HQQ. This calibration-free approach supports various bit precisions down to 1-bit to address strict memory efficiency and deployment constraints.

What are the limitations of calibration-free weight quantization for LLMs?

While calibration-free weight quantization using HQQ avoids the need for sample datasets and speeds up compression, it relies on optimized backends like PyTorch and Marlin to maintain inference acceleration, requiring specific framework integrations like vLLM or HuggingFace Transformers.