
layout: blog_detail
title: "Accelerated Diffusers with PyTorch 2.0"
author: Pedro Cuenca, Patrick von Platen, Suraj Patil

PyTorch 2.0 has just been released. Its flagship new feature is torch.compile(), a one-line code change that promises to automatically improve performance across codebases. We have previously checked on that promise in Hugging Face Transformers and TIMM models, and delved deep into its motivation, architecture and the road ahead.