Warden-S1-752M-ONNX-Int4 (Zero-PyTorch Cross-Platform & Browser WebGPU)
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.
Cross-platform sharded 4-bit ONNX Runtime build of Warden-S1-752M, designed for Linux, Windows, Intel macOS, onnxruntime-node CI workers, CUDA GPUs, and in-browser onnxruntime-web (WebGPU with automatic WASM fallback). 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).
Package Specification
- Total size:
461.3 MiB(483,716,765bytes across sharded artifacts) - Browser-safe sharding:
6external weight shards, largest shard91.97 MiB(strictly<= 100 MiBfor browser Cache API / WebGPU buffer compatibility) - Quantization:
150MatMulNBitssymmetric 4-bit projections (block size32), packed uint4 gather embeddings, FP32 recurrent DeltaNet gates and FP32 five-head verifier (noul,choice,score,locus,salience) - Opset & WebGPU safety: ONNX opset
17,0control-flow ops (Loop/If/Scan),0PyTorch runtime dependency
Verified Parity & O(Delta L) State Equivalence
| Verification Gate | Measured Result | Status |
|---|---|---|
| 24-layer FP32 ONNX vs. PyTorch max abs diff | 1.28e-5 |
PASS |
| Held-out 36-state parity Noul AUROC | 0.9923 |
PASS (>= 0.980) |
| Overall mean probability delta vs. BF16 | 0.01226 (0.01626 Noul delta) |
PASS (< 0.025) |
| Choice exact agreement / Salience AUROC / Abstention overconf. | 1.0000 / 1.0000 / 0.0% |
PASS |
O(Delta L) split-prefix equivalence (Node CPU, 117 + 75 tok) |
`max | Delta hidden |
O(Delta L) split-prefix equivalence (CUDA, 117 + 75 tok) |
**`max | Delta prob |
Sharded Artifacts
warden_s1_embed.onnx+warden_s1_embed.shard_00.bin..shard_01.binwarden_s1_backbone.onnx+warden_s1_backbone.shard_00.bin..shard_03.binwarden_s1_heads.onnxconfig.json,calibration.json,tokenizer.json,onnx_manifest.json
Browser & Node Usage
Run directly in any WebGPU/WASM browser via the interactive studio at https://ryanjoshuagapac.com/writing/warden-s1 (warden_s1_web.js), or in Node/CI with onnxruntime-node (zero Python or PyTorch required).
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
- -