text-generation Β· fully-open chat LLM Β· WebLLM (MLC) Β· WebGPU Β· ~845 MB
Almost every "open" LLM you can name is open weights only: you get the finished model and nothing about how it was made. OLMo-2, from Ai2 (the Allen Institute for AI), is different β it's fully open. The training data (Dolma / Dolmino), the training code (OLMo-core), every intermediate checkpoint, and the training logs are all published under Apache-2.0. It's a reproducible recipe, not a black box. This page runs the 1B Instruct build entirely in your browser on MLC's WebLLM engine: streaming tokens, sampling controls, a real system prompt, nothing uploaded and no API bill. WebGPU only β an ~845 MB download, cached after first load.
| Model | allenai/OLMo-2-0425-1B-Instruct |
|---|---|
| MLC build | OLMo-2-0425-1B-Instruct-q4f16_1-MLC |
| Runtime | WebLLM / MLC β not Transformers.js. Weights are precompiled to WebGPU shaders. |
| Task | text-generation (instruction-tuned chat) |
| Params / dtype | 1B Β· q4f16_1 (4-bit weights, fp16 compute) |
| Openness | Fully open β weights + training data + training code + checkpoints + logs (most "open" models ship weights only) |
| Chat template | Real system role (system / user / assistant), no folding needed |
| Backend | WebGPU only β no WASM fallback. Gated on a real GPU adapter. ~1.8 GB GPU memory. |
| Download | ~845 MB, cached after first load |
| Context window | 4096 tokens (MLC build cap) |
| License | Apache 2.0 |
| Web APIs | WebGPU, Web Workers, ES module imports |
How it differs from the other chat pages: OLMo-2 is the catalogue's only fully-open model β a distinct Ai2 OLMo architecture whose entire training recipe is public, separate from the open-weights Gemma-family (Gemma 3 1B), Qwen (Qwen3 1.7B), Mistral (Mistral 7B) and Llama-family models. Same job β a private, on-device chat β but the one you could rebuild from scratch.
Heads up: loading transfers ~845 MB the first time (then it's cached). Best on a GPU with β₯2 GB of memory.
Two things are worth seeing. First, the live decode: time-to-first-token is the prefill cost, and everything after is the decode loop β WebLLM reuses a KV cache across turns, so follow-ups are cheaper. Second, and unique to OLMo-2, the openness ledger: what a "fully open" release actually contains versus the open-weights norm. You can inspect the exact messages array sent to the model, too β no hidden prompt.
A static, factual comparison of what the two release models publish β not model output. Sources linked in References.
Send a message to see the messages array that WebLLM receives.
For most products the practical win of a local LLM is the same regardless of provenance: private, free-to-run, offline-capable chat with no server or API bill. But a fully open model unlocks things an open-weights model can't β because you can see and change how it was built.
A clean streaming chat β the fundamental loop, with example prompts.
Structured extraction: pull strict JSON fields out of messy text, on-device.
Temperature explorer β run the SAME prompt at low vs high temperature, side by side.
RAG: MiniLM retrieves from a pasted doc, OLMo-2 answers grounded in the passages.
WebLLM gives you an OpenAI-shaped chat API backed by a WebGPU engine. You create the engine
(which downloads and compiles the weights), then stream a completion. OLMo-2 Instruct has a real
system role, so no folding is needed β you pass system / user / assistant turns
directly:
import { webGPUAdapterAvailable, createEngine }
from "/lib/webllm.js";
// WebLLM is WebGPU-only β gate before doing anything (headless requestAdapter() β null).
if (!(await webGPUAdapterAvailable())) {
showNeedsWebGPU(); // never a faked reply
} else {
const engine = await createEngine({
model: "OLMo-2-0425-1B-Instruct-q4f16_1-MLC",
onProgress: (p) => setProgress(p.text, p.progress), // ~845 MB, cached after first load
});
const messages = [
{ role: "system", content: "You are a concise assistant." },
{ role: "user", content: "Explain what makes OLMo-2 'fully open'." },
];
const stream = await engine.chat.completions.create({
messages, temperature: 0.7, top_p: 0.9, max_tokens: 512, stream: true,
});
for await (const chunk of stream) {
const d = chunk.choices[0].delta;
if (d.content) appendAnswer(d.content); // stream the answer token by token
}
// engine.interruptGenerate() stops decoding early; engine.runtimeStatsText() reports tok/s.
}
Everything here runs exactly that path in worker.js (off the main thread), and gates
on a real WebGPU adapter first. No adapter β a labelled needs-WebGPU state, never a canned answer.