[DeepCache](https://huggingface.co/papers/2312.00858) accelerates [`StableDiffusionPipeline`] and [`StableDiffusionXLPipeline`] by strategically caching and reusing high-level features while efficiently updating low-level features by taking advantage of the U-Net architecture.  
Start by installing [DeepCache](https://github.com/horseee/DeepCache):
```bash
pip install DeepCache
```  
Then load and enable the [`DeepCacheSDHelper`](https://github.com/horseee/DeepCache#usage):  
```diff
import torch