GPTQ compresses large language models to 4-bit precision with minimal accuracy loss, typically under 2% perplexity degradation. It uses group-wise quantization with Hessian-based error minimization to achieve 4× memory reduction, letting you run 70B+ models on consumer GPUs like an RTX 4090. The real win is deployment: you get 3-4× faster inference compared to FP16 while keeping quality intact. It integrates cleanly with transformers and supports QLoRA fine-tuning, so you can train a 70B model on a single A100. Choose AWQ if you need slightly better accuracy or have newer GPUs with Marlin kernel support, but GPTQ remains the proven choice for aggressive compression without breaking your models.

skills.sh installs
1K
GitHub stars
14.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill gptq --agent claude-code

Installs into .claude/skills of the current project.

Files

GPTQ (Generative Pre-trained Transformer Quantization)

Post-training quantization method that compresses LLMs to 4-bit with minimal accuracy loss using group-wise quantization.

When to use GPTQ

Use GPTQ when:

  • Need to fit large models (70B+) on limited GPU memory
  • Want 4× memory reduction with <2% accuracy loss
  • Deploying on consumer GPUs (RTX 4090, 3090)
  • Need faster inference (3-4× speedup vs FP16)

Use AWQ instead when:

  • Need slightly better accuracy (<1% loss)
  • Have newer GPUs (Ampere, Ada)
  • Want Marlin kernel support (2× faster on some GPUs)

Use bitsandbytes instead when:

  • Need simple integration with transformers
  • Want 8-bit quantization (less compression, better quality)
  • Don't need pre-quantized model files

Quick start

Installation

# Install AutoGPTQ
pip install auto-gptq

# With Triton (Linux only, faster)
pip install auto-gptq[triton]

# With CUDA extensions (faster)
pip install auto-gptq --no-build-isolation

# Full installation
pip install auto-gptq transformers accelerate

Load pre-quantized model

from transformers import AutoTokenizer
from auto_gptq import AutoGPTQForCausalLM

Sponsors

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
AI & Agent Building, Data Science & ML
First seen
Jun 3, 2026

More from orchestra-research/ai-research-skills

All 95
1orchestra-research avatarsentencepieceorchestra-research/ai-research-skillsLanguage-independent tokenizer treating text as raw Unicode. Supports BPE and Unigram algorithms. Fast (50k sentences/sec), lightweight (6MB memory), determinis1Kskills.sh installs
2jwynia avatargodot-asset-generatorjwynia/agent-skillsGenerate game assets using AI image generation APIs (DALL-E, Replicate, fal.ai) and prepare them for Godot. Covers the full art pipeline from concept art and st1Kskills.sh installs
3orchestra-research avatarpyvene-interventionsorchestra-research/ai-research-skillsProvides guidance for performing causal interventions on PyTorch models using pyvene's declarative intervention framework. Use when conducting causal tracing, a1Kskills.sh installs
4orchestra-research avatartraining-llms-megatronorchestra-research/ai-research-skillsTrains large language models (2B-462B parameters) using NVIDIA Megatron-Core with advanced parallelism strategies. Use when training models >1B parameters, need1Kskills.sh installs
5dash0hq avatarotel-instrumentationdash0hq/agent-skillsConfigures trace spans, defines custom metrics, sets up log exporters, and optimizes sampling strategies for OpenTelemetry instrumentation. Use when instrumenti1Kskills.sh installs
6orchestra-research avatarmamba-architectureorchestra-research/ai-research-skillsState-space model with O(n) complexity vs Transformers' O(n²). 5× faster inference, million-token sequences, no KV cache. Selective SSM with hardware-aware desi1Kskills.sh installs