ngface_hub import notebook_login
from diffusers import FlaxStableDiffusionPipeline

Model Loading
	
TPU devices support bfloat16, an efficient half-float type. We’ll use it for our tests, but you can also use float32 to use full precision instead.


	Copied
dtype = jnp.bfloat16
Flax is a functional framework, so models are stateless and parameters are stored outside them. Loading the pre-trained Flax pipeline will return both the pipeline itsel