Instructions to use DevMortimer/Warden-S1-752M-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use DevMortimer/Warden-S1-752M-MLX-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download DevMortimer/Warden-S1-752M-MLX-4bit --local-dir Warden-S1-752M-MLX-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Warden-S1-752M-MLX-4bit (Apple Silicon, < 1 GiB @ 128K)
In plain English - what is Warden-S1 for? Most AI models are slow System-2 talkers. Warden-S1 is a local System-1 verification model with its own
128K-token context window and a twist: in one instant reflex pass (0generated tokens), it outputs calibratedYes/Noprobabilities, categoryChoices, andSeverityscores to guard long-running AI coding agents (catching secret leaks from poisoned GitHub issues 70,000 tokens back or fake "all tests pass" claims).Cloud System-1 judges crash past their
~33K-token ceiling (HTTP 400) and upload your private repo to a third-party API, while normal "small"0.6Blocal models secretly eat14.3 GiBof KV RAM when stretched to a128Kwindow and freeze a 16 GB laptop on one chat. Warden-S1 holds 10 concurrent long-context sessions at once in858 MiBon your laptop (or461 MiBinside Chrome), beats commercial CloudJev(96.1%vs84.9%accuracy), admits "I don't know" at0.50instead of bluffing, points straight to the exact guilty turn (locus,93%Top-1), and scores which old turns are safe to compact (salience,99.98%AUROC) so Warden-S1's128Kwindow keeps tracking even when your main coding agent's session grows past500K+tokens.
4-bit Apple Silicon MLX quantization of Warden-S1-752M (Stage 3.5), authored by Ryan Joshua Z. Gapac (ORCID 0009-0004-2591-0219, DOI 10.5281/zenodo.24494405, mail@ryanjoshuagapac.com, https://ryanjoshuagapac.com/writing/warden-s1).
Hardware Residency & Multiplexing (Apple M5 16 GB, mlx 0.32.4)
- Disk footprint:
415.5 MiB(415.4 MiBlive Metal weights + heads;404.3 MiBbase backbone) - Single-session live Metal residency (
mx.get_active_memory()):64Kcontext (Q8 KV):842.9 MiBsteady (831.1 MiBbase)128Kcontext (Q4 KV):867.4 MiBsteady (855.3 MiBbase)
- 10-session concurrent
64K-98Kmultiplexing (6 x 64KQ8 +2 x 80KQ4 +2 x 98KQ4):- Peak active Metal memory:
858.3 MiB(< 1,024 MiBceiling PASS) - Concurrent delta hits:
20/20(100%) with 2-token BPE boundary healing (22/22healed hits) - L2 host-RAM swap p50:
104.4 ms(22.5xfaster than2,344 msnumpy copy baseline) - L3 zstd cold wake at
98K:3.13xcompression (341.7 MiB -> 109.0 MiB,2/2delta hits)
- Peak active Metal memory:
O(Delta L)warm turn speedup (60Kcached +2Kdelta vs. cold62K):18.76x(1.59 svs.30.4 s)
Stage 3.5 Accuracy & Head-to-Head vs. Cloud Jev
| Evaluation Suite | Key Stage 3.5 Result |
|---|---|
Held-out WardenS1-Bench (4K-128K) |
0.9957 Noul AUROC (0.9947 @ 80K-128K), 0.8726 Choice F1, 0.8814 Score Spearman, 0.0175 ECE, 0.9115 CF Net, 0.9297 Locus Top-1, 0.9998 Salience AUROC, 0.0208 Abstention MAE |
BF16 vs. MLX-Q4 Val Parity (32 states) |
0.00271 overall mean prob delta, 0.0183 Noul delta, 0.9844 Locus Top-1 agreement |
100-Request Cloud Jev Head-to-Head (n=66 matched) |
0.9933 vs. 0.9449 Noul AUROC, 96.1% vs. 84.9% accuracy, 0.0270 vs. 0.0998 Brier, 0.0269 vs. 0.0734 ECE, 0.0% vs. 100.0% abstention overconfidence, 100/100 accepted to 117K tokens vs. 34% rejected past 33K, $0.00 cost |
OOD pi-warden judge-bench (80 cases) |
stuck accuracy 85.0%-87.5% (Brier 0.121-0.128), done recall 75.0%-80.0% |
OOD pi-warden rules-bench (161 cases) |
Recall@0.5 41.9% (7.75x Stage 2, 83.8% precision, 8.2% FPR); Recall@0.7 23.0% (85.0% precision, 4.1% FPR) |
Quickstart (Local TypeSafe Loopback Daemon)
pip install "warden-s1[mlx]"
warden-s1 serve \
--model DevMortimer/Warden-S1-752M-MLX-4bit \
--host 127.0.0.1 \
--port 8787
Point pi-warden, pi-typesafe, or @typesafe-ai/sdk to http://127.0.0.1:8787 (POST /v1/systemone, GET /v1/models, GET /health, GET /stats).
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}
}
License
Apache-2.0.
- Downloads last month
- -
4-bit