How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="DevMortimer/Warden-S1-752M")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("DevMortimer/Warden-S1-752M")
model = AutoModelForCausalLM.from_pretrained("DevMortimer/Warden-S1-752M", device_map="auto")
Quick Links

Warden-S1-752M (BF16 Reference)

What Warden-S1 Does

Most AI models think out loud by generating paragraphs of text. Warden-S1 is a small, local reflex model (752M params) with a 128K-token context window that scores long coding-agent transcripts in one forward pass (0 generated tokens):

  • Outputs calibrated Yes/No probabilities, category choices, and severity scores (and abstains at 0.50 when uncertain).
  • Pinpoints the exact guilty turn in a long trajectory (93% Top-1) and scores which old turns are safe to drop during compaction (0.9998 AUROC).
  • Built by stripping the unused vision tower and extra prediction heads from Qwen/Qwen3.5-0.8B (873M -> 752M, exact logit match), leaving 18 linear-recurrent layers + 6 attention layers.

Why local instead of cloud or a standard 0.6B model: Cloud guardrail APIs reject payloads past ~33K tokens and require shipping private code off-device, while a standard dense 0.6B transformer eats 14.3 GB of KV RAM at 128K context. Warden-S1 holds 10 concurrent 64K to 98K sessions in 858 MB on Apple Silicon (or 461 MB in Chrome WebGPU) and beats commercial Cloud Jev (96.1% vs 84.9% accuracy).

Write-up & Browser Demo: ryanjoshuagapac.com/writing/warden-s1 · Paper DOI: 10.5281/zenodo.24494405 · Dataset: DevMortimer/WardenS1-Bench

Benchmarks

Build Size Held-out AUROC (4K-128K) Calibration ECE Choice F1 Guilty Turn Top-1
Warden-S1-752M (BF16) 1,458 MB 0.9964 0.0126 0.8726 92.2%
Warden-S1-752M-MLX-4bit (Apple Silicon) 415.5 MB 0.9957 0.0175 0.8726 93.0%
Warden-S1-752M-ONNX-Int4 (Browser/CPU/CUDA) 461.3 MB 0.9923 0.0324 0.7846 91.7%
  • 100-request head-to-head vs Cloud Jev: 100/100 accepted up to 117K tokens (Jev returned HTTP 400 on 34% past 33K), 96.1% vs 84.9% accuracy, 0.027 vs 0.100 Brier score.
  • Out-of-distribution pi-warden static evals: 85.0% to 87.5% stuck-agent accuracy (judge-bench), 41.9% recall@0.5 at 83.8% precision (rules-bench).

Companion Builds

  • PyTorch BF16: DevMortimer/Warden-S1-752M
  • Apple Silicon MLX 4-bit (415.5 MB, < 1 GB for 10 sessions): DevMortimer/Warden-S1-752M-MLX-4bit
  • Zero-PyTorch Sharded ONNX-Int4 (461.3 MB, Browser WebGPU / Node / CPU / CUDA): DevMortimer/Warden-S1-752M-ONNX-Int4
  • Drop-in coding agent guardrail CLI: pi-warden (npm install -g pi-warden)

Citation

@techreport{gapac2026wardens1,
  title       = {Warden-S1: A Sub-1 GiB, 128K-Context Local System-One Verifier for Long-Horizon Coding Agents},
  author      = {Gapac, Ryan Joshua Z.},
  year        = {2026},
  month       = nov,
  institution = {Independent Research},
  doi         = {10.5281/zenodo.24494405},
  url         = {https://doi.org/10.5281/zenodo.24494405}
}
Downloads last month
61
Safetensors
Model size
0.8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for DevMortimer/Warden-S1-752M

Finetuned
(1,099)
this model
Quantizations
2 models

Dataset used to train DevMortimer/Warden-S1-752M