gptq

Quantize large language models to 4-bit GPTQ with 128-group configuration.

1.0k|117|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/OpenLAIR/dr-claw --skill gptq-openlair
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gptq
Source: https://github.com/OpenLAIR/dr-claw/tree/main/skills/optimization/gptq
Command: npx skills add https://github.com/OpenLAIR/dr-claw --skill gptq-openlair

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Post-training 4-bit quantization of LLMs to reduce memory usage and speed up inference.

Core Features & Use Cases

  • Post-training 4-bit GPTQ quantization with group-wise quantization
  • Integrates with transformers and PEFT for QLoRA fine-tuning
  • Supports multiple backends (ExLlama, Marlin, Triton) and multi-GPU setups
  • Use cases include deploying 70B+ models on consumer GPUs, memory-constrained inference, and rapid quantized model experimentation

Quick Start

Quantize a pretrained LLM to 4-bit GPTQ using a 128-group configuration and calibrate with a representative dataset before saving the quantized model.

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 for inference on consumer GPUs?▼

You can deploy 70B+ models on consumer GPUs by applying post-training 4-bit GPTQ quantization with a 128-group configuration and calibrating with a representative dataset to reduce memory usage.

Can I use 4-bit quantization with PEFT for QLoRA fine-tuning?▼

Yes, 4-bit GPTQ quantization integrates with transformers and PEFT, enabling QLoRA fine-tuning workflows directly on the quantized models to optimize memory efficiency during training.

What backends are supported for GPTQ quantized models?▼

GPTQ quantized models support multiple inference backends including ExLlama, Marlin, and Triton, along with multi-GPU setups to accelerate inference across different hardware environments.

Do I need calibration data to perform 4-bit GPTQ quantization?▼

Yes, calibration data is required to perform 4-bit GPTQ quantization. You must use a representative dataset to calibrate the model during the quantization process to maintain accuracy.

What is the best way to run a 70B model in a memory-constrained environment?▼

The best way to run 70B+ models in memory-constrained environments is post-training 4-bit GPTQ quantization, which significantly reduces memory usage and speeds up inference on consumer GPUs.