Tesseracted Labs GmbH
LLM.OS — wasmPYTHON RUNNING
001LLM.OS / local inference

A language model,
compiled to WebAssembly.

The terminal above is not talking to a server. The model's weights are downloaded once, kept in your browser's cache, and every token is computed on your CPU by a WebAssembly module of about 52 KB. No GPU code, no inference API; what you type and what the model answers never leave the tab.

~39tok/sQwen3.5-2B, 8 threads, Apple M3 Max
~124tok/sQwen3-0.6B, same machine
~52KBinference engine (Zig → wasm32; 52–55 KB depending on the build)
0servers, GPUs or API keys involved

What is running

Speed against native llama.cpp

Tokens per second while generating: same weights, same machine (Apple M3 Max, 10 performance + 4 efficiency cores). "This page" is headless Chrome; llama.cpp is native build 8660. Measured 27–28 Nov 2026.

modeldownloadthis page, 8 threadsllama.cpp CPU, 8 threadsllama.cpp GPU (Metal)
Qwen3-1.7B Q4_K_M1060 MiB~5280147
Qwen3-0.6B Q4_K_M382 MiB~124163242

So the browser reaches roughly 65–75% of native llama.cpp on the CPU when generating. Reading the prompt is where it is furthest behind: llama.cpp processes prompt tokens in batches (513 tok/s for the 0.6B model), this engine does them one at a time (about 160 tok/s).

The Qwen3.5 models, same machine and 8 threads: about 39 tok/s for the 2B and 74 tok/s for the 0.8B. They are slower per parameter here because their vocabulary is larger (248,320 tokens against 151,936), and I have not benchmarked them against llama.cpp.

Your own numbers appear in the terminal after every reply; type /bench for a fixed test and /numbers for the Qwen3 comparison as a chart.

What 4-bit costs

Share of next-token predictions that stay identical to the full-precision model (Qwen3-0.6B, 645 tokens of mixed English, German, code and chat):

weightssizesame top prediction
8-bit (llm.asm Q8_0)614 MiB98.5%
Unsloth Q6_K472 MiB96.8%
Unsloth Q5_K_M424 MiB94.7%
Unsloth Q4_K_M (used here)378 MiB90.6%
Unsloth Q4_0364 MiB84.4%
naive 4-bit rounding (size estimated)~340 MiB81%

Generic compression helps little: zstd at its highest setting shrinks the 8-bit file by about 6%.

Limits