Skip to content

0.12.0

Choose a tag to compare

@strot-ai strot-ai released this 13 Nov 07:20
· 70 commits to main since this release

What's new in 0.12.0

Opt-in compile-time fine-tune tier (JIT Tuning). When optimize=True and an accuracy or risk target is set, and the frozen tier misses it on the real measure fold, the compiler fine-tunes once at compile time — cached-lower + top-N LoRA on ModernBERT, with a small diverse-adapter ensemble averaged at inference. It never retrains at runtime and never loops; without a target optimize=True is a no-op and the frozen battery ships. reuse_adapter= adopts a prebuilt adapter and skips training. Needs the [finetune] extra.

Dispatch by default; abstention is opt-in. With no target set, the runtime dispatches every record with a calibrated confidence and never hard-abstains. Set target_risk (split conformal) or target_accuracy (empirical dispatch cutoff) to abstain below the bar; abstained records come back in result.fallbacks.

PII masking at the teacher boundary. Records are masked before the compile-time LLM teacher sees them. GLiNER is the default masker for names, addresses, and orgs (via the [pii] extra), with a regex pre-pass for format-defined tokens. Without [pii] it falls back to regex-only with a warning. Compile-time only; the runtime stays mask-free.

Batteries. The compiled artifact is now written as battery_<task>_<hash>.py, the slug from a new name= on run()/decide() or derived from the query.

Battery distribution. Export a battery as a data bundle (battery.json + weights.safetensors) with export_bundle(), and load it back with load(). load(), list_batteries(), and battery_info() resolve a bare name from a Hugging Face dataset repo (default strot-ai/batteries, overridable via repo= / STROT_BATTERY_REPO) or a local path.

CI now tests on Python 3.9, 3.15, and 3.15t.