text-generation · ModernBertDecoderForCausalLM · WebGPU q4f16 (144.31 MB) / CPU WASM q4 (230.82 MB) · MIT

Ettin-Decoder-150M — Causal ModernBERT Decoder

JHU CLSP's Ettin-Decoder-150M is the catalogue's first causal ModernBERT decoder: a 22-layer autoregressive language model built on ModernBERT's alternating global/sliding-window RoPE architecture and trained on the exact same 2-trillion-token open data recipe and 50,368-token vocabulary as its paired bidirectional Ettin-Encoder twins. Stream completions and inspect exact next-token logits and Shannon entropy 100% locally in your browser.

Pretrained base model (not chat-tuned): jhu-clsp/ettin-decoder-150m was trained strictly for left-to-right text continuation without instruction or ChatML tuning. Prompts are sent verbatim (no hidden chat wrappers) — give it a natural prefix, a code stub, or plain Q: / A: few-shot examples.

At a glance

Verified model metadata from Hugging Face config.json and ONNX blob inspection
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

Probing browser WebGPU + shader-f16 capabilities…

Initialise Ettin-Decoder-150M above, then complete a prefix or inspect the next-token distribution.

The verbatim prefix and streamed model continuation appear here.
Backend–
Prompt Tokens–
Generated–
TTFT–
Throughput–
Next-Token Entropy–

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