Hugging Face Blog·· 2025-09-02AI 评分36
如何用 PyTorch 提前编译让 ZeroGPU Spaces 提速 1.3–1.8 倍
Make your ZeroGPU Spaces go brrr with ahead-of-time compilation
AI 导读
Hugging Face 介绍在 ZeroGPU Spaces 中用 PyTorch 提前编译(AoT)替代 torch.compile,避免 ZeroGPU 短生命周期进程反复编译,Flux、Wan、LTX 等模型获得 1.3×–1.8× 加速。
打开原文 huggingface.co