Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/main/diffusers/stable_diffusion_fast_jax.ipynb
Views: 2535
Kernel: Python 3
🧨 Fast Stable Diffusion in free Colab with JAX / Flax on TPU!
🤗 Hugging Face Diffusers supports Flax since version 0.5.1
! This allows for snappy inference on Google TPUs, such as those available in Colab, Kaggle or through Google Cloud Platform.
If you want more details about how Stable Diffusion works using JAX please refer to our blog or this Colab notebook.
Initial Steps
In [3]:
In [ ]:
Setup
Run all cells for setting up JAX and the model
In [ ]:
In [6]:
In [ ]:
Run!
In [8]:
Seed used 729606234
In [ ]:
Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. To turn off, set debug=False in launch().
Running on public URL: https://28004.gradio.app
This share link expires in 72 hours. For free permanent hosting, check out Spaces: https://huggingface.co/spaces
597618925.0
597618925.0