JAX / Flax Inference in Practice for Stable Diffusion
Hugging Face Diffusers has supported Flax since version 0.5.1, enabling ultra-fast inference on Google TPUs. The article demonstrates loading CompVis/stable-diffusion-v1-4 bf16 weights with FlaxStableDiffusionPipeline and generating 8 images simultaneously across 8 parallel TPU devices, taking about the same time as generating one image on a single chip.