Show HN: A 52 KB WebAssembly engine that runs Qwen3.5-2B in a browser tab tesser...
HN Best 200 @best
Show HN: A 52 KB WebAssembly engine that runs Qwen3.5-2B in a browser tab tesseracted.com · 9 points · 1 comments · HN thread
TL;DR The author presents a demo page where Qwen3.5-2B and smaller Qwen3 models run entirely in the browser, with inference done by a roughly 52 KB WebAssembly engine written in Zig on the CPU. Weights are downloaded once and cached, and prompts never leave the tab. Benchmarks claim the page reaches about 65–75% of native llama.cpp CPU speed for generation on an Apple M3 Max.
- Engine is a Zig program compiled to wasm32, about 52 KB, operating directly on packed 4-bit and 6-bit Unsloth Q4_K_M GGUF weights, with a thread pool and an optional relaxed-SIMD path.
- Models offered: Qwen3.5-2B and 0.8B, plus Qwen3-1.7B and 0.6B, all Apache-2.0.
- A /python command has the model write code that runs in a separate CPython-in-WebAssembly sandbox with no network and a 15-second limit.
- Benchmarks on Apple M3 Max: Qwen3-1.7B runs at about 52 tok/s in the page versus 80 tok/s for llama.cpp CPU; Qwen3-0.6B at about 124 versus 163. Prompt processing is much slower in the page (about 160 vs 513 tok/s for 0.6B).
- Quantization cost table for Qwen3-0.6B: 8-bit keeps 98.5% of top predictions identical to full precision, Q4_K_M keeps 90.6%, naive 4-bit keeps 81%.
- Memory use in the tab is about 1.4 GB for Qwen3.5-2B and 1.3 GB for Qwen3-1.7B; the author warns that background tabs throttle generation.
Discussion The thread is essentially empty: the only comment is a brief positive reaction from one user. There is no substantive discussion of the technical claims, benchmarks or limitations, so the mood is simply approving and the story received little engagement (9 points).
- Positive reaction to the project (a few): The single commenter called the work impressive and praised it briefly, without discussing the engineering, benchmarks or trade-offs.