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
-
Palantir CEO rages against closed models
Jul 2
-
SenseNova-U1-8b-MoT-Infographic-V2 (released yesterday) - An open source SOTA beast for infographic design and image editing.
Jul 2
-
[Benchmark] Kimi K2.7 Code Q3 on Mac Studio M3 Ultra + RTX PRO 6000 over llama.cpp RPC: prefill improves, no changes in token generation/decode
Jul 2
-
They fit! Mostly.... 2x 3090, Thermaltake Core p3
Jul 2
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.