Before installing 🤗 Diffusers from source, make sure you have PyTorch and 🤗 Accelerate installed.  
To install 🤗 Accelerate:  
```bash
pip install accelerate
```  
Then install 🤗 Diffusers from source:  
```bash
pip install git+https://github.com/huggingface/diffusers
```  
This command installs the bleeding edge `main` version rather than the latest `stable` version.
The `main` version is useful for staying up-to-date with the latest developments.