Skip to content

Wild · text-generation · robustness · CPU WASM int8 · 368.5 MB · onnx-community/MNN-Pocket-0.3B-ONNX

Edge stress suite — where does a 0.3B model stay faithful?

Four hostile regimes an on-device assistant actually meets: a minified log stream full of noise, a command that is genuinely ambiguous, a two-hop question salted with distractors, and a needle buried in ~2,000 characters. Every run is graded deterministically for valid JSON, schema and faithfulness — no model grading the model.

Run the suite

The model initialises above (auto when cached).

Show the code

Prefill ablation: untick “JSON prefill” and re-run to see how often the bare model drifts into prose instead of JSON.

mnn-core.mjs buildNeedleHaystack(): deterministic ~2k-char haystack with one needle
mnn-core.mjs evaluateWildRegime(): valid JSON + schema + faithfulness check