Text Classification
Transformers
Safetensors
English
qwen3_5_text
text-generation
coding-agents
verification
long-context
gated-deltanet
calibration
Instructions to use DevMortimer/Warden-S1-752M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DevMortimer/Warden-S1-752M with Transformers:
# 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") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from DevMortimer/Warden-S1-752M: direct link, hf CLI and curl.
- Browser
- Download file 3.41 kB
-
https://huggingface.co/DevMortimer/Warden-S1-752M/resolve/main/README.md
- Command line
-
hf download hf://DevMortimer/Warden-S1-752M/README.md
-
curl -L -o README.md https://huggingface.co/DevMortimer/Warden-S1-752M/resolve/main/README.md
3.41 kB
| license: apache-2.0 | |
| language: | |
| - en | |
| library_name: transformers | |
| pipeline_tag: text-classification | |
| base_model: Qwen/Qwen3.5-0.8B | |
| tags: | |
| - coding-agents | |
| - verification | |
| - long-context | |
| - gated-deltanet | |
| - calibration | |
| datasets: | |
| - DevMortimer/WardenS1-Bench | |
| # 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](https://ryanjoshuagapac.com/writing/warden-s1) · **Paper DOI:** [10.5281/zenodo.24494405](https://doi.org/10.5281/zenodo.24494405) · **Dataset:** [DevMortimer/WardenS1-Bench](https://huggingface.co/datasets/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`](https://github.com/DevMortimer/pi-warden) (`npm install -g pi-warden`) | |
| ## Citation | |
| ```bibtex | |
| @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} | |
| } | |
| ``` | |