hqq-quantization

Quantize large language models without calibration data for HuggingFace Transformers or vLLM.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/tadod12/fraud-detection-research --skill hqq-quantization-tadod12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hqq-quantization
Source: https://github.com/tadod12/fraud-detection-research/tree/main/.agent/skills/10-optimization/hqq
Command: npx skills add https://github.com/tadod12/fraud-detection-research --skill hqq-quantization-tadod12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Half-Quadratic Quantization enables weight quantization for LLMs without calibration data, allowing fast 4/3/2/1-bit quantization workflows and straightforward deployment with vLLM or HuggingFace Transformers.

Core Features & Use Cases

  • Fast, calibration-free weight quantization supporting 8/4/3/2/1-bit precision with multiple optimized backends.
  • Framework integration with HuggingFace Transformers and vLLM; supports PEFT/LoRA fine-tuning.
  • Flexible quantization configurations, including per-layer dynamic settings and mixed precision.

Quick Start

Install hqq and quantize a model with a 4-bit configuration, then load it with a compatible backend and begin inference.

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 calibration data?

You can quantize an LLM without calibration data using Half-Quadratic Quantization. It enables fast 4/3/2/1-bit weight quantization directly, allowing immediate deployment with vLLM or HuggingFace Transformers without requiring a calibration dataset.

What's the best way to deploy a quantized model with vLLM?

The best way to deploy a quantized model with vLLM is using calibration-free weight quantization. Applying Half-Quadratic Quantization allows you to quantize model weights to lower bits and seamlessly integrate the result into vLLM inference pipelines.

Does weight quantization work with HuggingFace Transformers?

Yes, weight quantization works with HuggingFace Transformers. The process applies quantization to model weights and provides framework integration, allowing you to load the optimized model directly for inference within the HuggingFace ecosystem.

Can I apply mixed-precision settings during LLM quantization?

Yes, you can apply mixed-precision settings during LLM quantization. This approach supports flexible quantization configurations, including per-layer dynamic settings, allowing different bits of precision across various layers to balance memory efficiency and performance.

Is it possible to fine-tune a quantized model with PEFT or LoRA?

Yes, it is possible to fine-tune a quantized model with PEFT or LoRA. The quantization process supports integration with PEFT and LoRA fine-tuning workflows, enabling memory-efficient adaptation of large language models after weight compression.