+ pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
```  
This is the same as explicitly setting the attention processor to use [`~models.attention_processor.AttnAddedKVProcessor2_0`]:  
```py
from diffusers.models.attention_processor import AttnAddedKVProcessor2_0