1. Learn
  2. Get started

Run AI in your browser with WebGPU: local models, no install

How WebLLM and WebGPU run language models and image generation on your own GPU inside a browser tab, what works, and where it falls short of Ollama.

Updated Oct 26, 2026 · RunItLocal.io

You can run a real AI model on your own graphics card without installing anything. Modern browsers can use the GPU through a standard called WebGPU, and projects like WebLLM use it to run language models right in a tab. The model downloads once, then runs on your machine, and keeps working offline.

The quickest way to try it is our Studio: open it, pick a model, and start chatting.

How it works

WebGPU is a browser feature that lets web pages run work on your graphics card, the way games and apps do. WebLLM, from the MLC project, compiles models so they run on it. The first time you pick a model, the browser downloads its files and stores them on your device. After that it loads from disk, not the internet.

Your prompts never leave the tab. The page is just a delivery method; the thinking happens on your own GPU, the same as with Ollama. See local AI privacy.

What the Studio runs

The Studio offers a range of 4-bit chat models, from tiny ones under 1 GB to Qwen3 8B at about 5.7 GB, plus image generation:

KindExamplesDownload
Tiny and fastGemma 3 1B, Llama 3.2 1Bunder 1 GB
Everyday chatQwen3 4B, Llama 3.2 3Babout 2 to 3.5 GB
The smartestQwen3 8B, Llama 3.1 8Babout 5 to 5.7 GB
Code and reasoningQwen2.5 Coder 7B, Phi-4 miniabout 3.5 to 5 GB
ImagesSD-Turbo, 512 px, one stepabout 2.5 GB

It checks your GPU first and tells you which models it can run. Chats and images are saved in your browser on this device, and it can run Python in a sandbox in the tab. You can install it as an app and use it offline.

What you need

  • A browser with WebGPU. Chrome and Edge on desktop have it on by default. Safari and Firefox have been adding it; update to the latest version and try.
  • A GPU with some free memory. Tiny models work on most laptops with built-in graphics. The 8B models need a real graphics card or a recent Mac. Some models and the image generator also need 16-bit shader support, which the Studio checks for.
  • Disk space and patience for the first load. A 5 GB model is a 5 GB download, once.

Browser vs Ollama

Browser (WebGPU)Ollama
InstallNoneOne app
Largest modelsAbout 8B in our StudioWhatever fits your memory
SpeedUsually below nativeFull speed
Works offlineYes, after first loadYes
Use from other appsNoYes, through its API
Models storedBrowser storageA folder on disk

The browser only gets part of your GPU's memory, and has to share the card with everything else on screen. That's why it tops out at small models. For 14B, 30B or bigger, use Ollama: run your first model takes ten minutes.

Good uses for browser AI

  • Trying local AI before installing anything. Find out if your laptop is up to it in a minute.
  • Work computers where you can't install software.
  • Showing someone. Send a link instead of a setup guide.
  • Quick image generation without setting up Stable Diffusion tools.

When it doesn't work

  • "WebGPU not available." Update the browser, or try Chrome or Edge. Some Linux setups need it turned on in the browser's flags.
  • A model won't load or the tab crashes. It ran out of graphics memory. Close other tabs and pick a smaller model.
  • It's using the wrong GPU on a laptop. Set the browser to use the high-performance GPU in your system's graphics settings.
  • Models disappeared. Clearing site data or browsing in a private window removes the stored files. They'll download again.

Then: the same models, faster

If you like what you see, the step up is Ollama on the same machine, which can use all of your graphics memory. Here's what an 8 GB RTX 4060 runs there by our calculator, including Qwen3 8B at about 29 tok/s:

RTX 4060, 8 GB · estimated with our calculator · full page

  • Qwen3 4BQuick everyday chat and summaries
    ~60 tok/s
    Runs greatqwen3:4b
  • Qwen3 8BA solid all-rounder for chat and writing
    ~29 tok/s
    Usableqwen3:8b
  • Gemma 3 12BReads images as well as text
    needs 10 GB
    Too biggemma3:12b
  • Qwen3 14BNoticeably smarter at reasoning and code
    needs 11 GB
    Too bigqwen3:14b
  • gpt-oss 20BOpenAI's open model. Fast, strong reasoning
    needs 16 GB
    Too biggpt-oss:20b
  • Gemma 3 27BGoogle's best open model for its size
    needs 19 GB
    Too biggemma3:27b
  • Qwen3 30B-A3B30B smarts at small-model speed
    needs 21 GB
    Too bigqwen3:30b
  • Qwen3 32BStrong coding and long answers
    needs 22 GB
    Too bigqwen3:32b
  • Llama 3.3 70BClose to the big cloud models
    needs 45 GB
    Too bigllama3.3:70b
  • gpt-oss 120BOpenAI's largest open model
    needs 67 GB
    Too biggpt-oss:120b
  • Qwen3 235B-A22BAlibaba's flagship open model, for multi-GPU rigs
    needs 144 GB
    Too bigqwen3:235b
  • DeepSeek R1 671BThe full DeepSeek R1, for the biggest rigs
    needs 406 GB
    Too bigdeepseek-r1:671b

Where to go next