G-03 · AI · 2 min read

How to run AI models in your browser, privately and offline

What on-device AI is, which small open models run in a browser tab, what your computer needs, and how to manage the models stored on your device.

Updated Uses On-device AI Models, On-device AI Chat, Chat with CSV
Fig. G-03 · AI

Large AI assistants run in data centres: everything you type is sent to someone else's computer. A new generation of small open models, between 0.3 and 0.8 billion parameters, is good enough for focused jobs and small enough to run inside a browser tab. Nothing leaves your device, there is no account or API key, and once the model is stored it works offline.

What you need

  • A recent Chrome, Edge, Safari or Firefox.
  • Ideally a GPU with WebGPU, which most laptops and desktops from the last few years have. Without it, models run on the CPU through WebAssembly, more slowly.
  • 250–600 MB of free storage per chat model. The exact size is shown before every download.

The model manager shows what your device supports and what is stored.

The models

Model Maker Size Good at
LFM2.5 350M Liquid AI ~260 MB Fast chat, tool calls, documents
LFM2 700M Liquid AI ~500 MB The same, with more capacity
Qwen3.5 0.8B Alibaba Qwen ~490 MB Reasoning, 201 languages
Qwen3 0.6B Alibaba Qwen ~580 MB Structured answers, code
LFM2 350M Extract Liquid AI ~320 MB Text to JSON
GLiNER2 multi Fastino ~630 MB Entities and classification
GLiNER2.5 Decide Fastino ~350 MB Typed decisions
Granite Embedding 97M IBM ~120 MB Semantic search

All are published on Hugging Face in ONNX format and run with ONNX Runtime.

How small models are made dependable

A 350M model knows little and cannot do reliable arithmetic, so the tools around it do the heavy lifting:

  1. Tools for facts. Maths, unit conversions, table aggregates and document search are done by code. The model decides what to compute and the result is exact; every call is shown.
  2. Evidence first. For documents, a search runs before the model answers, so it starts from the right pages.
  3. Context budgeting. Each prompt is fitted to the model's window: tool descriptions shrink, older turns become a memory note, and long results are cut with a pointer to read further.
  4. Error repair. Malformed tool calls get a corrected example in the model's own format, and repeated calls are stopped.

You can watch this in chat with CSV: ask "which region had the highest revenue?" and the model calls aggregate(metric="sum", column="Revenue", group_by="Region"), and code computes the totals exactly.

Managing storage

Models are kept in your browser's storage by default so they load in seconds next time. On the model manager you can turn that off, see each stored model's size and when it was last used, and delete any of them. When space runs low, the least recently used models are removed first.

FAQ

Common questions.

01Is on-device AI as good as ChatGPT?

No. It is far smaller, so it knows less and reasons less deeply. It is good at focused tasks with clear inputs, and it is private by construction.

02Why does the first run take a while?

The model downloads once, a few hundred megabytes from Hugging Face. Later visits load it from your device.

03Can I use it on my phone?

Yes, with the smallest models. Phones limit how much memory a tab may use, so larger models may not load.