Actuator v0.2.1

Actuator 0.2.1 introduces the actuator-train PyPI distribution name, closes the DPO steady-step and --eval fast performance gaps with model-agnostic Triton and PEFT fast-path optimizations, and delivers a hardened Cupertino Glass Studio UI and cross-platform Tauri 2 desktop app.


Highlights

1. PyPI Distribution Rename: actuator-train

  • Renamed the Python package distribution to actuator-train (avoiding a PyPI namespace collision with an unrelated robotics package named actuator).
  • The Python import (import actuator), CLI command (actuator), and GitHub repository (IluvatarLabs/actuator) are unchanged.
  • Added actuator --version / -V and tightened the source distribution (sdist) to a self-contained ~1 MB package.

2. DPO & In-Process Fast-Eval Optimizations (Model-Agnostic)

  • Single-pass Triton NLL & lean reference pass: Added COMPUTE_GRAD / COMPUTE_ENTROPY specializations to Actuator's Triton cross_entropy_rows kernel and exposed fused_token_nll(...) for single-pass, no-grad scoring — skipping full-vocab backward/entropy work on DPO reference forwards and compacting completion tokens during in-process evaluation (with cached trial probe and clean Liger/unfused fallbacks).
  • Zero-walk adapter toggling & deferred GPU metrics: Cached flat PEFT tuner and auxiliary wrapper layers (BaseTunerLayer, AuxiliaryTrainingWrapper) for O(adapters) reference toggling with strict safety checks (BaseTuner, active_adapters, bias == "none", unmerged), deferred all DPO training metrics as GPU scalars into a single CUDA float64 flush per log interval (preserving MPS/CPU compatibility), and bypassed redundant gradient-checkpointing walks when Actuator's offloaded checkpoint hook already handles torch.no_grad().
  • Double-buffered activation staging & attention hints: Replaced per-layer torch.empty allocations during offloaded checkpoint backward with a 2-slot double-buffered CUDA staging pool (released cleanly at the end of training), and pre-computed version-checked CPU right-padding hints to eliminate per-micro-batch GPU .any() syncs while enabling FlashAttention2 causal scoring during right-padded evaluation.
  • Batched greedy sanity decode & allocator cleanup: Batched small greedy EOS/repetition sanity sets into a single decode pass (with automatic OOM backoff to the configured batch size) and released unused evaluation cache memory before training starts.

Measured Impact on NVIDIA RTX 3090 (24 GB, 64 Steps, Single GPU Process)

Measured on a single NVIDIA GeForce RTX 3090 (24 GB) against Unsloth 2026.11.9 at 64 steps with matched hyperparameters, datasets (UltraFeedback for DPO, Alpaca for SFT), and identical adapted LoRA layer counts verified from saved safetensors:

Workload Arm Wall (s) Eval (s) Steady Step (s) Peak VRAM (MiB)
Qwen/Qwen2.5-7B-Instruct DPO (196 layers, seed 0 / seed 1) Unsloth 2026.11.9 (--no-eval) 571.0 / 548.2 — 5.888 / 5.693 16,406 / 16,402
Actuator 0.2.1 --no-eval 516.5 / 515.4 — 5.872 / 5.672 16,260 / 16,234
Actuator 0.2.1 --eval fast (51-pair Verdict + 5 greedy EOS checks) 549.9 / 547.3 35.4 / 35.2 (-43.2%) 5.656 / 5.495 16,582 / 16,640
unsloth/Qwen3-4B-Base QLoRA SFT (252 layers, seed 0) Actuator 0.2.0 --eval fast 202.2 53.0 0.800 3,608
Actuator 0.2.1 --eval fast (200-row Verdict, 187/200 better) 178.2 (-11.9%) 39.2 (-25.9%) 0.801 (tie) 3,594

3. Actuator Studio & Cross-Platform Desktop App Hardening

  • Hardware-aware first-launch bootstrap & engine add-ons: First-launch desktop setup now installs a real training engine matching the host hardware (actuator-train[app,documents,mlx] on Apple Silicon macOS, actuator-train[app,documents,trl,cuda] when an NVIDIA GPU is detected, or actuator-train[app,documents,trl] fallback), performs non-destructive in-place version upgrades without wiping user add-ons, adds 1-click engine add-ons (mlx, cuda, trl) in Studio, and raises an actionable refusal when PyTorch is absent.
  • System tray, close-to-background & clean shutdown: Restored the system tray icon and background-training behavior on window close, added graceful SSE stream termination on server shutdown (<150 ms with zero leftover lockfiles), implemented stale/orphaned server recovery after Force Quit with 0600 private log/runtime files and secret redaction, and standardized on native data-tauri-drag-region.
  • Verdict truth & receipt verification everywhere: Server endpoints (/v0/jobs, /v0/projects, /v0/events, /v0/jobs/{id}/documents) now verify receipt signatures before surfacing outcomes (unverified on tampering, generation_warning on EOS/loop collapse). Studio reads true better / same / worse counts, suppresses untrusted stats on unverified receipts, shows explicit signed deltas and directional p-values, gates exports honestly without unconditional overrides, and expands the bundled Try Sample dataset to 36 rows so it always produces a real held-out Verdict.
  • Schema-valid settings, Markdown chat & accessibility: Fixed QLoRA (nf4/affine4), Inspector overrides (lora.r, lora.alpha, training.per_device_train_batch_size, rolling checkpoints), live Closed-Loop Controls (preserve_kl, adaptive_kl, replay_mix, early_stop), Documents-to-examples, Distill teacher, and RL environment payloads; removed placeholder estimates; added XSS-safe Markdown rendering, persistent per-run Chat threads, New Chat, Regenerate, toolbar Start Training (⌘↵), macOS keyboard hygiene, and WCAG AA contrast.

Install

Desktop App (Windows, macOS, Linux)

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

Python (pip / uv / guided installer)

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

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

# Once published on PyPI, you can also install directly by package name:
# pip install "actuator-train[cuda,app]"

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