Wild · Cysteine Disulfides, Gly/Pro Turns, Non-Canonical <unk> & 1026-Cap · 151.64 MB WASM q8 · MIT

Protein Structural & Tokenization Edges: Disulfides, Turns, <unk> & Truncation

Stress-test facebook/esm2_t30_150M_UR50D (Xenova/esm2_t30_150M_UR50D, 151.64 MB WASM q8, MIT) across 8 biological and tokenizer boundary probes: disulfide-bridge cysteines, tight Gly/Pro backbone turns, non-canonical residues (U/X/O) vs <unk> (ID 3), and max_position_embeddings: 1026 truncation sensitivity.

Structural Constraints & Tokenizer Traps: ESM-2's 33-token vocabulary includes U (26, selenocysteine), O (28), and X (24), whereas unrecognized whitespace-delimited tokens like * or J collapse to <unk> (ID 3). Above 1024 residues (1026 tokens), trailing residues and masks are clipped unless windowed.

1. Live 8-Probe Structural & Tokenizer Stress Suite

Probes completed–
Disulfide / Turn WT fit–
<unk> (ID 3) detected–
Truncated (>1026 tok)–
NaN logit check–
Suite latency–

2. Cysteine / Non-Canonical / Truncation Perturbation Sandbox

Baseline (–)

Run comparison above.

Perturbed (–)

Run comparison above.

3. Inspect 33-Token <unk> Diagnostics & Truncation Parser

Show the code · esm2-150m-core.mjs — buildEsmTokenChips()
Show the code · esm2-150m-core.mjs — parseProteinInput()