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 (0 generated tokens), it outputs calibrated Yes/No probabilities, category Choices, and Severity scores 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.6B local models secretly eat 14.3 GiB of KV RAM when stretched to a 128K window and freeze a 16 GB laptop on one chat. Warden-S1 holds 10 concurrent long-context sessions at once in 858 MiB on your laptop (or 461 MiB inside Chrome), beats commercial Cloud Jev (96.1% vs 84.9% accuracy), admits "I don't know" at 0.50 instead 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's 128K window keeps tracking even when your main coding agent's session grows past 500K+ 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,765 bytes across sharded artifacts)
  • Browser-safe sharding: 6 external weight shards, largest shard 91.97 MiB (strictly <= 100 MiB for browser Cache API / WebGPU buffer compatibility)
  • Quantization: 150 MatMulNBits symmetric 4-bit projections (block size 32), packed uint4 gather embeddings, FP32 recurrent DeltaNet gates and FP32 five-head verifier (noul, choice, score, locus, salience)
  • Opset & WebGPU safety: ONNX opset 17, 0 control-flow ops (Loop / If / Scan), 0 PyTorch 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.bin
  • warden_s1_backbone.onnx + warden_s1_backbone.shard_00.bin .. shard_03.bin
  • warden_s1_heads.onnx
  • config.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
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for DevMortimer/Warden-S1-752M-ONNX-Int4

Quantized
(2)
this model

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