Hugging Face Blog·· 2022-10-13AI 评分55
Stable Diffusion 如何在 JAX/Flax 框架中利用 TPU 进行快速推理
🧨 Stable Diffusion in JAX / Flax !
AI 导读
Hugging Face Diffusers 支持 Flax 框架,允许在 Google TPU 上对 Stable Diffusion 进行快速推理。教程演示了通过 jax.pmap 在 TPU v2 的 8 个设备上并行生成图像,首次编译耗时较长,但后续推理仅需约 7 秒。
来源:Hugging Face Blog · huggingface.co