Hand-written WGSL kernels reading model.safetensors straight off the wire — the tensor bytes go into GPU buffers directly, no export step, no runtime graph compiler.
Pick a model. The page fetches its config.json, tokenizer.json, and model.safetensors from the Hugging Face CDN, parses the safetensors header by hand, and uploads every tensor straight into GPUBuffers.
idleRequest WebGPU adapter + device
idleFetch config.json
idleFetch + build tokenizer (byte-level BPE)
idleStream model.safetensors
idleParse header, upload tensors to GPU
idleCompile WGSL, build compute pipelines
idleWarm-up forward pass
idle
This browser doesn't expose navigator.gpu. WebGPU currently ships in Chrome/Edge 113+, and behind a flag in Firefox Nightly and Safari Technology Preview.
02
Generate
–Parameters
–GPU backend
–Load time
–tok/s (last run)
temperature 0.80
top-k 50
repetition penalty 1.00
max new tokens 200
This is a 25M-parameter model. It is often wrong, and it is not a safety system. If you are struggling or thinking about hurting yourself, please reach out to someone you trust or a crisis line (US: call or text 988 · Turkey: 112 · elsewhere: your local emergency number).
These are tiny models (24–25M parameters). Base models only continue text; the Instruct model chats, but it is often confidently wrong and can't do multi-step reasoning
1024-token context window. In chat mode, the oldest turns are dropped to make room; in base mode, generation stops at the limit
All matmuls run in f32 with a naive tiled kernel — no fusion, no int8/int4 quantization, so this favors correctness and readability over raw throughput
KV cache lives in a fixed-size GPU buffer sized to context_len; no paging, no batching, single sequence only
Tokenizer is a from-scratch byte-level BPE that reads its pre-tokenizer regex and merges from each model's tokenizer.json (including v3's digit-by-digit split), tested against the reference tokenizer