Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

causalfusion

> 编程语言
Open source

Causal Diffusion Transformer for Generative Modeling This repo provides the official implementation for our paper Causal Diffusion Transfor…

197 stars0 likes0 views
WebsiteGitHub

About

Causal Diffusion Transformer for Generative Modeling This repo provides the official implementation for our paper Causal Diffusion Transfor…

Causal Diffusion Transformer for Generative Modeling

This repo provides the official implementation for our paper

Causal Diffusion Transformers for Generative Modeling

Chaorui Deng, Deyao Zhu, Kunchang Li, Shi Guang, Haoqi Fan

Bytedance Research

Setup

Install the dependencies:

bash
git clone https://github.com/causalfusion/causalfusion.git
pip install -U torch==2.5.1 torchvision==0.20.1 transformers==4.46.2

Download pretrained VAE from MAR.

Training

Training CausalFusion-XL on 8 GPUs with a batch size of 256:

bash
torchrun --nnodes=1 --nproc_per_node=8 train.py --data-path=$PATH_TO_IMAGENET_TRAIN_DIR --tokenizer-path=$PATH_TO_MAR_VAE --results-dir=$PATH_TO_RESULTS_DIR --model=CausalFusion-XL --global-batch-size=256 --ckpt-every=50000 --lr=1e-4 --distributed --grad-checkpoint

Sampling

Download pretrained CausalFusion-XL.

Sampling 10,000 images on 8 GPUs with CFG scale of 4.0:

bash
torchrun --nnodes=1 --nproc_per_node=8 sample.py --distributed --model=CausalFusion-L --tokenizer-path=$PATH_TO_MAR_VAE --num-fid-samples=10000 --ckpt=$PATH_TO_PRETRAINED_CKPT --sample-dir=$PATH_TO_SAMPLE_DIR --cfg-scale=4.0

Evaluation

See the instrutions in ADM for evaluation.

BibTex

latex
@article{deng2024causalfusion,
  title={Causal Diffusion Transformers for Generative Modeling},
  author={Chaorui Deng, Deyao Zhu, Kunchang Li, Shi Guang, Haoqi Fan},
  year={2024},
  journal={arXiv preprint arXiv:2412.12095},
}

Acknowledgments

This codebase borrows from DiT, MAR, and ADM, thanks for their great works!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言