A browser-based LLM now runs entirely inside a web page, with no server and no GPU involved. Tesseracted Labs built a demo called LLM.OS. The page fetches a Qwen model’s weights a single time and caches them locally. A tiny WebAssembly module, around 52 KB, then does all the math on the visitor’s processor.
Nothing typed into the terminal leaves the tab, and no remote inference service sits behind it.
Which models it runs
The demo offers four open models, all under the Apache-2.0 license: Qwen3.5-2B, Qwen3.5-0.8B, Qwen3-1.7B and Qwen3-0.6B. The weights come from Unsloth in the Q4_K_M GGUF format. Despite the 4-bit label, the files mix block sizes from 4 to 6 bits, which works out to roughly 5.3 bits per weight. The big matrices are loaded unchanged from Unsloth’s release.
Qwen3.5 has a different design from its predecessor. Most of its layers (three in every four) drop attention in favor of a compact recurrent state, using a gated delta rule. So memory stays nearly flat however long the chat runs.
How the engine works
The engine is written in Zig and targets wasm32-freestanding. It started life as a port of llm.asm, an assembly-only project. Its integer kernels work on the packed low-bit weights as they are, a few worker threads share memory, and browsers with relaxed SIMD take a quicker dot-product route.
The demo also has a Python mode. Typing /python and a question makes the model write code, and a second sandbox executes it. That sandbox is CPython built for WebAssembly, offline, limited to the standard library and cut off after 15 seconds. It targets tasks small models fumble when answering from memory, such as counting, arithmetic, dates, time zones and simple charts.
Accuracy checks
The exact code path agrees with PyTorch on the same weights to about four decimal places in the logits, as tested on Qwen3-0.6B, Qwen3-1.7B and Qwen3.5-0.8B. For Qwen3.5-2B the reference was native llama.cpp, and greedy output came out identical. Each tokenizer was compared with the official Qwen one on 12 test strings and matched.
The path the page really runs is faster, and it also rounds activations to 8 bits. Its logits can stray from the exact path by as much as about 0.6, so token choices usually, though not always, agree.
Speed against llama.cpp
Measurements were taken on 27 and 28 November 2026 on an Apple M3 Max with 10 performance and 4 efficiency cores. The page ran in headless Chrome and was compared with native llama.cpp build 8660 on the same weights. On the CPU, the browser version generates text at roughly two thirds to three quarters of native speed.
Ingesting the prompt is where it falls furthest behind. llama.cpp batches those tokens and hits 513 tokens per second on the 0.6B model, while this engine feeds them in singly at about 160.
On the same machine with 8 threads, Qwen3.5 generates about 39 tokens per second for the 2B and 74 for the 0.8B. Per parameter that is slower, because the vocabulary is bigger (248,320 tokens versus 151,936). No llama.cpp comparison exists for them. Typing /bench in the page runs a fixed test, and /numbers charts the Qwen3 results.
What 4-bit quantization costs
The author also measured how often a quantized model predicts the same next token as the full-precision one. The test used 645 tokens of English, German, code and chat on Qwen3-0.6B. Generic compression barely helps the files: the strongest zstd setting trims the 8-bit file by only about 6%.
Limits to know about
- The models are small and state wrong facts with confidence, so answers are best treated as a demo.
- A tab needs about 1.4 GB for Qwen3.5-2B, 1.3 GB for Qwen3-1.7B and 0.6 GB for each of the two smallest models.
- Background tabs get throttled, which can slow generation sharply.
Conversations stay local. The site does use Cloudflare’s page analytics, which see the address, load timings and browser version but not the chat itself.
What it shows about local AI
A model of up to 2 billion parameters running at tens of tokens per second on a laptop CPU, with no install, is a low bar for trying local inference. Anyone with a recent machine can test one by opening a page. The weak prompt processing and the memory footprint are the main things to improve, and the 8-bit activation path shows where the author is already trading a little accuracy for speed.
Source: tesseracted.com