fill-mask · 18.01 MB WASM q8 · 3-Layer DeBERTa-v2 (32K Vocab) · Transformers.js 4.3.0 · CC BY-SA 4.0

DeBERTa-v2 Tiny Japanese IME — On-Device Japanese Cloze & Context Scorer

Predict masked Japanese words and rank finite IME kanji candidates 100% locally in 18.01 MB (q8 CPU WASM) with ku-nlp/deberta-v2-tiny-japanese (ONNX limoXD/deberta-v2-tiny-japanese-ime-web, CC BY-SA 4.0) and native browser Intl.Segmenter("ja") word spacing.

Japanese [MASK] & IME Candidate Workbench

Type natural unsegmented Japanese or drop/paste a .txt, .md, .csv, or .json file. Native Intl.Segmenter("ja") inserts Juman++-style word spaces while keeping [MASK] intact.
–
Initialize the 18.01 MB model above to predict Japanese [MASK] locally.
Inference latency–
Top-1 prediction–
Full-vocab entropy–
Top-K prob mass–
SentencePiece toks–
NaN score check–
Runtime / dtype4.3.0 · WASM q8

Top-K Vocab Predictions (Click to Preview)

Awaiting live inference…

Finite IME Candidate Context Ranking

Directly extracts raw [MASK] logits from the 32,000-vocab head and normalizes softmax across your finite candidate list.

Run prediction to score finite IME candidates.

SentencePiece 32K Subword Tokens

Run inference to inspect token IDs and boundaries.

At a glance & Architecture

Upstream Model ku-nlp/deberta-v2-tiny-japanese
ONNX Artifact limoXD/deberta-v2-tiny-japanese-ime-web
Pipeline Task fill-mask
Size & Quant 18.01 MB · WASM q8 (15.60 MB ONNX + 2.41 MB tok)
Architecture DebertaV2ForMaskedLM · 3 layers · 192-d · 3 heads
Vocab & Mask 32,000 SentencePiece · [MASK] (ID 4) · 512 ctx
Runtime Pin @huggingface/transformers@4.3.0 (worker-local)
License & Corpus CC BY-SA 4.0 · 171 GB JA (Wiki + CC-100 + OSCAR)
Why Transformers.js 4.3.0 Local Escape Hatch & Honest IME Scope: Shared 3.7.5 splits DeBERTa-v2 [MASK] decoding into leading-space subword fragments (e.g. " 制"). Pinning @huggingface/transformers@4.3.0 locally in worker.js cleanly decodes whole Japanese words (専攻, いい, ラーメン). Per the ONNX model card, this model scores masked tokens and finite candidate sets in context — it is not a standalone romaji-to-kanji transliterator.
import { pipeline } from "https://cdn.jsdelivr.net/npm/@huggingface/transformers@4.3.0";

const seg = new Intl.Segmenter("ja", { granularity: "word" });
const unmask = await pipeline("fill-mask", "limoXD/deberta-v2-tiny-japanese-ime-web", {
  device: "wasm",
  dtype: "q8",
});
const out = await unmask("京都 大学 で 自然 言語 処理 を [MASK] する 。", { top_k: 8 });
Show the code · worker.js — runSingleFill() (local 4.3.0 pin, 18.01 MB WASM q8)
Show the code · deberta-ja-core.mjs — segmentJapaneseWakati() (native Intl.Segmenter("ja"))