Wild · Base-Model (Non-Instruction-Tuned) Failure Modes · Repetition & Cutoff Stress Lab · Apache-2.0

Base-Model Failure Modes & Degeneration Lab: Probing 6-Layer Limits

Unlike chat-tuned assistants, distilbert/distilgpt2 (Xenova/distilgpt2, 84.91 MB ONNX / 87.02 MB WASM q8) is a 2019 OpenWebText base model with zero RLHF or instruction tuning. Probe five classic causal failure modes live on-device: greedy repetition loops, instruction drift, code/JSON closure failure, temporal cutoff hallucinations, and high-temperature chaos.

1. Interactive Base-Model Stress Probes

Select a failure-mode probe (loads its exact adversarial prompt & decoding settings):

With greedy decoding (T=0) and repetition_penalty=1.0, a repeated prefix locks the 6-layer decoder into a verbatim loop.
Unique word ratio–
Repeated 3-gram %–
Loop detected–
Latency / NaN–

Probe Output

Ready
Initialise DistilGPT-2 above to run the selected stress probe.

2. All-5 Failure Mode Comparison Table

Live DistilGPT-2 outputs and repetition metrics across all 5 stress probes
Failure Mode Settings Live Continuation Unique / Repeat 3-gram Latency
Press Run All 5 Stress Probes above to compare every failure mode side by side.

3. Inspect Repetition & BPE Classification Source

Show the code — distilgpt2-core.mjs analyzeRepetition() 3-gram loop detector
Show the code — distilgpt2-core.mjs classifyBpePieces() Ġ whitespace & subword classifier