fill-mask · 85.08 MB WASM q8 · 6-Layer RobertaForMaskedLM (82M) · Apache-2.0

DistilRoBERTa Base — Fast Cased Byte-Level BPE Cloze

distilbert/distilroberta-base (served via Xenova/distilroberta-base , Apache-2.0) is a 6-layer distilled RoBERTa encoder (82M params vs 125M in RoBERTa-base, ~2× faster; 82.97 MB q8 ONNX + 2.11 MB tokenizer + configs = 85.08 MB WASM download) using a case-sensitive 50,265-token byte-level BPE vocabulary (<mask> ID 50264) right in your browser.

Upstream Model distilbert/distilroberta-base
ONNX Artifact Xenova/distilroberta-base
Pipeline Task fill-mask (RobertaForMaskedLM)
Size & Quant 85.08 MB · WASM q8 (82.97 MB ONNX + 2.11 MB tok)
Vocab & Mask 50,265 Byte-Level BPE · <mask> (50264)
License & Depth Apache-2.0 · 6 layers · 12 heads · 82M · 512 tokens
Byte-Level BPE with Ġ Word Boundaries: Unlike BERT WordPiece ([MASK] and ## suffixes), DistilRoBERTa uses <mask> (ID 50264), preserves capitalization (English ≠ english), and encodes leading whitespace on word-initial tokens as Ġ inside a 50,265-token byte-level BPE table with 512 content tokens (max_position_embeddings: 514).

1. English <mask> Cloze Completion Workbench

Pick a preset, drag & drop or paste (Ctrl/Cmd+V) a sentence, or type your own single-<mask> English prompt:

Drop a .txt, .md, .csv, or .json file here, or press Ctrl/Cmd+V outside editable inputs. Use <mask> exactly once on this workbench (use the Wild Lab tab above for multi-mask sentences).
Initialize the model above to fill <mask> locally.
Inference latency–
Top-1 prediction–
Full-vocab entropy–
Top-K mass / Share–
BPE / Cont / UNK–
NaN score check–
Backend / dtypeWASM · q8

Top-K Candidates & Raw Logits (Click to Preview)

Awaiting live inference…

Byte-Level BPE (Ġ) Token Chip Breakdown

Solid border = Ġ space-prefixed word start; dashed = continuation / punctuation; highlighted = <mask> (50264); muted = <s>/</s>.

Run inference to inspect byte-level BPE tokens.

2. Why DistilRoBERTa Matters & How It Runs

distilbert/distilroberta-base distills RoBERTa-base from 12 layers (125M params) down to 6 layers (82M params, 85.08 MB quantized WASM) on OpenWebTextCorpus while keeping the full 50,265-token byte-level BPE vocabulary. It is ideal for fast in-browser copyedit cloze, autocomplete ranking, and lightweight downstream classifiers without shipping server requests.

import { pipeline } from "https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.7.5";

const unmask = await pipeline("fill-mask", "Xenova/distilroberta-base", {
  device: "wasm",
  dtype: "q8",
});
const out = await unmask("The goal of life is <mask>.", { top_k: 8 });
Show the code · worker.js — runSingleFill() (85.08 MB q8 WASM worker)
Show the code · distilroberta-core.mjs — computeDistributionMetrics() (entropy & NaN check)

3. References & Model Provenance