Re:Running Stable Diffusion fully in browser with WebGPU
by crowwork on Wednesday March 08, 2023 @01:33PM
(#35072892)
This project brings stable diffusion models to web browsers. Everything runs inside the browser with no server support. Please check out our GitHub repo to see how we did it. There is also a demo which you can try out.
Re:Running Stable Diffusion fully in browser with WebGPU
by sberens on Wednesday March 08, 2023 @02:01PM
(#35073281)
> As WebGPU does not support FP16 at this moment, the memory consumption of running the demo is about 7GB. For Apple silicon Mac with only 8GB of unified memory, it may take longer (a few minutes) to generate an image. This demo may also work for Mac with AMD GPU.
Ouch. It will be interesting what this number will look like in 2-3 years though.
Re:Running Stable Diffusion fully in browser with WebGPU
by sberens on Wednesday March 08, 2023 @02:04PM
(#35073323)
I'm looking forward to an OpenAI quality embedding that I can use locally. I think eliminating the latency/cost from calling their API will allow for some novel UX patterns.
Re:Running Stable Diffusion fully in browser with WebGPU
by cyx6 on Wednesday March 08, 2023 @02:06PM
(#35073340)
This is an AMAZING work! Just type in one line description and click, I get a photo by stable diffusion on my macbook in minutes. And it never needs any setup, just having fun. :)
Re:Running Stable Diffusion fully in browser with WebGPU
by junrushao1994 on Wednesday March 08, 2023 @02:17PM
(#35073461)
This actually works on my non-M1/M2 macbook with AMD GPUs pretty smoothly. It's a bit slow for now (~70sec), but I expect this to be faster with fp16. Any roadmap to support fp16 on WebGPUs?
Ouch. It will be interesting what this number will look like in 2-3 years though.
It can generate any image I want within 2mins:)
One thing I am curious, how's the performance of WebGPU approach compared to the local server approach?
Does it also work for cuda device? Is there any plan to support other models soon?