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. Learn more about other ways PyTorch 2.0 can help optimize your model in the Accelerate inference of text-to-image diffusion models tutorial.  Benchmark We conducted a comprehensive benchmark with PyTorch 2.0’s efficient attention implementation and torch.compile across 