Skip to content

v0.53.1 — Live writers for Quant Menu II

v0.53.0 shipped the closed allowlists and validators. v0.53.1 lifts every stub to live wiring.

TorchAO PTQ export

bash
soup export --model ./output --format torchao --quant-config quant.yaml

Closed scheme allowlist with per-scheme kwarg validation:

  • Int4WeightOnly
  • Int8DynActInt4
  • Float8DynActFloat8
  • NVFP4 (Blackwell, SM 10.0 or newer, runtime gate)

(Updated in v0.76.0: three of these four schemes asked torchao for classes it does not export, so through v0.75.2 they could not build a config at all. The [qat] extra now requires torchao>=0.18.0, Int8DynActInt4 and NVFP4 are resolved from torchao's prototype namespace, and inner_k_tiles is no longer an accepted key. The current scheme rules are on Export.)

Single-shot BNB-4bit merge

bash
soup merge --adapter ./output --save-format 4bit          # standard
soup merge --adapter ./output --save-format 4bit_forced   # forced single-shot path

Writes a BNB-4bit quantized merged checkpoint without the wasteful dequant → merge → requant cycle (Unsloth merged_4bit recipe).

(Updated in v0.76.0, #1606: 4bit_forced now quantizes every linear module, lm_head included. Through v0.75.2 transformers' default skip list left lm_head in full precision, so the "forced" checkpoint was not forced. A model with tie_word_embeddings=True is refused by name once the fp16 merge has been staged and before the 4-bit reload (Merge failed: ..., exit 1); use --save-format 4bit for those.)

UD / IQ / Apple-ARM GGUF live

bash
soup export --model ./output --format gguf-ud --gguf-flavour UD-Q4_K_XL --calibration-data calib.jsonl

3-stage pipeline: convert_hf_to_gguf.py → imatrix → quantize. Calibration JSONL is required for any UD / IQ rung.

Autopilot pre-quantized detection

detect_prequantized_format(model_id) recognises TheBloke/...-GPTQ, -AWQ, -MLX, GGUF names. soup autopilot now recommends gptq instead of stacking 4bit on top of a pre-quantized checkpoint.

Deploy autopilot scorecard

bash
soup deploy autopilot --target rtx-4090-24gb --base ./output --measure --tasks tasks.jsonl --measure-candidates 4bit,awq

Writes the recipe and deploy script for the chosen --target profile as usual, then measures each candidate quantization of --base against the unquantized base on your tasks file (one prompt and expected answer per line, under the working directory) and prints an OK / MINOR / MAJOR row per candidate, with the same thresholds as soup eval quant-check. The result is cached in ~/.soup/deploy_autopilot_cache.json, keyed on the profile, the base, the tasks file and the candidate list. --target is required (--list shows the profiles), and --measure-candidates defaults to the profile's own quantization. It loads the base and each quantized candidate through transformers, so expect it to take as long as that does. (Since v0.77.0 the rtx-4090-24gb profile plans 4-bit QLoRA with vLLM instead of writing quantization: awq, and the command's own --measure-candidates example reads 4bit,8bit,fp8.)

Tests

  • 7,610 → 7,722 (+112)

See also

Soup is free and Apache-2.0. If it saved you a training run, starring the repo costs nothing and helps most. You can also fund the GPU time behind the work a 4 GB laptop cannot reach.