on a different image size triggers compilation again which can be expensive. For more information and different options about torch.compile, refer to the torch_compile tutorial.  Benchmark We conducted a comprehensive benchmark with PyTorch 2.0’s efficient attention implementation and torch.compile across different GPUs and batch sizes for five of our most used pipelines. The code is benchmarked on 🤗 Diffusers v0.17.0.dev0 to optimize torch.com