This repository provides GPU inference and TPU training implementations for our paper: Scaling Text-to-Image Diffusion Transformers with Representation Autoencoders.
Scaling Text-to-Image Diffusion Transformers with Representation Autoencoders
Shengbang Tong*, Boyang Zheng*, Ziteng Wang*, Bingda Tang, Nanye Ma, Ellis Brown, Jihan Yang, Rob Fergus, Yann LeCun, Saining Xie
New York University
*Core contributor
git clone https://github.com/ZitengWangNYU/Scale-RAE.git
cd Scale-RAE
conda create -n scale_rae python=3.10 -y
conda activate scale_rae
pip install -e .
cd inference
python cli.py t2i --prompt "Can you generate a photo of a cat on a windowsill?"
Models and decoders automatically download from HuggingFace.
| Guide | Description |
|---|---|
| Inference Guide | Generate images with pre-trained models |
| Training Guide | Train your own Scale-RAE models |
| TPU Setup Guide | Set up TPUs for large-scale training |
All models available in our HuggingFace collection:
| Model | LLM | DiT | Decoder | HuggingFace Repo |
|---|---|---|---|---|
| Scale-RAE | Qwen2.5-1.5B | 2.4B | SigLIP-2 | nyu-visionx/Scale-RAE-Qwen1.5B_DiT2.4B β |
| Scale-RAE | Qwen2.5-7B | 9.8B | SigLIP-2 | nyu-visionx/Scale-RAE-Qwen7B_DiT9.8B |
| Scale-RAE-WebSSL | Qwen2.5-1.5B | 2.4B | WebSSL | nyu-visionx/Scale-RAE-Qwen1.5B_DiT2.4B-WebSSL |
β = Recommended default model
Decoders:
nyu-visionx/siglip2_decoder (SigLIP-2-SO400M, default)nyu-visionx/webssl300m_decoder (WebSSL-DINO300M)Scale-RAE follows a two-stage training approach:
# Stage 1: Pretraining with SigLIP-2
bash scripts/examples/stage1_rae_siglip_1.5b_dit2.4b.sh
# Stage 2: Instruction finetuning
bash scripts/examples/stage2_rae_siglip_1.5b_dit2.4b.sh
See Training Guide for data preparation, hyperparameters, and example scripts. See TPU Setup Guide for TPU configuration.
Scale-RAE/
βββ inference/ # Inference CLI and scaling experiments
βββ scale_rae/ # Core model implementation
β βββ model/ # Model architectures (LLM, DiT, encoders)
β βββ train/ # Training scripts (SPMD/FSDP)
βββ scripts/examples/ # Example training scripts
βββ docs/
β βββ Inference.md # Inference guide (CLI, scaling)
β βββ Train.md # Training guide (data, hyperparams)
β βββ TPUs_Torch_XLA.md # TPU setup guide
βββ setup_gcs_mount.sh # GCS mount for WebDataset
βββ install_spmd.sh # TPU/TorchXLA installation
βββ clear.py # TPU memory clearing utility
If you find this work useful, please cite:
@article{scale-rae-2026,
title={Scaling Text-to-Image Diffusion Transformers with Representation Autoencoders},
author={Shengbang Tong and Boyang Zheng and Ziteng Wang and Bingda Tang and Nanye Ma and Ellis Brown and Jihan Yang and Rob Fergus and Yann LeCun and Saining Xie},
journal={arXiv preprint arXiv:2601.16208},
year={2026}
}
This project is released under the MIT License.
This work builds upon:
4 commits
Python
98.0%
Shell
2.0%
This repository provides GPU inference and TPU training implementations for our paper: Scaling Text-to-Image Diffusion Transformers with Representation Autoencoders.
Scaling Text-to-Image Diffusion Transformers with Representation Autoencoders
Shengbang Tong*, Boyang Zheng*, Ziteng Wang*, Bingda Tang, Nanye Ma, Ellis Brown, Jihan Yang, Rob Fergus, Yann LeCun, Saining Xie
New York University
*Core contributor
git clone https://github.com/ZitengWangNYU/Scale-RAE.git
cd Scale-RAE
conda create -n scale_rae python=3.10 -y
conda activate scale_rae
pip install -e .
cd inference
python cli.py t2i --prompt "Can you generate a photo of a cat on a windowsill?"
Models and decoders automatically download from HuggingFace.
| Guide | Description |
|---|---|
| Inference Guide | Generate images with pre-trained models |
| Training Guide | Train your own Scale-RAE models |
| TPU Setup Guide | Set up TPUs for large-scale training |
All models available in our HuggingFace collection:
| Model | LLM | DiT | Decoder | HuggingFace Repo |
|---|---|---|---|---|
| Scale-RAE | Qwen2.5-1.5B | 2.4B | SigLIP-2 | nyu-visionx/Scale-RAE-Qwen1.5B_DiT2.4B β |
| Scale-RAE | Qwen2.5-7B | 9.8B | SigLIP-2 | nyu-visionx/Scale-RAE-Qwen7B_DiT9.8B |
| Scale-RAE-WebSSL | Qwen2.5-1.5B | 2.4B | WebSSL | nyu-visionx/Scale-RAE-Qwen1.5B_DiT2.4B-WebSSL |
β = Recommended default model
Decoders:
nyu-visionx/siglip2_decoder (SigLIP-2-SO400M, default)nyu-visionx/webssl300m_decoder (WebSSL-DINO300M)Scale-RAE follows a two-stage training approach:
# Stage 1: Pretraining with SigLIP-2
bash scripts/examples/stage1_rae_siglip_1.5b_dit2.4b.sh
# Stage 2: Instruction finetuning
bash scripts/examples/stage2_rae_siglip_1.5b_dit2.4b.sh
See Training Guide for data preparation, hyperparameters, and example scripts. See TPU Setup Guide for TPU configuration.
Scale-RAE/
βββ inference/ # Inference CLI and scaling experiments
βββ scale_rae/ # Core model implementation
β βββ model/ # Model architectures (LLM, DiT, encoders)
β βββ train/ # Training scripts (SPMD/FSDP)
βββ scripts/examples/ # Example training scripts
βββ docs/
β βββ Inference.md # Inference guide (CLI, scaling)
β βββ Train.md # Training guide (data, hyperparams)
β βββ TPUs_Torch_XLA.md # TPU setup guide
βββ setup_gcs_mount.sh # GCS mount for WebDataset
βββ install_spmd.sh # TPU/TorchXLA installation
βββ clear.py # TPU memory clearing utility
If you find this work useful, please cite:
@article{scale-rae-2026,
title={Scaling Text-to-Image Diffusion Transformers with Representation Autoencoders},
author={Shengbang Tong and Boyang Zheng and Ziteng Wang and Bingda Tang and Nanye Ma and Ellis Brown and Jihan Yang and Rob Fergus and Yann LeCun and Saining Xie},
journal={arXiv preprint arXiv:2601.16208},
year={2026}
}
This project is released under the MIT License.
This work builds upon:
4 commits
Python
98.0%
Shell
2.0%