SDXL running locally in the browser on WebGPU, open-source
Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.
| I needed simple local image generation without the usual setup. No virtual environments, no ComfyUI with a complex graph and installation as an exe. So i tried to push the whole thing into the browser and run it on WebGPU. It's a browser extension. You install it, then it loads model, and after that it runs on your own GPU, offline. It use text encoders, UNet, and VAE are ONNX graphs, running on the browser's WebGPU stack. Github: https://github.com/d0grr/generate-ai-images Firefox: https://addons.mozilla.org/en-US/firefox/addon/generate-ai-images/ Chrome: https://chromewebstore.google.com/detail/generate-ai-images/agcbeefcfjkldpankmceehdhbpldakae Currently 2 models are supported:
Here are some rough points to give you an idea: when you load model in the browser, it freezes for about 10 seconds, and freezes in the end of generation. Reason - synchronous WebGPU shader compilation in Chrome's GPU process. A Web Worker doesn't help - bottleneck is the GPU process. Requirements:
As for speed, on my 14" MacBook M4, processing one image takes about 50-60 seconds. I started doing this just to see if it was even possible. It works, that's all. I wonder how it would work on other hardware. [link] [comments] |
More from r/LocalLLaMA
-
Been running Qwen3.6-27B through a 3-critic harness. The harness matters more than I thought
Jun 30
-
I Hate Dario Amodei, and everything he stands for.
Jun 29
-
Introducing LongCat-2.0 - , a large-scale MoE language model with 1.6 trillion total parameters and ~48 billion activated per token. This was the stealth model that was on Openrouter under the name 'owl-alpha'.
Jun 29
-
Krea-2-Turbo Image Model - Easy to be fully uncensored, but it can also EDIT Images!
Jun 29
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.