Converts Hugging Face models to EXL3 with ExLlamaV3's convert.py (QTIP-style, fractional bits per weight) and measures the result. Use for EXL3 quants, exl3 bpw ladders, convert.py -b/-hb/-hq/-rcp/-cd, resume (-r), multi-GPU conversion, optimized recipes (sc_trace, sc_measure, sc_optimize), KLD checks, Hub branches. Serving is exllamav3; other formats are model-quantization.
Convert an unquantized Hugging Face checkpoint into an EXL3 model at a chosen average bitrate (any fractional value), check it against the original, and publish a bitrate ladder if asked.
Scope: producing EXL3 files with ExLlamaV3's converter and its eval tools. Installing the library and serving through TabbyAPI belong to exllamav3; choosing between EXL3, GGUF, AWQ, FP8 and NVFP4 belongs to model-quantization.
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.
nvidia-smi --query-gpu=index,name,compute_cap,memory.total,memory.used --format=csv
python3 -c "import torch;print(torch.__version__, torch.version.cuda)" 2>&1 | tail -1
python3 -c "import exllamav3;print(exllamav3.__version__)" 2>&1 | tail -1
ls ~/src/exllamav3/convert.py 2>&1 # the repo checkout holds convert.py and util/
jq '{architectures,torch_dtype,dtype,quantization_config,num_hidden_layers}' ~/models/<model>/config.json
ls ~/models/<model> | head -30 # needs config.json, tokenizer.json, *.safetensors
du -sh ~/models/<model>; df -h ~/models ~/scratch 2>/dev/null; free -g 2>/dev/null | sed -n 2p
uname -m # aarch64 means a source build of the extension
Decision flow
Is EXL3 the target? It serves on NVIDIA/AMD GPUs through ExLlamaV3/TabbyAPI, not vLLM, SGLang, llama.cpp or Apple Silicon. Otherwise stop and use model-quantization.
Source ok? It must be unquantized HF format (BF16/FP16 .safetensors, config.json, tokenizer.json) and its architecture must be in the upstream README table (references/convert.md). Anything else: stop or wait for upstream.
Is a quant already published? Check the Hub (exl3 tag, per-bitrate branches) before spending hours; reuse it if the bitrate fits.
Pick bitrates from the memory budget: params x bpw / 8 bytes plus KV cache (references/bitrates-and-calibration.md). Start with a ladder such as 3.0, 4.0, 5.0, 6.0.
Pick options:-hq for MoE, -hb for small models, -vb/-mb/-eb for vision, MTP and embeddings, -d for multiple GPUs (references/convert.md).
Need the best quality at a small size? The experimental recipe pipeline measures per-tensor sensitivity and calibrates on the model's own traces (references/optimized-recipes.md); not tested on sparse models upstream.
Convert, then evaluate against the original (references/evaluation.md), then smoke-test through exllamav3.
Publish only on request: one branch per bitrate (references/publishing.md).
Failure or interrupted job?references/troubleshooting.md.
Rules
Ask before changing the system. Installs, multi-hour jobs on the user's GPUs, and uploads need approval; check no server is holding the GPU (nvidia-smi).
Secrets never touch output.HF_TOKEN comes from the environment or a 0600 file; do not paste it on command lines.
Work dir needs room.-w must hold a full copy of the output; put it on fast disk and delete it only after the output is checked.
Resuming is explicit. Re-running without -r starts over, and -o is overwritten if it exists. Use a fresh output directory per bitrate.
One job per GPU set. A converter run uses device 0 by default; set -d or CUDA_VISIBLE_DEVICES deliberately.
Pin and record. Note the exllamav3 version (tag or commit), exact command, bitrate, -hb, -hq, recipe and calibration data in the model card.
Verify upstream. Flags come from python convert.py -h of the version you run; trust it over these references.
Workflows
Prepare environment: library and a checkout for convert.py -> references/convert.md, install details in the exllamav3 skill
Choose bitrate, head bits and special-tensor bits -> references/bitrates-and-calibration.md
1---2name: exl3-quantization3description: Converts Hugging Face models to EXL3 with ExLlamaV3's convert.py (QTIP-style, fractional bits per weight) and measures the result. Use for EXL3 quants, exl3 bpw ladders, convert.py -b/-hb/-hq/-rcp/-cd, resume (-r), multi-GPU conversion, optimized recipes (sc_trace, sc_measure, sc_optimize), KLD checks, Hub branches. Serving is exllamav3; other formats are model-quantization.4license: MIT5compatibility: Linux or Windows with an NVIDIA GPU (AMD via ROCm builds), Python 3.10+, torch 2.6+ with CUDA 12.4+, curl and jq. Needs disk for the source, a full work-dir copy and the output. Installs, long conversions and uploads need the user's approval.6metadata:7 source: https://skillmd.com/skills/scaledockhq/exl3-quantization8 author: ScaleDockHQ9 version: "1.0.0"10---1112# EXL3 quantization with ExLlamaV31314Convert an unquantized Hugging Face checkpoint into an EXL3 model at a chosen average bitrate (any fractional value), check it against the original, and publish a bitrate ladder if asked.1516**Scope:** producing EXL3 files with ExLlamaV3's converter and its eval tools. Installing the library and serving through TabbyAPI belong to `exllamav3`; choosing between EXL3, GGUF, AWQ, FP8 and NVFP4 belongs to `model-quantization`.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.2324```bash25nvidia-smi --query-gpu=index,name,compute_cap,memory.total,memory.used --format=csv26python3 -c "import torch;print(torch.__version__, torch.version.cuda)" 2>&1 | tail -127python3 -c "import exllamav3;print(exllamav3.__version__)" 2>&1 | tail -128ls ~/src/exllamav3/convert.py 2>&1 # the repo checkout holds convert.py and util/29jq '{architectures,torch_dtype,dtype,quantization_config,num_hidden_layers}' ~/models/<model>/config.json30ls ~/models/<model> | head -30 # needs config.json, tokenizer.json, *.safetensors31du -sh ~/models/<model>; df -h ~/models ~/scratch 2>/dev/null; free -g 2>/dev/null | sed -n 2p32uname -m # aarch64 means a source build of the extension33```3435## Decision flow36371. **Is EXL3 the target?** It serves on NVIDIA/AMD GPUs through ExLlamaV3/TabbyAPI, not vLLM, SGLang, llama.cpp or Apple Silicon. Otherwise stop and use `model-quantization`.382. **Source ok?** It must be unquantized HF format (BF16/FP16 `.safetensors`, `config.json`, `tokenizer.json`) and its architecture must be in the upstream README table (`references/convert.md`). Anything else: stop or wait for upstream.393. **Is a quant already published?** Check the Hub (`exl3` tag, per-bitrate branches) before spending hours; reuse it if the bitrate fits.404. **Pick bitrates** from the memory budget: `params x bpw / 8` bytes plus KV cache (`references/bitrates-and-calibration.md`). Start with a ladder such as 3.0, 4.0, 5.0, 6.0.415. **Pick options:** `-hq` for MoE, `-hb` for small models, `-vb`/`-mb`/`-eb` for vision, MTP and embeddings, `-d` for multiple GPUs (`references/convert.md`).426. **Need the best quality at a small size?** The experimental recipe pipeline measures per-tensor sensitivity and calibrates on the model's own traces (`references/optimized-recipes.md`); not tested on sparse models upstream.437. **Convert, then evaluate** against the original (`references/evaluation.md`), then smoke-test through `exllamav3`.448. **Publish** only on request: one branch per bitrate (`references/publishing.md`).459. **Failure or interrupted job?** `references/troubleshooting.md`.4647## Rules4849- **Ask before changing the system.** Installs, multi-hour jobs on the user's GPUs, and uploads need approval; check no server is holding the GPU (`nvidia-smi`).50- **Secrets never touch output.** `HF_TOKEN` comes from the environment or a `0600` file; do not paste it on command lines.51- **Work dir needs room.** `-w` must hold a full copy of the output; put it on fast disk and delete it only after the output is checked.52- **Resuming is explicit.** Re-running without `-r` starts over, and `-o` is overwritten if it exists. Use a fresh output directory per bitrate.53- **One job per GPU set.** A converter run uses device 0 by default; set `-d` or `CUDA_VISIBLE_DEVICES` deliberately.54- **Pin and record.** Note the exllamav3 version (tag or commit), exact command, bitrate, `-hb`, `-hq`, recipe and calibration data in the model card.55- **Verify upstream.** Flags come from `python convert.py -h` of the version you run; trust it over these references.5657## Workflows5859- [ ] Prepare environment: library and a checkout for `convert.py` -> `references/convert.md`, install details in the `exllamav3` skill60- [ ] Choose bitrate, head bits and special-tensor bits -> `references/bitrates-and-calibration.md`61- [ ] Convert, resume, multi-GPU -> `references/convert.md`, `scripts/convert-ladder.sh`62- [ ] Optional: optimized recipe plus in-domain calibration -> `references/optimized-recipes.md`63- [ ] Evaluate: perplexity, KLD against the original, then a serving smoke test -> `references/evaluation.md`64- [ ] Post-processing: recompile, embedding bits, vision tower, quantization_config.json -> `references/post-processing.md`65- [ ] Publish a bitrate ladder to the Hub -> `references/publishing.md`66- [ ] Update the library and decide what to redo -> `references/updating.md`67- [ ] Verify: the output loads in ExLlamaV3/TabbyAPI, answers a prompt, and the card states version, command, bitrate and metrics.6869## Quick path7071```bash72cd ~/src/exllamav373python convert.py -i ~/models/<model> -o ~/models/<model>-exl3-4.0bpw -w ~/scratch/exl3-work -b 4.074python convert.py -w ~/scratch/exl3-work -r # resume after an interruption75```7677## Reference index7879- `references/convert.md`: every `convert.py` argument, resume, multi-GPU, architecture support, memory and time.80- `references/bitrates-and-calibration.md`: sizing math, ladders, head/embedding/vision/MTP bits, `-hq`, calibration data.81- `references/optimized-recipes.md`: the sc_trace, sc_rfn_probe, sc_measure, sc_optimize, convert `-rcp -cd` pipeline.82- `references/evaluation.md`: `eval/ppl.py`, `eval/model_diff.py`, qbench, serving smoke test, gates.83- `references/post-processing.md`: `util/` tools: recompile, quantization config, vision conversion and transplant.84- `references/publishing.md`: naming, per-bitrate branches, model card, `hf` commands.85- `references/updating.md`: new ExLlamaV3 releases and when to requantize.86- `references/troubleshooting.md`: symptom to fix table.87- `references/combos/convert-then-serve-tabbyapi.md`: convert, check, then serve with TabbyAPI.88- `scripts/convert-ladder.sh`: convert several bitrates in sequence with resume.8990## Companion skills9192- `exllamav3`: install the library and serve EXL3 models with TabbyAPI. Install: `npx skills add ScaleDockHQ/llm-skills --skill exllamav3`.93- `model-quantization`: choose a format and method. Install: `npx skills add ScaleDockHQ/llm-skills --skill model-quantization`.94- `choosing-hardware`: size VRAM and bandwidth. Install: `npx skills add ScaleDockHQ/llm-skills --skill choosing-hardware`.95- `gguf-quantization`: the llama.cpp equivalent. Install: `npx skills add ScaleDockHQ/llm-skills --skill gguf-quantization`.
Run npx get-skill add scaledockhq/exl3-quantization 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.
Converts Hugging Face models to EXL3 with ExLlamaV3's convert.py (QTIP-style, fractional bits per weight) and measures the result. Use for EXL3 quants, exl3 bpw ladders, convert.py -b/-hb/-hq/-rcp/-cd, resume (-r), multi-GPU conversion, optimized recipes (sc_trace, sc_measure, sc_optimize), KLD checks, Hub branches. Serving is exllamav3; other formats are model-quantization. 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.