MicroLLM Lab – Try 7 tiny LLM's in the browser
TL;DR Highlight
Run 25M–360M LLMs in-browser via WebGPU and benchmark their speed and accuracy
Who Should Read
Frontend or full-stack developers who want to try on-device LLMs for lightweight tasks like classification and routing without server costs
Core Mechanics
- Runs in the browser with no server
- It uses WebGPU to run GPU compute directly in the browser.
- Models are cached in the browser's IndexedDB.
- The page says no account is needed and prompts never leave the device.
- Targets 25M–360M parameter models
- The page positions them as an edge layer, not general-knowledge engines.
- Suggested uses are query classification, spam filtering and intent extraction.
- They can also decide whether to call an expensive cloud LLM.
- Q4 quantization cuts memory by 75%
- Weights shrink from 16-bit to 4-bit.
- Models over 100M parameters fit in about 50–84 MB of browser memory.
- The page claims near-lossless generation quality.
- You can measure speed and accuracy yourself
- The Benchmarks tab measures tok/s and pass rate using regex and exact-token checks.
- A sustained 256-token speed test is included.
- The page says a 135M model failing is part of the measurement.
- Write your own evals in JavaScript
- The Custom eval tab runs JS checks on the model's decoded output.
- The editor content is run through eval().
- It provides a prompt for asking a larger LLM to write the eval.
- Falls back from WebGPU to WASM, then JS
- The runtime panel shows backend, tok/s, TTFT, JS heap and GPU buffers.
- The page says it was inspired by yangqi0/petitgpt.
Community Reactions
- Small models give poor answers, per users
- Several commenters got wrong answers and loops on basics like 2+2 and whether a cat is an animal.
- One user saw SmolLM2 360M give absurd California population figures, though it was very fast without a decent GPU.
- Questions about usefulness
- One commenter asked what they are good for when they don't consistently pass the site's own benchmarks.
- Another asked whether the point is just to showcase WebGPU.
- Firefox and UI problems reported
- One user got a GPUShaderStage is not defined error on Firefox 156.0.1 (Arch Linux), while Chromium worked.
- Another said the text is too small and there is too much filler before the actual interface.
- Similar projects shared
- A TinyStories-trained small model demo was shared (tiny.tobelabs.com).
- HermitUI, a single-file WebGPU chat app that handles larger models, was shared.
- A Web Models API proposal for a browser-standard on-device model API was mentioned.
How to Apply
- Load two models in Chromium and run the benchmark
- Open the site in Chrome today and Load SmolLM2 plus the smallest model.
- Click Run suite on every loaded model in the Benchmarks tab and compare tok/s and pass rate.
- Skip Firefox, since a load failure was reported.
- Turn your classification task into a Custom eval
- Pick about 10 intent or spam examples and write them as JS checks.
- Measure the pass rate with exact match or regex to judge with numbers whether a small model suffices.
- Try it as a routing layer before cloud calls
- Give only short classification tasks to the small model and send the rest to your existing cloud LLM.
- Drop tasks where the small model's pass rate is low.
- Check browser support before shipping
- Add a WebGPU feature check and a fallback to a server API when it's missing.
Try It
// Paste into browser dev console or a JS file: check WebGPU support (standard API, not code from the site)
async function checkWebGPU() {
if (!navigator.gpu) return 'WebGPU unsupported: fall back to server API';
const adapter = await navigator.gpu.requestAdapter();
return adapter ? 'WebGPU available' : 'no adapter: fall back';
}
checkWebGPU().then(console.log);
// Next: load a model at https://stateofutopia.com/experiments/microllmlab/ and put {{your classification examples}} into Custom eval to measure the pass rate.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls
Related Resources
- https://stateofutopia.com/experiments/microllmlab/
- https://tiny.tobelabs.com/
- https://arxiv.org/abs/2305.07759
- https://github.com/moooff/HermitUI
- https://github.com/willaaam/gemma-4-E2B-webgpu-vision
- https://www.webmodels.dev
- https://sonistellar.com/lab/
- https://three-llm.ben3d.ca/?model=qwen3.5-0.8b
- https://ai-attacks.neal.codes/