Instructions to use facebook/DiT-XL-2-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use facebook/DiT-XL-2-256 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("facebook/DiT-XL-2-256", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download transformer/diffusion_pytorch_model.bin from facebook/DiT-XL-2-256: direct link, hf CLI and curl.
- Browser
- Download file 3 GB
-
https://huggingface.co/facebook/DiT-XL-2-256/resolve/main/transformer/diffusion_pytorch_model.bin
- Command line
-
hf download hf://facebook/DiT-XL-2-256/transformer/diffusion_pytorch_model.bin
-
curl -L -o diffusion_pytorch_model.bin https://huggingface.co/facebook/DiT-XL-2-256/resolve/main/transformer/diffusion_pytorch_model.bin
3 GB
- Xet hash:
- ae1d9b7fd1ae366d6dcb5ba0403576d130a3bca7cfa22a9069c695e6bde4b87d
- Size of remote file:
- 3 GB
- SHA256:
- e592d64df5a579691e65d2b245641a00bb070b652e2c5ca775cce20a729ce9d9
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.