Export, Quantize, Merge & Transform
Ship trained models to Ollama, LM Studio, llama.cpp, vLLM, Apple Silicon MLX, or Hugging Face Hub — and verify that quantization, merging, or refusal removal did not silently degrade quality.
1. Auto-Judged GGUF & Ollama Export
Convert a trained model to GGUF, optionally calibrate with an importance matrix (--imatrix) built from your training rows, and register directly in Ollama:
actuator export runs/my-run/export-native \
--gguf \
--quant q8_0,q5_k_m,q4_k_m \
--imatrix \
--ollama my-model \
--out runs/my-run-gguf
ollama run my-model:q4_k_m
- Auto-judged by default: When exporting from an Actuator run directory, Actuator automatically scores each quantized GGUF file against the 16-bit model on your held-out rows and writes
quantized.jsonbeside the files. Pass--no-judgeto skip scoring. - Common
--quantvalues:q4_k_m(default, strong size/quality balance),q5_k_m,q6_k,q8_0,q4_k_s,q3_k_m,iq4_xs,f16,bf16. - Modelfiles included: Even without Ollama installed on the training server, Actuator writes a ready-to-use
Modelfile(with your run's chat template and system prompt) next to every.gguffile.
2. Production GPU Serving: vLLM & torchao
vLLM (llm-compressor)
pip install "actuator-train[vllm-export] @ git+https://github.com/IluvatarLabs/actuator.git"
# FP8 dynamic quantization (Ada / Hopper / Blackwell GPUs)
actuator export runs/my-run/export-native --vllm FP8_DYNAMIC --out runs/my-run-fp8
# W4A16 weight quantization (RTX 3090 / 24 GB L4 / Turing and newer)
actuator export runs/my-run/export-native --vllm W4A16 --out runs/my-run-w4a16
Serve immediately with vllm serve runs/my-run-fp8.
torchao (QAT & Weight-Only Quantization)
actuator export runs/my-run/export-native --torchao int4 --out runs/my-run-torchao
Supported schemes: int4, int8-int4, fp8-int4, fp8-fp8. If the run trained with quantization-aware training (training.qat_scheme), --torchao uses that scheme automatically.
3. Apple Silicon MLX & LoRA Adapters
MLX Export (Mac / LM Studio)
actuator export runs/my-run/export-native --mlx --q-bits 4 --out runs/my-run-mlx
Unmerged LoRA Adapter Only
By default, Actuator saves the compact LoRA adapter at the end of training (<1 second). To export just the adapter cleanly or merge into full 16-bit weights:
# Copy clean standalone PEFT adapter
actuator export runs/my-run/export-native --adapter --out runs/my-run-adapter
# Or save merged 16-bit weights directly at training time
actuator train my-data.jsonl --model Qwen/Qwen3-4B --export merged
4. Push to Hugging Face Hub
Log in once with hf auth login, then upload your model (private by default) along with an auto-generated model card containing your training recipe and Verdict summary:
actuator push runs/my-run/export-native --repo your-username/my-model
# Add --public to publish publicly
5. Model Merging (actuator merge)
Actuator runs your mergekit YAML unchanged, writes the merged checkpoint to DIR/model, and automatically judges the merge against every input parent model (on format-invariants by default, or on your own --data rows):
pip install "actuator-train[merge] @ git+https://github.com/IluvatarLabs/actuator.git"
actuator merge recipes/catalog/transform/merge-slerp-qwen3-8b.yaml \
--out runs/my-slerp-merge \
--data my-eval.jsonl
actuator explain runs/my-slerp-merge/against-1 --plain
Ready-to-edit SLERP and TIES configs ship in recipes/catalog/transform/.
6. Remove Refusals (actuator abliterate)
Remove over-refusals with heretic and get an honest side-by-side Verdict showing refusal-rate drop, KL divergence from the original model, and whether format-following or your --data task accuracy degraded:
pip install "actuator-train[heretic] @ git+https://github.com/IluvatarLabs/actuator.git"
actuator abliterate Qwen/Qwen3-8B --out runs/qwen3-8b-abliterated --data my-eval.jsonl
actuator explain runs/qwen3-8b-abliterated/against-1 --plain
7. Exporting After a Strict-Gate Block
By default, Actuator's Ship-Gate is advisory (your model is always saved). If you ran with --strict-gate and want to inspect or export a blocked model anyway, pass --export-anyway on the scored artifact — Actuator records blocked-export.json beside the exported files for provenance:
actuator export runs/my-run/export-native.scoring --export-anyway --gguf --out runs/debug-gguf