lly uses the attention optimizations (but not `torch.compile`) when available.

	

	Copied
pip install --upgrade torch torchvision diffusers

Using accelerated transformers and torch.compile.
	
Accelerated Transformers implementation
PyTorch 2.0 includes an optimized and memory-efficient attention implementation through the torch.nn.functional.scaled_dot_product_attention function, which automatically enables several optimizations depending on 