hqq-quantization

Quantize large language model weights without calibration data.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/t2ance/dr-claw-plugin --skill hqq-quantization-t2ance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hqq-quantization
Source: https://github.com/t2ance/dr-claw-plugin/tree/main/plugins/ml-training-stack/skills/optimization/hqq
Command: npx skills add https://github.com/t2ance/dr-claw-plugin --skill hqq-quantization-t2ance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Quantize large language model weights without calibration data to enable fast, memory-efficient inference and deployment.

Core Features & Use Cases

  • Calibration-free quantization across 4-, 3-, 2-, and 1-bit configurations for LLMs.
  • Supports multiple backends (Marlin, TorchAO, BitBlas, Aten) and HuggingFace Transformers integration.
  • Suitable for vLLM deployments and mixed-precision workflows to save memory and improve throughput.

Quick Start

Install hqq, configure a 4-bit quantization config, and quantize a pretrained model with quantization_config.

Frequently Asked Questions about hqq-quantization

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

FAQPage Schema
How do I quantize LLM weights without calibration data for memory-efficient inference?

You can quantize LLM weights without calibration data by applying calibration-free 4-, 3-, 2-, or 1-bit configurations to your pretrained model. This approach enables fast, memory-efficient inference and deployment without needing a calibration dataset.

Can I use calibration-free quantization with vLLM and HuggingFace Transformers?

Yes, calibration-free quantization supports HuggingFace Transformers integration and is suitable for vLLM deployments. You can configure mixed-precision workflows to save memory and improve inference throughput across these platforms.

Do I need specific Python backends to run 4-bit LLM quantization?

Yes, 4-bit LLM quantization requires Python with hqq>=0.2.0 and torch>=2.0.0. You can also utilize optional backends such as marlin, torchao_int4, or bitblas to optimize the quantization and inference process.

What is the best way to deploy a mixed-precision quantized LLM?

The best way to deploy a mixed-precision quantized LLM is by configuring a quantization config on your pretrained model and using compatible backends like Marlin or BitBlas. This allows you to save memory and improve inference throughput during deployment.

What bit-width configurations are available for calibration-free LLM quantization?

Calibration-free LLM quantization supports 4-bit, 3-bit, 2-bit, and 1-bit configurations. These options allow you to flexibly reduce model memory requirements based on your specific hardware and accuracy needs.