Skip to content
OnTab
⚙

← Guides

How AI runs inside your browser (WebGPU, WASM and ONNX)

What WebGPU is, why models download once, and how OnTab chooses the right model size for your device.

Every OnTab AI tool runs a neural network in the page itself. Three browser technologies make that possible.

WebGPU

WebGPU gives web pages access to your graphics card for general computation. Matrix multiplications — the core of neural networks — run tens of times faster than on the CPU. Chrome and Edge ship it on Windows, macOS, ChromeOS and Android.

WebAssembly fallback

Without WebGPU we fall back to WebAssembly with SIMD and multiple threads. It's slower, so tools warn you and pick smaller “Lite” models.

ONNX models from Hugging Face

Models are exported to the ONNX format and quantized (fp16, q8 or q4) so they're small enough to download: from ~26 MB for a portrait matting model to ~620 MB for a 200-language translator. They're cached with the Cache API, so the second run is instant and offline.

Device-aware picking

On first visit OnTab checks your GPU adapter limits, reported memory, and runs a 0.4-second benchmark. It then chooses Lite, Balanced or Best variants. Override it any time in Settings.