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
Explore this link on the map →related reading
- in browser favicon diffusion! scratch-dit pt.2notebook.neelr.dev
- Shadersshaders.com
- Speeding Up the Webcola Graph Viz Library with Rust + WebAssembly - Casey Primozic's Homepagecprimozic.net
- Unicorn Studio — No-code WebGL Toolunicorn.studio
- Paper Shaders – Ultra-fast zero-dependency shadersshaders.paper.design
- GitHub - google/hackable_diffusion · GitHubgithub.com
- Hacker Newsnews.ycombinator.com
- Thousands of Styled Rectangles in 120FPS on GPU - tchayen.comtchayen.com
- GitHub - RosettaCommons/RFdiffusion: Code for running RFdiffusion · GitHubgithub.com
- Wayback Machinecohost.org
- Annotated Research Paper Implementations: Transformers, StyleGAN, Stable Diffusion, DDPM/DDIM, LayerNorm, Nucleus Sampling and morenn.labml.ai
- Effective Test-Time Scaling of Discrete Diffusion through Iterative Refinementarxiv.org