favicon-diffusion/README.md at main · neelr/favicon-diffusion
Ever wanted fast diffusion on device? Struggled with compatibility and libraries? Worry no more—favicon diffusor is here! Using WebGPU, its supported on almost any device (that can run chrome) and can diffuse hippos anywhere (even as a favicon)! A quick weekend project where I hacked on a bunch of WebGPU kernels from scratch and tried to optimize them. Building on my last "from scratch DiT" this starts at the kernel level and rewrites diffusion transformers using WGSL. A subsecond 32-step diffusion inference time allows for an awesome demo of actually diffusing the favicon of a website realtime in ~0.7s with a ~11M parameter model https://notebook.neelr.dev/stories/in-browser-favicon-diffusion-scratch-dit-pt-2 Of course.... here are the approximate numbers on an M1 Pro! Currently faster than tf.js and (of course) baseline JS—transformers.js doesn't support custom layer building, so I didn't include it. The implementation includes several key optimizations: The project structure include
favicon diffusor: a high-performance browser diffusion transformer Ever wanted fast diffusion on device? Struggled with compatibility and libraries? Worry no more—favicon diffusor is here! Using WebGPU, its supported on almost any device (that can run chrome) and can diffuse hippos anywhere (even as a favicon)! A quick weekend project where I hacked on a bunch of WebGPU kernels from scratch and tried to optimize them. Building on my last "from scratch DiT" this starts at the kernel level and rewrites diffusion transformers using WGSL. A subsecond 32-step diffusion inference time allows for an
related reading
- in browser favicon diffusion! scratch-dit pt.2notebook.neelr.dev
- Unicorn Studio — No-code WebGL Toolunicorn.studio
- What are Diffusion Models? | Lil'Loglilianweng.github.io
- Diffusion models from scratchchenyang.co
- GitHub - google/hackable_diffusiongithub.com
- ⭐️ Diffusion Modelsandrewkchan.dev
- Scalable Diffusion Models with Transformersarxiv.org
- GitHub - RosettaCommons/RFdiffusion: Code for running RFdiffusiongithub.com
- Lucas Gelfond • Segment Anything 2, in WebGPUlucasgelfond.online
- Scalable Diffusion Models with Transformersopenaccess.thecvf.com
- What are Diffusion Models?lilianweng.github.io
- Thousands of Styled Rectangles in 120FPS on GPU - tchayen.comtchayen.com