The 60-second elevator pitch

CH·01 Why Mentria exists
Meet Tok and Weight. They're going to walk you through Mentria.

Meet Tok and Weight. They're going to walk you through Mentria.

Tok is a *token* — the smallest unit a language model thinks in. Weight is, well, a *weight* — one of the 800 million numbers that make up the model's brain. They will be the recurring narrators of every chapter.
Old way: every word you typed flew across the planet first.

Old way: every word you typed flew across the planet first.

When you talk to a normal AI app, your text leaves your device, crosses the internet, hits a giant warehouse full of GPUs, and the answer travels all the way back. That round trip is 100–300 ms even on great wifi — and it's billed by the word.
$0.003 a word. Tok talks a LOT.

$0.003 a word. Tok talks a LOT.

OpenAI charges around $0.0015–$0.06 per 1000 tokens depending on the model. For a chat app with 10k daily users averaging 200 tokens each, that's $30–$1200/day. Local inference: $0.
Whatever you typed up there… got read.

Whatever you typed up there… got read.

Most cloud APIs reserve the right to log inputs for 'service improvement' (read: training). Even when they don't, network operators between you and them can. Local inference means the words literally never leave your device.
Cloud AI at 30,000 feet: silence. Mentria: still talking.

Cloud AI at 30,000 feet: silence. Mentria: still talking.

Browser-local LLMs work on subway commutes, intercontinental flights, rural areas with bad signal, school networks that block API endpoints, and that one cafe where the wifi pretends to work but doesn't.
What if the warehouse… came home?

What if the warehouse… came home?

The whole bet of Mentria: shrink the model small enough that it fits inside a browser tab. No round trip. No bill. No data leaving the device. The brain lives where you live.
Your brain. Your tab. No cloud.

Your brain. Your tab. No cloud.

Once loaded (~600 MB, cached forever), the model runs entirely on your device's GPU via WebGPU. The page never phones home for inference — only for the initial weight download.
Three things had to land first. They all did, around 2024.

Three things had to land first. They all did, around 2024.

1) Models like Qwen3.5-0.8B are small enough to run locally yet smart enough to be useful. 2) Browsers got direct GPU access via WebGPU. 3) Quantization techniques got good enough to shrink models 3× without breaking them.
But transformers.js already exists. Why build another one?

But transformers.js already exists. Why build another one?

Transformers.js is a generalist that supports every model, every backend, every browser. That's a hard contract. To uphold it, it can't deeply optimize for any one model. Mentria does the opposite — one model family, one backend, as fast as possible.
Same brain, 25 personalities. Costume change: 20 milliseconds.

Same brain, 25 personalities. Costume change: 20 milliseconds.

LoRA adapters are tiny files (40 MB or as small as 150 KB) that change what the model is *good at* — math, code, poetry, summarization. Mentria swaps them mid-conversation in under 20 ms without reloading the 600 MB base. transformers.js can't do this.
You give up frontier-model quality. You get every other thing.

You give up frontier-model quality. You get every other thing.

Local will not match GPT-5 or Claude Opus on hard tasks. But it wins on privacy, offline, cost, latency, and 'works inside an app that can't afford per-query billing.' Pick the right tool per task — Mentria is for the second column.
Tok's home. Next chapter: follow him through the engine itself.

Tok's home. Next chapter: follow him through the engine itself.

Now that you know *why* Mentria exists, the next chapter walks one token through the entire engine end-to-end. After that, we zoom into one component per chapter for the next twelve chapters.
タップ →↑スワイプで詳しく↓スワイプで終了