# GPTQ

> Canonical: https://skillalmanac.com/glossary/gptq | Last verified: 2026-11-24 | Index status: not offered to search engines

GPTQ is a post-training quantization method for GPT-style language models. It stores weights in fewer bits, using approximate second-order information, without retraining the model, so the model needs less memory.

Also called: GPTQ quantization, GPTQ model, GPTQ checkpoint, GPTQ quantized model.

## In plain language

GPTQ is a way to shrink a language model after it has been trained so it fits on smaller hardware. Each stored number is rounded to use fewer bits, much like saving a photo at lower quality to get a smaller file. GPTQ does the rounding carefully, using a small sample of text to correct for the error it introduces. You will see the name on downloadable model files. The limit is that rounding loses some information, so quality can drop, especially at very low bit widths, and a GPTQ file is built for particular software and hardware support.

## Technical definition

GPTQ, from the paper GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers, is described in its abstract as a one-shot weight quantization method based on approximate second-order information, with negligible accuracy degradation relative to the uncompressed baseline reported at 3 or 4 bits per weight. The Hugging Face documentation says GPTQ quantizes a model one layer at a time and uses a small calibration dataset to update the remaining weights so they compensate for each layer's rounding error. Transformers runs it through Optimum and the GPT-QModel library.

## How it shows up when you use agents

You meet GPTQ when you run a model on your own machine to power a coding agent or another tool. Download pages for open models often list several variants of the same model, and one of them may be labelled GPTQ. That label tells you the weights were compressed with this method before you got them. It does not tell you how good the result is for your task.

What breaks when this is misunderstood is the assumption that a smaller file behaves like the original. The paper's abstract reports negligible accuracy degradation at 3 or 4 bits on the models it studied, but that is a result for those models and tests. The Hugging Face page lists limitations too, including that GPTQ supports only text models in Transformers.

A practical next step is to check that your software supports the format, size the model against your memory with a tool such as the sizing skill below, and run a few of your own prompts against it before relying on it. See [Quantization](/glossary/quantization) for the general idea and [Self-hosted LLM](/glossary/self-hosted-llm) for the setup around it.

## Common confusions

- **GPTQ versus quantization.** Quantization is the general idea of storing numbers in fewer bits. GPTQ is one specific method for doing it after training.
- **Post-training versus training.** GPTQ works on a model that is already trained and does not retrain it. It does use a small calibration dataset to adjust the remaining weights.
- **GPTQ versus a file format.** GPTQ names a method. A model file is a separate thing, and not all runtimes read GPTQ checkpoints.
- **Myth.** Fewer bits means the same model at lower quality in a predictable way. The effect depends on the model, the bit width and the settings, so test your own case.

## Worked examples in this catalogue

### [local-model-sizing](https://skillalmanac.com/skills/skill-almanac/local-model-sizing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill works out whether an open-weight language model will run on a given GPU, Mac or PC, with a script that computes weight, KV-cache and overhead memory per quantization.

Why it exercises the concept: It is the catalogue's nearest tool for the question GPTQ answers, which is whether a model fits in memory at a given precision. It does not run GPTQ and has not been checked against GPTQ files.

### [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide to what you own when an AI agent runs on your machine: model memory, network exposure, file access and vetting skills.

Why it exercises the concept: A quantized checkpoint such as a GPTQ file is one way people fit a model onto local hardware. The guide covers the surrounding decisions. It does not discuss GPTQ by name.

### [llm-cost-estimator](https://skillalmanac.com/skills/skill-almanac/llm-cost-estimator)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill turns a usage profile and your own price table into a monthly LLM cost range with cache, batch and subscription effects.

Why it exercises the concept: A contrast case: running a quantized model yourself changes the cost question from per-token prices to hardware. This skill works from your own price table and does not model GPTQ.

## Related terms

- [Quantization](https://skillalmanac.com/glossary/quantization.md)
- [Self-hosted LLM](https://skillalmanac.com/glossary/self-hosted-llm.md)
- [Open-weights model](https://skillalmanac.com/glossary/open-weights-model.md)
- [Inference](https://skillalmanac.com/glossary/inference.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Model weights](https://skillalmanac.com/glossary/model-weights.md)

## Sources

- [GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers](https://arxiv.org/abs/2210.17323), arXiv (accessed 2026-11-24)
- [GPTQ, Transformers documentation](https://huggingface.co/docs/transformers/quantization/gptq), Hugging Face (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
