1. Long-context truncation blind-spot experiment
Full ALiBi ranking (up to 4,096 WASM tok)
Run comparison to rank all 4 handbooks with ALiBi.
Truncated 512-token ranking
Run comparison to see what disappears past 512 tokens.
Exact tokenizer cutoff inside the target document
2. Live token scaling lab (128 → 256 → 512 → 1024 → 2048 tokens)
ALiBi requires zero learned positional embeddings, so the same 32.77 MB weights evaluate any sequence length.
In live Chrome CPU WASM q8, sequences up to 4,096 tokens run cleanly (~69 ms @ 128 tok → ~6,059 ms @ 4,096 tok),
whereas 6,144 and 8,192 tokens exceed the single-thread WASM heap (ORT error 75016480), so our worker
enforces a safe 4,096-token browser ceiling.
Measured latency curve
Per-length diagnostics
| Target | Exact tok | Latency | Tok/s | L2 norm | NaN |
|---|---|---|---|---|---|
| Click "Run live 128 → 2048 token sweep" above to benchmark on this device. | |||||