At a glance
| Upstream model | jhu-clsp/ettin-decoder-150m (MIT · Weller et al., JHU CLSP 2025) |
|---|---|
| Browser ONNX repo | onnx-community/ettin-decoder-150m-ONNX |
| Task & architecture |
text-generation · ModernBertDecoderForCausalLM
(modernbert-decoder, 22 layers: 8 full + 14 sliding w=64,
768 hidden, 12 heads, GeGLU, RoPE 160k, 50,368 vocab, 7,999 max context)
|
| Backend & dtype |
WebGPU q4f16 (144.31 MB: 0.22 + 141.96 + 2.13 MB tokenizer, gated on shader-f16) ·
CPU WASM q4 (230.82 MB: 0.22 + 228.47 + 2.13 MB tokenizer, universal fallback)
|
| Runtime |
Transformers.js @huggingface/transformers@4.3.0 pinned locally in
worker.js (isolated version escape hatch; runs off-main-thread)
|
| Paired multi-model twin |
onnx-community/ettin-encoder-32m-ONNX
(jhu-clsp/ettin-encoder-32m, MIT, 38.81 MB WASM q8) — same 50,368 vocab & 2T corpus on the Multi-model rung
|
1. Interactive Prefix-Completion Workbench
Initialise Ettin-Decoder-150M above, then complete a prefix or inspect the next-token distribution.
2. See Inside — Exact Logits, Tokenization & Layer Topology
Every click of Inspect Next-Token Top-12 runs one real forward pass
model(inputs) over the full 50,368-token ModernBERT BPE
vocabulary, computing exact softmax probabilities and full-vocabulary Shannon entropy
H = −Σ pi log2 pi in bits right inside the worker.
Next-Token Top-12 Distribution
Waiting for forward pass…
Prompt Tokenization (ModernBERT BPE)
Notice [CLS] (ID 50281) acts as BOS and word-initial tokens carry leading spaces (␣).
22-Layer Alternating RoPE Topology
G = Full Causal Attention (8 layers: 0, 3, 6, 9, 12, 15, 18, 21) ·
S = Sliding-Window Causal Attention w=64 (14 layers).
Explore the Ettin-Decoder-150M Use-Case Ladder
Basics · Decoding & Entropy Lab
Compare Greedy vs Nucleus sampling side-by-side and step through generation one token at a time while watching live probabilities & entropy.
Practical · Few-Shot Classifier Studio
Toggle 0-shot vs 2-shot vs 4-shot conditioning across Sentiment, Topic, Capitals, and Units with batch confidence margins & CSV/JSON export.
Wild · Interactive Token-Tree Explorer
Steer a branching probability tree by clicking any of the top-6 next tokens at each layer, tracking cumulative log-probability and perplexity.
Multi-model · Decoder vs Encoder Twin
Pit Ettin-Decoder-150M (left context only) head-to-head against Ettin-Encoder-32M (left + right context) to measure exact bits of right-context information gain.