Skip to content

LatchGate v0.1.0

Choose a tag to compare

@danielgaskins danielgaskins released this 27 Nov 18:58
· 4 commits to main since this release

Initial release of LatchGate (v0.1.0), a zero-decode circuit-breaker compiler and runtime for open-weights LLMs, long-horizon video DiTs, and embodied action-conditioned world models.

Highlights

  • Adaptive Two-Tier Compilation (latchgate fit): Measures the 57.1%-depth superposition gap via cross-validation, compiling a lightweight dense_latch (< 1 MB) when linear separability holds (Gemma-2-9B-IT, Qwen2.5-7B-Instruct) or a standardized 16,384-latent sae_anchor_latch when 3D spacetime or edge superposition collapses dense probes (LTX-Video-0.9.5, Cosmos-Predict2.5-2B, Cosmos-Policy-LIBERO).
  • Fast Task Calibration (--base-sae) and Confounder-Reweighted Training (latchgate train-sae): Calibrates confounder-penalized subspaces and conformal zero-FPR thresholds on frozen base SAEs in seconds without dictionary retraining, and provides single-GPU JumpReLU SAE training with buffer-replay saturation sizing and variance/confounder-reweighted MSE.
  • Zero-Compile Pure-PyTorch Runtimes: Drop-in interceptors for Hugging Face Transformers, vLLM, and SGLang (monitor, early_abort, and latched_steer across <think> and TOOL_CALL:), plus Diffusers and Cosmos zero-decode step callbacks (CosmosLatchFirewall, DiffusersLatchCallback, and shield_value_critic).
  • Mendmark CI-to-Runtime Bridge: Consumes latchgate.pair.v1 counterfactual JSONL pairs exported directly from mendmark export-latchgate (mendmark-evals >= 0.7.2).

Pre-Built .lgate Packs Attached to This Release

All six .lgate (safetensors) artifacts are verified automatically by LatchGate.from_pretrained("<pack_id>") using embedded SHA-256 digests:

Pack File SHA-256
gemma-2-9b-sabotage gemma-2-9b-sabotage.lgate c9c054b26d4d116ade84f5a0120317ac8577e48fa5225a0bf769c4ef68a75a74
qwen2.5-7b-sabotage qwen2.5-7b-sabotage.lgate 71194a9d85d9705d2696777dac84183730be72b6b55f1f879bc2118bbd3365d6
gemma-2-2b-sabotage gemma-2-2b-sabotage.lgate 445cce94ad0a9a8057d9318411fbcc578d24f8d00ad32d46cc9c3c02b3578a80
ltx-video-0.9.5-drift ltx-video-0.9.5-drift.lgate e13edb6ae4dd208097c0a569c5d8fcb476bf87fb7acf4686320c49cc46fd1880
cosmos-predict2.5-bridge cosmos-predict2.5-bridge.lgate ce0302d456294366fc04edb27dee4a0cbd2e52c8f8b7c0508f500657c5399894
cosmos-policy-libero cosmos-policy-libero.lgate eced437a7dbe05247ef48ee9d437ca69480f6c3aaaea1b46250374f5c97d1417