timm/imagenet-1k-wds
Viewer • Updated • 80.7k • 5.54k • 34
How to use ensembleai/DiT-XL-2-256-NdLinear with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("ensembleai/DiT-XL-2-256-NdLinear", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]This repository contains the implementation of the DiT (Diffusion Transformer) model, which leverages NdLinear layers for efficient multi-dimensional linear transformations. The model is designed to be compact yet powerful, suitable for various tasks requiring high-dimensional data processing.
The DiT model is built using several components:
To use the DiT model, ensure you have the required dependencies installed:
pip install torch transformers==4.52.4
This project is licensed under the MIT License. See the LICENSE file for more details.
Base model
facebook/DiT-XL-2-256