Multi-model · ESM-2 8M (8.06 MB q8 · MIT) → ESM-2 150M (151.64 MB q8 · MIT) · 159.70 MB Combined

8M → 150M Scaling Comparator: Mutant Log-Odds & Calibration

Run the exact same protein residue and substitution side-by-side through two independent Web Workers (159.70 MB combined WASM q8): Stage 1 facebook/esm2_t6_8M_UR50D (Xenova/esm2_t6_8M_UR50D, 8.06 MB, 6 layers / 320 hidden, reusing ../esm-protein/worker.js) vs Stage 2 facebook/esm2_t30_150M_UR50D (Xenova/esm2_t30_150M_UR50D, 151.64 MB, 30 layers / 640 hidden, MIT) to measure mutant LLR divergence, KL divergence, and calibration sharpening.

Why Compare 6-Layer 8M vs 30-Layer 150M Side-by-Side? Both models share the same 33-token ESM-2 alphabet and UniRef50/D training objective, yet scaling 18× in parameters and 5× in transformer depth sharpens confidence on buried active sites, disulfide bridges, and pathogenic substitutions like Hemoglobin β E6V.

1. Two Independent On-Device ESM-2 Models (159.70 MB Combined)

Stage 1 · ESM-2 t6 8M (8.06 MB WASM q8)

Xenova/esm2_t6_8M_UR50D · 6 layers · 320 hidden · MIT (reuses ../esm-protein/worker.js)

Stage 2 · ESM-2 t30 150M (151.64 MB WASM q8)

Xenova/esm2_t30_150M_UR50D · 30 layers · 640 hidden · MIT

2. Side-by-Side Mutant Log-Odds & Calibration Workbench

Select a clinical or structural variant preset, or pick any residue and mutant amino acid below.

Initialize both stages above to compare 8M vs 150M mutant log-odds calibration.

Variant · 8M LLR–
150M LLR · ΔLLR–
P(WT) 8M → 150M–
Entropy H (8M → 150M)–
KL(150M || 8M) · Spearman ρ–
S1 / S2 ms · NaN–

LLR Parity Scatter (8M vs 150M Across 20 AAs)

Calibration Summary

Run both stages to inspect how 30-layer 150M recalibrates probability mass and mutant log-odds relative to 6-layer 8M.

20-amino-acid probability and LLR comparison between ESM-2 8M and ESM-2 150M
AA 8M / 150M Prob 8M LLR 150M LLR ΔLLR
Awaiting Stage 1 & Stage 2 inference…

3. Inspect Reused Stage 1 Client & Calibration Math

Show the code · esm2-150m-client.js — Esm28mStage1Client (reusing ../esm-protein/worker.js)
Show the code · esm2-150m-core.mjs — computeCapacityComparison()