facebook/opt-125m
Xenova/opt-125m
text-generation · OPTForCausalLM
1. Causal BPE Next-Token Streaming Workbench
q4 path:
OPT-125M runs
pipeline("text-generation", "Xenova/opt-125m", { device: "wasm", dtype: "q4" })
off the main thread via shared @huggingface/transformers@3.7.5.
(Note: the repo's q8/int8 126.66 MB graph fails in ONNX Runtime Web
at /decoder/layers.0/fc1/Gemm_MatMul_quant with a MatMul dimension mismatch,
so q4 406.08 MB is the verified runnable WASM build.)
Special tokens: </s> BOS/EOS/UNK (ID 2),
<pad> (ID 1), add_bos_token=true.
Choose an essay, research, code, story, or news prefix:
.txt, .md, .csv, .json, .jsonl)
File contents stay 100% on your device. Drag-and-drop or press Ctrl/Cmd+V outside text fields.
2. See Inside: 50,272-Vocab Next-Token Logits & OPT BPE Tokens
OPT-125M tokenizes text with a 50,272-entry byte-level BPE vocabulary (GPT-2 merges plus
RoBERTa-style </s> ID 2 prepended as BOS), where spaces
become Ġ (U+0120) and newlines become Ċ
(U+010A). Inspect live forward-pass logits, Shannon entropy H(P),
effective branching perplexity 2H, and token boundaries below.
Next-Token Candidate Probabilities
Entropy –Full 50,272-vocab Shannon entropy H(P) and branching factor 2^H will appear after a live forward pass.
Run a prompt above to inspect live logits from pipe.model(inputs).
BPE Whitespace (Ġ) & </s> Inspector
Ġ)
Subword continuation
Newline (Ċ)
Special (</s> ID 2)
Tokenization breakdown will appear after running OPT-125M.
</s> BOS, Ġ whitespace, and subword splits.
3. Why OPT-125M Matters · Use-Case Ladder & Source
Trained by Meta AI on 180B tokens (800 GB across BookCorpus, CC-Stories, The Pile, Reddit, and CCNewsV2) to enable open reproducible research into causal scaling, decoding traps, and bias/toxicity audits, OPT-125M pairs a 2,048-token context window with 12 Pre-LayerNorm ReLU decoder blocks. Explore all 4 downstream ladder routes:
Compare Greedy, Repetition-Penalty, Top-K, and Temperature sweeps plus entropy shift ΔH.
Practical · Batch Continuation StudioRun .txt, .md, .csv, .json, and .jsonl prompt batches off-thread with Cancel and OWASP exports.
Wild · Decoder Stress LabProbe greedy loops, penalty rescue, T=1.45 drift, few-shot patterns, JSON closure, and no-RLHF limits.
Multi-model · Topic & Risk NLI AuditChain OPT-125M with DeBERTa-v3 Zero-Shot NLI (87.25 MB) to audit topic, loop drift, and hallucination risk.