gptq

Quantize large language models to 4-bit precision using GPTQ.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Clay-HHK/claude-config --skill gptq-clay-hhk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gptq
Source: https://github.com/Clay-HHK/claude-config/tree/main/skills/AI-research-SKILLs/10-optimization/gptq
Command: npx skills add https://github.com/Clay-HHK/claude-config --skill gptq-clay-hhk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires auto-gptq, transformers, optimum, peft, and includes references (resource) components.

What problem does it solve?

GPTQ enables post-training quantization of large language models to 4-bit precision, dramatically reducing memory footprint while preserving accuracy, enabling deployment on consumer GPUs and faster inference.

Core Features & Use Cases

  • 4-bit weight quantization with group-wise scaling for compact models (4× memory reduction on typical LLMs).
  • Model compatibility across major families (Llama, Mistral, Qwen, Phi, Yi, Falcon, BLOOM, OPT, and more) with integration in AutoGPTQ, transformers, and PEFT for QLoRA fine-tuning.
  • Workflows & troubleshooting guidance including calibration, integration, and troubleshooting references to support end-to-end deployment.

Quick Start

Install AutoGPTQ and quantize a model to 4-bit using the standard configuration, then run a quick inference to verify results.

Frequently Asked Questions about gptq

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

FAQPage Schema
How do I quantize a large language model to 4-bit precision for memory-efficient deployment?

You can quantize large language models to 4-bit precision using GPTQ to achieve a 4× memory reduction. This post-training quantization process uses group-wise scaling to compress model weights while preserving accuracy for consumer GPU inference.

Does GPTQ quantization work with Llama, Mistral, and Qwen model families?

GPTQ quantization supports major model families including Llama, Mistral, Qwen, Phi, Yi, Falcon, BLOOM, and OPT. It integrates directly with AutoGPTQ and transformers to ensure broad compatibility across popular large language models.

Can I use PEFT and QLoRA fine-tuning on a 4-bit quantized model?

Yes, you can use PEFT and QLoRA fine-tuning on a 4-bit quantized model. GPTQ integrates with the peft library to enable parameter-efficient fine-tuning workflows directly on the quantized weights.

What is the best way to deploy a 70B to 405B scale model on consumer GPUs?

The best way to deploy large 70B to 405B scale models on consumer GPUs is through 4-bit GPTQ post-training quantization. This approach dramatically reduces the memory footprint while maintaining model accuracy for faster inference.

What dependencies do I need to install for 4-bit GPTQ model quantization?

You need to install AutoGPTQ, transformers, optimum, and peft to perform 4-bit GPTQ model quantization. These dependencies provide the calibration, integration, and troubleshooting references required for end-to-end deployment.