text2text-generation · text · WASM · ~98 MB
This is an encoder-decoder (FLAN-T5) model fine-tuned on one job: text simplification. It rewrites complex, jargon-laden or bureaucratic English into plainer words and simpler sentences — while preserving the meaning (unlike a summariser, which drops content). The whole input string is the sentence to simplify; the encoder reads it, the decoder writes the plain version one token at a time. Paste something dense and watch it get simpler — with a live before/after readability score and a word-level diff of exactly what changed. Nothing leaves your device.
This is the small (~80M) FLAN-T5 checkpoint, so calibrate expectations: it is good at swapping fancy words for plain ones and untangling sentences, but on very long or highly technical input it can be conservative or lightly paraphrase. The page shows you the real output, plainer or not — never a canned answer.
| Model | grazh/agentlans-flan-t5-small-simplifier-onnx-v2 (ONNX of agentlans/flan-t5-small-simplifier) |
|---|---|
| Task / pipeline | text2text-generation (sequence-to-sequence) |
| Architecture | FLAN-T5 encoder-decoder (small, ~80M params) — encoder reads the complex input, decoder writes the plain version |
| Training | Fine-tuned for text simplification / plain-language paraphrasing (base: google/flan-t5-small) |
| Decoding | Greedy (deterministic, faithful) — streamed token-by-token |
| Quantization | q8 (8-bit) ONNX — encoder + merged decoder |
| Backend | WebAssembly (runs anywhere; no WebGPU needed) |
| Download | ~98 MB, cached after first load |
| License | Apache-2.0 |
| Web APIs | WebAssembly, Web Workers — all Baseline widely available |
Type or paste complex text, or pick a sample. The model rewrites it in plainer language; the readability panel scores the before and after, and the diff highlights every word it removed (struck-through) or added (green).
There is no hidden prompt engineering and no task prefix. This is the literal string the
encoder received, split into the sub-word tokens it actually saw (T5 uses SentencePiece — a leading
· marks a word boundary). The decoder then rewrites the sentence from scratch; the
timeline is its real per-token cadence.
Exact input string fed to the encoder:
Input tokens (SentencePiece):
Per-token decode timeline (ms per token):
A private, offline plain-language rewriter that fits in a tab. No API key, no per-request bill, and the text never leaves the device — so it is safe for medical letters, legal notices, internal docs, and anything you would not paste into a cloud service.
Simplify one sentence and watch the reading-ease score jump — see what "plainer" means, measured.
A plain-language rewriter for accessibility: simplify a whole passage line by line with a running readability delta.
Throw dense legalese and academic abstracts at it and see how far a small model can untangle them.
Simplify → speak: rewrite in plain language, then read it aloud with MMS-TTS.
The whole task is the input string — no template, no instruction verb needed:
import { pipeline } from "@huggingface/transformers";
const simplify = await pipeline(
"text2text-generation",
"grazh/agentlans-flan-t5-small-simplifier-onnx-v2",
); // downloads + caches ~98 MB once
await simplify("The utilization of this methodology facilitates the amelioration of comprehension.");
// → [{ generated_text: "Using this method makes it easier to understand." }]
await simplify("Notwithstanding the foregoing, the lessee shall remit payment prior to occupancy.");
// → [{ generated_text: "The tenant must pay before moving in." }]
For the live token stream and the decode timeline, this page passes a TextStreamer so it
can timestamp each generated token — all inside a Web Worker so the UI never janks. The readability
scores (Flesch reading ease + Flesch–Kincaid grade) and the word-level diff are computed on the page
from the input and the model's output.