Quantizes and serves LLMs with GPT-QModel (ModelCloud) using GPTQ, AWQ, ParoQuant, QQQ, GGUF, FP8 and EXL3 from one Python API with Marlin, Machete and Exllama kernels. Use for GPTQModel, gptqmodel, GPTQConfig, AWQConfig, desc_act, group_size, dynamic modules, MoE routing, EoRA, checkpoint/resume, AutoGPTQ or AutoAWQ migration. For vLLM-native recipes use llm-compressor.
Quantize a Hugging Face model with GPT-QModel (GPTQ or AWQ for vLLM, SGLang and Transformers; plus ParoQuant, QQQ, GGUF, FP8, EXL3), evaluate it, load it with the right kernel backend, and serve or publish it.
Scope: this one product (Apache-2.0 library gptqmodel, repo ModelCloud/GPTQModel; import name gptqmodel, brand "GPT-QModel"): install, quantize, load, evaluate, update, troubleshoot. For vLLM-native quantization use llm-compressor; the GGUF and EXL3 pipelines with their own upstream tools are gguf-quantization and exl3-quantization; format choice is model-quantization; serving belongs to vllm, sglang, llama-cpp or exllamav3.
Work through the steps in order. Load a reference only when a step names it.
Discover first
Inspect the live system before changing anything. Every command is read-only and never prints secrets. scripts/discover.sh runs them together.
Is this the right tool? vLLM-only FP8/NVFP4/W4A16 recipes: llm-compressor. A llama.cpp or ExLlamaV3 target: use the dedicated skills (their upstream tools are the reference implementations). GPT-QModel is the choice for GPTQ/AWQ checkpoints, Hessian-based 2-8 bit quantization of many architectures (including VLMs and MoE), and one API across methods.
Is the model_type supported? Compare model_type from config.json with the table in the upstream README (references/models-and-hardware.md). Not listed means no quantization yet.
Pick method and format (references/methods-and-formats.md): GPTQ 4-bit group 128 for vLLM/SGLang/Transformers, AWQ GEMM as the alternative; Marlin formats for NVIDIA throughput; ParoQuant/QQQ only when you need them.
Fit the job: quantization needs the full model plus Hessians in memory layer by layer; use offload_to_disk, batch size and multi-GPU strategies (references/quantize.md).
Calibration data: workload-like text, a few hundred to thousands of samples (references/quantize.md). Weight-only formats (GGUF, FP8) use calibration=None.
MoE model? Configure FailSafe and routing controls and test all three options (references/quantize.md).
Evaluate against the original with Evalution or your own task set (references/evaluate-and-adapters.md); add EoRA only after measuring.
Load and serve (references/load-and-serve.md): the saved folder works with vLLM, SGLang and Transformers (not dynamic, per upstream), or model.serve() for a quick OpenAI-style endpoint.
Broken?references/troubleshooting.md.
Rules
Ask before changing the system.pip install, JIT CUDA/Machete builds (they download a pinned CUTLASS unless GPTQMODEL_OFFLINE=1), long jobs and uploads need approval; use a venv.
Secrets never touch output.HF_TOKEN stays in the environment or a 0600 file; do not put it on command lines.
Quantize from the original BF16/FP16 weights, not from an already quantized checkpoint.
Keep the original model and calibration data so jobs are reproducible; record the gptqmodel version, config and dataset in the model card.
Do not print or log calibration data that is private.
Verify upstream. Config fields, defaults and backends change often (7.5.0 on 2026-09-15, main is 7.6.0-dev); check the dataclass fields in the installed source (gptqmodel/quantization/config.py) before relying on a reference.
Licenses. The library is Apache-2.0; the optional Swordfish Blackwell kernel sources vendored in the repo are AGPL-3.0-or-later (JIT only). Check before bundling.
Check model and hardware support -> references/models-and-hardware.md
Update or migrate from AutoGPTQ/AutoAWQ -> references/updating-and-migration.md
End to end for vLLM -> references/combos/quantize-then-serve-vllm.md
Verify: the saved directory loads with GPTQModel.load, produces sane text, loads in the target engine, and the card records version, config, calibration set and eval numbers.
1---2name: gptqmodel3description: Quantizes and serves LLMs with GPT-QModel (ModelCloud) using GPTQ, AWQ, ParoQuant, QQQ, GGUF, FP8 and EXL3 from one Python API with Marlin, Machete and Exllama kernels. Use for GPTQModel, gptqmodel, GPTQConfig, AWQConfig, desc_act, group_size, dynamic modules, MoE routing, EoRA, checkpoint/resume, AutoGPTQ or AutoAWQ migration. For vLLM-native recipes use llm-compressor.4license: MIT5compatibility: Linux (NVIDIA Turing+, AMD ROCm, Intel XPU, CPU, Ascend), macOS (Apple Silicon) or Windows 11; Python 3.10+, torch 2.8+, transformers 5.14+. Installs, JIT kernel builds, long quantization jobs and uploads need the user's explicit approval.6metadata:7 source: https://skillmd.com/skills/scaledockhq/gptqmodel8 author: ScaleDockHQ9 version: "1.0.0"10---1112# GPT-QModel1314Quantize a Hugging Face model with GPT-QModel (GPTQ or AWQ for vLLM, SGLang and Transformers; plus ParoQuant, QQQ, GGUF, FP8, EXL3), evaluate it, load it with the right kernel backend, and serve or publish it.1516**Scope:** this one product (Apache-2.0 library `gptqmodel`, repo ModelCloud/GPTQModel; import name `gptqmodel`, brand "GPT-QModel"): install, quantize, load, evaluate, update, troubleshoot. For vLLM-native quantization use `llm-compressor`; the GGUF and EXL3 pipelines with their own upstream tools are `gguf-quantization` and `exl3-quantization`; format choice is `model-quantization`; serving belongs to `vllm`, `sglang`, `llama-cpp` or `exllamav3`.1718Work through the steps in order. Load a reference only when a step names it.1920## Discover first2122Inspect the live system before changing anything. Every command is read-only and never prints secrets. `scripts/discover.sh` runs them together.2324```bash25python3 --version; python3 -c "import torch;print(torch.__version__, torch.version.cuda)" 2>&1 | tail -126python3 -c "import gptqmodel;print(gptqmodel.__version__)" 2>&1 | tail -127python3 -c "import transformers;print(transformers.__version__)" 2>&1 | tail -128pip index versions gptqmodel 2>/dev/null | head -1 # newest on PyPI29nvidia-smi --query-gpu=index,name,compute_cap,memory.total,memory.used --format=csv 2>/dev/null30jq '{architectures,model_type,torch_dtype,dtype,quantization_config}' ~/models/<model>/config.json31du -sh ~/models/<model>; df -h ~/models | tail -1; free -g 2>/dev/null | sed -n 2p32ls ~/.cache/gptqmodel 2>/dev/null | head # JIT kernel cache33```3435## Decision flow36371. **Is this the right tool?** vLLM-only FP8/NVFP4/W4A16 recipes: `llm-compressor`. A llama.cpp or ExLlamaV3 target: use the dedicated skills (their upstream tools are the reference implementations). GPT-QModel is the choice for GPTQ/AWQ checkpoints, Hessian-based 2-8 bit quantization of many architectures (including VLMs and MoE), and one API across methods.382. **Is the `model_type` supported?** Compare `model_type` from `config.json` with the table in the upstream README (`references/models-and-hardware.md`). Not listed means no quantization yet.393. **Pick method and format** (`references/methods-and-formats.md`): GPTQ 4-bit group 128 for vLLM/SGLang/Transformers, AWQ GEMM as the alternative; Marlin formats for NVIDIA throughput; ParoQuant/QQQ only when you need them.404. **Fit the job:** quantization needs the full model plus Hessians in memory layer by layer; use `offload_to_disk`, batch size and multi-GPU strategies (`references/quantize.md`).415. **Calibration data:** workload-like text, a few hundred to thousands of samples (`references/quantize.md`). Weight-only formats (GGUF, FP8) use `calibration=None`.426. **MoE model?** Configure `FailSafe` and routing controls and test all three options (`references/quantize.md`).437. **Evaluate** against the original with Evalution or your own task set (`references/evaluate-and-adapters.md`); add EoRA only after measuring.448. **Load and serve** (`references/load-and-serve.md`): the saved folder works with vLLM, SGLang and Transformers (not `dynamic`, per upstream), or `model.serve()` for a quick OpenAI-style endpoint.459. **Broken?** `references/troubleshooting.md`.4647## Rules4849- **Ask before changing the system.** `pip install`, JIT CUDA/Machete builds (they download a pinned CUTLASS unless `GPTQMODEL_OFFLINE=1`), long jobs and uploads need approval; use a venv.50- **Secrets never touch output.** `HF_TOKEN` stays in the environment or a `0600` file; do not put it on command lines.51- **Quantize from the original BF16/FP16 weights**, not from an already quantized checkpoint.52- **Keep the original model and calibration data** so jobs are reproducible; record the gptqmodel version, config and dataset in the model card.53- **Do not print or log calibration data** that is private.54- **Verify upstream.** Config fields, defaults and backends change often (7.5.0 on 2026-09-15, `main` is 7.6.0-dev); check the dataclass fields in the installed source (`gptqmodel/quantization/config.py`) before relying on a reference.55- **Licenses.** The library is Apache-2.0; the optional Swordfish Blackwell kernel sources vendored in the repo are AGPL-3.0-or-later (JIT only). Check before bundling.5657## Workflows5859- [ ] Install, pins, optional extras, kernel cache -> `references/install.md`60- [ ] Choose method, format and kernel -> `references/methods-and-formats.md`61- [ ] Quantize (GPTQ/AWQ config, calibration, MoE, dynamic, checkpoint/resume, multi-GPU) -> `references/quantize.md`62- [ ] Load, pick a backend, serve, hand off to vLLM or SGLang -> `references/load-and-serve.md`63- [ ] Evaluate, EoRA accuracy recovery -> `references/evaluate-and-adapters.md`64- [ ] Check model and hardware support -> `references/models-and-hardware.md`65- [ ] Update or migrate from AutoGPTQ/AutoAWQ -> `references/updating-and-migration.md`66- [ ] End to end for vLLM -> `references/combos/quantize-then-serve-vllm.md`67- [ ] Verify: the saved directory loads with `GPTQModel.load`, produces sane text, loads in the target engine, and the card records version, config, calibration set and eval numbers.6869## Reference index7071- `references/install.md`: pip/uv/source, extras, env vars, JIT cache, offline mode.72- `references/methods-and-formats.md`: METHOD x FORMAT x BACKEND matrix, what to choose, W4A and other methods.73- `references/quantize.md`: `GPTQConfig`/`AWQConfig` fields, `quantize()` arguments, calibration, MoE, dynamic overrides, GAR, GPTAQ/FOEM, checkpointing.74- `references/load-and-serve.md`: `GPTQModel.load`, backends and profiles, generate, `serve`, vLLM/SGLang/Transformers handoff, MLX.75- `references/evaluate-and-adapters.md`: Evalution, quality gates, EoRA.76- `references/models-and-hardware.md`: supported model types, platforms, kernels.77- `references/updating-and-migration.md`: releases, AutoGPTQ/AutoAWQ config changes.78- `references/troubleshooting.md`: symptom to fix table.79- `references/combos/quantize-then-serve-vllm.md`: GPTQ 4-bit then vLLM.80- `scripts/discover.sh`: read-only environment report.8182## Companion skills8384- `vllm`: serve GPTQ/AWQ checkpoints. Install: `npx skills add ScaleDockHQ/llm-skills --skill vllm`.85- `llm-compressor`: the vLLM-project quantizer. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-compressor`.86- `model-quantization`: choose a format. Install: `npx skills add ScaleDockHQ/llm-skills --skill model-quantization`.87- `gguf-quantization`, `exl3-quantization`: dedicated pipelines. Install: `npx skills add ScaleDockHQ/llm-skills --skill gguf-quantization`.88- `choosing-hardware`: size VRAM. Install: `npx skills add ScaleDockHQ/llm-skills --skill choosing-hardware`.
Run npx get-skill add scaledockhq/gptqmodel in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Quantizes and serves LLMs with GPT-QModel (ModelCloud) using GPTQ, AWQ, ParoQuant, QQQ, GGUF, FP8 and EXL3 from one Python API with Marlin, Machete and Exllama kernels. Use for GPTQModel, gptqmodel, GPTQConfig, AWQConfig, desc_act, group_size, dynamic modules, MoE routing, EoRA, checkpoint/resume, AutoGPTQ or AutoAWQ migration. For vLLM-native recipes use llm-compressor. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: executes scripts. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under MIT.
ScaleDockHQ (@scaledockhq) published this skill. Their other Agent Skills are listed on their SkillMD profile.