Actuator v0.2.0

Actuator 0.2.0 delivers a streamlined single-process architecture for post-training open language and vision models on consumer GPUs, multi-GPU nodes, and Apple Silicon — combining fast end-to-end training, honest generation-aware evaluation, agentic reinforcement learning, and a cross-platform desktop and web Studio.


Highlights

1. Single-Process Pipeline & Opt-In Strict Verification

  • Fast by default (--eval fast): Loads your model once in target precision, evaluates the untouched base model via LoRA disable_adapter(), runs native training with rolling checkpoints enabled (save_total_limit: 2), re-enables the adapter to score the trained model on the exact same unseen split, and saves the adapter (--export adapter) in under a second — eliminating the reload and 16-bit merge overhead on every run.
  • Opt-in rigor when you need it: Pass --eval strict (or --verify-export) for fresh-process evaluation of the serialized merged/quantized artifact with a SHA-256 receipt, --export merged for full 16-bit weights, or --no-eval for zero evaluation overhead.
  • Coherent defaults across methods: Hand-written YAML recipes and actuator train inherit consistent defaults for SFT (r: 16, alpha: 16, dropout: 0.0, targets: all-linear, cosine schedule, lr: 2e-4), DPO/KTO/ORPO (lr: 1e-5, beta: 0.1), and GRPO (max_length: 2048, thinking off by default on short verifiable tasks).

2. Model-Agnostic Engine & Consumer Hardware Access

  • Trait-based model discovery: Discovers decoder layers, norms, and Gemma-style logit softcapping directly from module traits and config.json rather than family whitelists — covering Llama, Qwen3, Qwen3.5 hybrid linear-attention, Gemma 4, Mistral, MoE, and Vision-Language architectures.
  • Generic memory estimation: Sizes weights, optimizer states, gradients, and activations directly from config.json so any new Hugging Face model gets accurate auto-fit recommendations out of the box.
  • Pluggable engines (--engine): Use Actuator's model-agnostic Triton fast path by default (actuator), or switch with one flag to unsloth (updated to unsloth>=2026.11, text and vision), trl, or mlx (Apple Silicon).
  • Broader GPU access: Supports CUDA 12.x and 13.x (including vLLM wheels on CUDA 12.x), AMD ROCm installation routing, multi-GPU DDP and FSDP2 scaling with per-module Triton kernels kept active, and incremental in-place environment updates via scripts/install.sh.

3. Generation-Aware Verdict & Advisory Ship-Gate

  • Paired statistical Verdict: Reports exact paired McNemar tests for pass/fail checks and Wilcoxon signed-rank tests with paired bootstrap 95% confidence intervals for continuous scores.
  • Greedy generation health check: Automatically inspects unseen greedy completions for clean EOS termination and n-gram repetition loops so degenerate looping models are flagged immediately even when teacher-forced loss drops.
  • Optional forgetting canary & pairwise judge: Add --canary to run a zero-download 48-prompt general-capability and instruction-following check alongside held-out scoring, or --eval judge:<model> for blind position-swapped pairwise LLM evaluation.
  • Advisory by default: Always saves your trained model so you can inspect and chat with it; pass --strict-gate in CI/production pipelines to block promotion and exit 2 on significant regression.

4. Decoupled Async Agentic RL, verifiers, Harbor & LLM Judge

  • Two RL execution modes: Single-GPU colocated QLoRA GRPO (--gpus 1) for 8–24 GB cards and free Colab GPUs, plus a multi-GPU decoupled asynchronous rollout orchestrator (--gpus 2+) with concurrent asyncio multi-turn episodes, exact token/logprob trajectory stitching, AdvRangeGate dynamic oversampling, and clipped importance-sampling correction.
  • Six built-in zero-config RL environments (env:): env:math-verify, env:python-exec, env:json-schema, env:tool-call, env:sql-exec, and env:format-follow.
  • Ecosystem adapters & rewards: Native support for Prime Intellect verifiers environments (vf:<name>), Harbor Docker container coding sandboxes (harbor:<dataset>), custom Python rewards (FILE.py:FN), and first-class OpenAI-compatible LLM-as-a-judge rewards (--reward judge:<model>).

5. Optional ML-Native Closed-Loop Control (actuator/control/)

  • Strictly optional (including complete omission) PyTorch and TRL hooks with zero calibration passes:
  • SafetyGuard: Single-pass O(1)-sync non-finite gradient interlock, EMA z-score adaptive clipping (ZClip), and sustained loss-spike LR backoff / rollback signaling.
  • PreservationAnchor (--preserve-kl / --replay-mix): Live-batch KL-to-reference penalty using LoRA disable_adapter() (no extra base-model copy) and deterministic replay dataset mixing.
  • Adaptive KL & Entropy Controllers (--adaptive-kl / --adaptive-entropy): Deadband multiplicative dual controllers that serialize into trainer checkpoints for clean resume.
  • Online RL Curriculum & Plateau Early-Stop (--early-stop): Drops zero-variance RL groups and decays LR before stopping cleanly on dev-loss plateaus.

6. Actuator Studio: FastAPI + React/TS/Vite Web UI & Tauri 2 Desktop App

  • FastAPI + SSE backend (actuator serve / actuator ui): Sub-50 ms in-process recipe preview, binary multipart/form-data uploads (JSONL, CSV, Parquet, PDF, DOCX), real-time SSE metrics/log streaming, and in-app add-on installation.
  • 0-second Compare Chat: Keeps one base model warm in memory and toggles the LoRA adapter to stream side-by-side base vs. trained replies in 1× VRAM.
  • Tauri 2 Desktop App (desktop/): Native lightweight wrapper with system tray background training, sleep prevention, and opt-in remote GPU server attach over SSH/LAN.

7. Distribution Kit, CLI & Python SDK

  • 12 free 1-click Colab notebooks covering Qwen3, Llama 3.1, Gemma 4, Qwen3.5, Vision SFT, DPO, GRPO math & tool-calling, PDF-to-model, GGUF/Ollama export, merging/abliteration, and engine/control comparison.
  • 34 production YAML recipes packaged directly inside the Python wheel (actuator recipes list and actuator recipes fetch <id>).
  • Clean 10-verb CLI, Python SDK, and agent reference: Top-level actuator.train(), actuator.run(), actuator.evaluate(), actuator.export(), actuator.merge(), and actuator.abliterate() plus actuator agent-docs for coding agents.

Measured Benchmarks & Preservation Proof

1. Head-to-Head vs. Unsloth 2026.11.9

Measured on a single NVIDIA RTX PRO 6000 (96 GB) at 64 steps with matched hyperparameters (lr, scheduler, warmup, optimizer, LoRA rank/alpha/targets, and identical adapted layer counts verified from saved safetensors), matched datasets (Alpaca for SFT, UltraFeedback for DPO), and single-process tree peak VRAM sampling (<2% VRAM differences and overlapping step ranges reported as ties; rolling checkpoints remained enabled on Actuator):

Workload Arm Median Wall (s) Median Steady Step (s) Median Peak VRAM (MiB) Summary vs. Unsloth
unsloth/Qwen3-4B-Base QLoRA (3 seeds, 252 layers) Unsloth 2026.11.9 177.96 0.6922 4,306 baseline
Actuator --no-eval 129.80 0.6082 3,944 -27.1% wall, -12.1% step, -8.4% VRAM (3/3)
Actuator --eval fast 184.88 0.6057 4,030 +6.9s w/ Verdict; -12.5% step, -6.4% VRAM (3/3)
unsloth/Llama-3.1-8B QLoRA (3 seeds, 224 layers) Unsloth 2026.11.9 231.16 0.7106 7,388 baseline
Actuator --no-eval 204.28 0.7033 7,146 -11.6% wall (3/3), step tie, -3.3% VRAM (3/3)
Actuator --eval fast 241.16 0.7004 7,184 +10.0s w/ Verdict; step tie, -2.8% VRAM (3/3)
unsloth/Qwen3-4B-Base LoRA (3 seeds, 252 layers) Unsloth 2026.11.9 180.72 0.6186 9,408 baseline
Actuator --no-eval 206.20 0.5140 9,230 -16.9% step (3/3), VRAM tie (-1.9%); warm seed 126.94s (-19.7%)
Actuator --eval fast 169.12 0.5359 9,430 -6.4% wall even w/ Verdict, -13.4% step, VRAM tie
unsloth/gpt-oss-20b-BF16 LoRA (1 seed, 144 layers) Unsloth 2026.11.9 533.07 1.5687 43,990 baseline
Actuator --no-eval 511.65 1.0902 44,238 -4.0% wall, -30.5% step, VRAM tie (+0.56%)
Actuator --eval fast 567.89 1.0253 44,162 +34.8s w/ Verdict on 20B MoE; -34.6% step, VRAM tie
Qwen/Qwen2.5-7B-Instruct DPO (3 seeds, 196 layers) Unsloth 2026.11.9 394.09 2.9597 16,830 baseline (faster per step)
Actuator --no-eval 370.11 3.3542 16,764 -6.1% wall (2/3), VRAM tie (-0.4%); +13.3% slower step
Actuator --eval fast 574.62 3.9659 17,132 +180.5s wall (in-process pair scoring + re-trace); VRAM tie (+1.8%)

2. ML-Native Closed-Loop Preservation (Qwen/Qwen2.5-7B-Instruct LoRA SFT)

Single-seed study (64 steps, default LoRA SFT on Alpaca, NVIDIA RTX PRO 6000 96 GB), evaluated after 16-bit merge on 256 held-out Alpaca prompts (NLL) and all 541 prompts of lm-eval 0.4.13 ifeval (deterministic greedy decoding):

Arm Flags Held-out Alpaca-256 NLL (ppl) 541-Prompt ifeval Change vs. Uncontrolled (Paired B/W, 2-sided p) Peak VRAM (MiB)
Untouched Base (none) 1.2424 (3.464) 0.7172 (388/541) baseline —
Uncontrolled SFT (none) 0.9690 (2.635; 256/0) 0.6359 (344/541) -8.13 pts vs. base (p = 1.55e-5) 16,602
Balanced Adaptive KL --preserve-kl 0.1 --adaptive-kl 0.15 0.9740 (2.649; 98.2% kept) 0.6784 (367/541) +4.25 pts (40/17, p = 0.0032, 95% CI [+1.54%, +6.96%]) 20,982
Tight Adaptive KL --preserve-kl 0.2 --adaptive-kl 0.05 1.0462 (2.847; 256/0 improved) 0.7153 (387/541) +7.95 pts (66/23, p = 5.69e-6; vs. base 28/29, p = 1.000) 20,982
Static KL (Ablation) --preserve-kl 0.2 0.9747 (2.650; 97.9% kept) 0.6636 (359/541) +2.77 pts (34/19, p = 0.053) 20,982
KL + Verbose Chat Replay --preserve-kl 0.2 --replay-mix <chat>:0.2 0.9736 (2.647; 98.3% kept) 0.6100 (330/541) -2.59 pts (34/48, p = 0.151; mismatched verbose replay hurt strict format compliance) 24,714

Measured trade-offs & limits: - Live-batch KL anchoring disables fused logitless CE and runs a no_grad() disable_adapter() reference pass, adding +4.3 GiB peak VRAM (16.6 → 21.0 GiB, still fitting on a 24 GB GPU) and +0.25–0.45 s/step. - Mixing out-of-distribution verbose chat replay reduced strict ifeval compliance (0.6100); pure live-batch Adaptive KL requires no external replay dataset and strictly outperformed static KL on both NLL and ifeval. - The lightweight 48-prompt --canary catches gross formatting/EOS collapse quickly, whereas subtle multi-constraint drift is best measured with actuator eval <model> --eval lm-eval:ifeval.


Install

Desktop App (Windows, macOS, Linux)

Download native Tauri 2 installers directly from this release (Actuator_0.2.0_x64-setup.exe for Windows, Actuator_0.2.0_aarch64.dmg / .app.tar.gz for Apple Silicon macOS, Actuator_0.2.0_amd64.deb / .AppImage for Linux, plus checksums-sha256.txt).

Python (pip / uv / guided installer)

# NVIDIA GPU (Linux / WSL2)
pip install "actuator[cuda,app] @ git+https://github.com/IluvatarLabs/actuator.git"

# Apple Silicon Mac (native MLX)
pip install "actuator[mlx,app] @ git+https://github.com/IluvatarLabs/actuator.git"

# Or guided hardware-detected install from source
git clone https://github.com/IluvatarLabs/actuator.git
cd actuator
sh scripts/install.sh --source .
actuator-env/bin/actuator ui

See the Quickstart, Desktop & Web UI Guide, and the live documentation site at iluvatarlabs.com/actuator.


Platform Status & Known Limits

  • Linux with NVIDIA GPUs: Primary verified platform (single-GPU and multi-GPU CUDA 12.x / 13.x, SFT, DPO, GRPO, in-process Verdict, FastAPI + SSE server, and GGUF export).
  • Native Desktop Installers (Windows, macOS, Linux): Built and verified in GitHub Actions across windows-latest (.exe), macos-latest (.dmg / .app.tar.gz), and ubuntu-22.04 (.deb / .AppImage). Installers are currently unsigned (standard OS first-launch prompt applies).
  • Apple Silicon MLX (mlx) and AMD ROCm: Code and installer routing are included; end-to-end hardware training benchmarks on Apple Silicon and AMD ROCm GPUs are pending hardware validation.
  • DPO fast-eval and step overhead: Qwen/Qwen2.5-7B-Instruct DPO --no-eval beats Unsloth on end-to-end wall-clock (-6.1%) and ties VRAM, while steady step (+13.3%) and --eval fast DPO scoring overhead (+180.5s) are tracked for optimization.
  • Offline / deterministic runs: Training does not reproduce bit-for-bit by default (full_determinism is off). For release certification of serialized weights, run with --eval strict --strict-gate.