Multi-model · ByT5 + MiniLM · WASM
Two small models in a row, entirely in the tab. ByT5 reads a masked sentence at the
byte level — so a name in any script or a stray emoji never trips it — and fills the
[BLANK]. Then MiniLM embeds the
completed sentence and every candidate intent, and cosine similarity picks the closest. A byte
generator with no vocabulary feeding a sub-word embedder — two tokenization worlds, one pipeline.
Pick a masked message (or edit it — keep the [BLANK]):
Step 1 · ByT5 filled the blank (byte-level):
Step 2 · MiniLM ranked the intents by cosine similarity to the completed message:
Byte-level models are unbeatable at ingesting arbitrary text — any script, any noise — but the base ByT5-small has little world knowledge and only rough generation. Embeddings are the opposite: they don't generate, they place text in a meaning space. Chaining them plays to both strengths — ByT5 robustly normalises and completes the raw input; MiniLM decides what it means. Both run offline, no server, no API key.