Before you begin, make sure you install T-GATE.  
```bash
pip install tgate
pip install -U torch diffusers transformers accelerate DeepCache
```  
To use T-GATE with a pipeline, you need to use its corresponding loader.  
| Pipeline | T-GATE Loader |
|---|---|
| PixArt | TgatePixArtLoader |
| Stable Diffusion XL | TgateSDXLLoader |
| Stable Diffusion XL + DeepCache | TgateSDXLDeepCacheLoader |
| Stable Diffusion | TgateSDLoader |
| Stable Diffusion + DeepCache | TgateSDDeepCacheLoader |