Download README.md from OneCreamBox/DyLoMo-DiT-T2I-Preview: direct link, hf CLI and curl.
- Browser
- Download file 12.5 kB
-
https://huggingface.co/OneCreamBox/DyLoMo-DiT-T2I-Preview/resolve/main/README.md
- Command line
-
hf download hf://OneCreamBox/DyLoMo-DiT-T2I-Preview/README.md
-
curl -L -o README.md https://huggingface.co/OneCreamBox/DyLoMo-DiT-T2I-Preview/resolve/main/README.md
license: cc-by-nc-4.0
library_name: pytorch
pipeline_tag: text-to-image
language:
- en
tags:
- dylomo-dit
- diffusion
- diffusion-transformer
- mixture-of-experts
- weight-sharing
- rectified-flow
- text-to-image
- research-preview
- intermediate-checkpoint
inference: false
DyLoMo-DiT text-to-image: research preview (intermediate checkpoint)
These weights are an intermediate checkpoint, not a final model. They are the checkpoint evaluated in Table 5 of the paper, taken from one stage of a multi-stage training schedule, and are released as a research preview so that the reported results can be examined and reproduced. They are not a finished or production model. Read the quality, robustness and safety notes below with that in mind.
Text-to-image weights for DyLoMo-DiT: Dynamic Looped Mixture-of-Experts Diffusion Transformers.
📄 Paper · 💻 Code · 🌐 Project page · 🤗 ImageNet 256×256 weights
DyLoMo-DiT (Dynamic Looped MoE DiT) is a diffusion Transformer that reuses parameters rather than adding them: a weight-shared loop repeatedly applies the middle layers, while sparse experts allocate parameter capacity across tokens. This repository holds the scaled-up text-to-image model of the paper. It has 15.48B total parameters, of which 1.05B are active per image token. The paper trains this single model, without ablations, to test whether the architecture extends from class-conditional ImageNet generation to text-conditioned generation.
🧬 Model summary
| Denoiser parameters | 15.48B total, 1.05B active per image token |
| Released weights | training weights; this checkpoint has no EMA weights |
| Width | 1024 |
| Layers | 32 physical layers; the middle 16 are looped, with 8 before and 8 after, so one forward pass executes 8 + 16×2 + 8 = 48 layers |
| Feed-forward networks | dense in the first and last layers; multi-head sparse experts in the 30 layers in between |
| Sparse experts | 4 routing heads with 128 experts each; every token selects 6 experts per head; one always-on shared expert (width 1280) |
| Residual stream | 4 streams |
| Conditioning | text and image tokens form a single sequence; the timestep is written into the first 64 input channels as a 64-dimensional sinusoidal encoding (no adaLN) |
| Objective | rectified flow; the network predicts v = ε − x₀ |
| Image latents | the original Wan2.2 VAE, unmodified: 48 channels, 16× spatial downsampling, no further patching (one latent position is one token) |
| Text encoder | the original Qwen2.5-VL-7B-Instruct, frozen and unmodified; features from the output of its third-to-last layer, at most 1,000 tokens |
| Forward compute | 8,333 GMAC for one forward pass of the denoiser at 1024×1024 (4,096 image tokens) |
Active parameters are counted per image token: the layers of the looped segment are counted once, the routers (which score all experts) in full, and the image input and output adapter layers once. GMAC is 10⁹ multiply-accumulates; the text encoder and the VAE are excluded.
The third-party components use their original weights: the Wan2.2 VAE from the official Wan-AI/Wan2.2-TI2V-5B repository and the text encoder from Qwen/Qwen2.5-VL-7B-Instruct. Each is used under its own Apache-2.0 license; neither is packaged in this repository. The inference code loads the VAE through the official Diffusers-format repository, vae subfolder. The system instruction given to the text encoder comes from HunyuanVideo-1.5, and the code repository credits its source.
📊 Evaluation
GenEval, recomputed with one pipeline at each model's native resolution (Table 5 of the paper). Parameters count the denoiser only; GMAC is one forward pass of the denoiser at the native resolution.
| Model | Parameters (B) | Native resolution | GMAC | GenEval ↑ |
|---|---|---|---|---|
| DyLoMo-DiT (this checkpoint) | 15.48 total / 1.05 active | 1024² | 8,333 | 0.714 |
| FLUX.1-schnell | 12 | 1024² | 34,733 | 0.673 |
| FLUX.1-dev | 12 | 1024² | 37,192 | 0.671 |
| Sana-1.6B | 1.6 | 1024² | 1,483 | 0.632 |
| SDXL | 2.6 | 1024² | 3,381 | 0.551 |
| PixArt-α | 0.6 | 512² | 618 | 0.483 |
Notes on reading the table:
- GenEval has 553 prompts with 4 images each, 2,212 images in total. The evaluation uses the official implementation, with Mask2Former (Swin-S) as the detector and colors judged by CLIP. Prompts are not rewritten, and no negative prompt is used.
- Differences smaller than 0.03 are treated as not meaningful. Only one text-to-image model was trained.
- DyLoMo-DiT uses 24% and 22% as much forward-pass compute as FLUX.1-schnell and FLUX.1-dev, respectively.
DPG-Bench and COCO FID-10K
The four models with the highest GenEval, each at 1024×1024 with the checkpoint and sampling settings of the table above (Table A1 of the paper). For DyLoMo-DiT, both evaluations used the released weights of this repository and the inference code.
| Model | DPG-Bench ↑ | 95% interval | COCO FID-10K ↓ |
|---|---|---|---|
| DyLoMo-DiT (this checkpoint) | 85.0 | [83.9, 86.0] | 17.9 |
| FLUX.1-schnell | 84.8 | [83.7, 85.8] | 22.4 |
| Sana-1.6B | 83.9 | [82.9, 84.9] | 27.0 |
| FLUX.1-dev | 83.6 | [82.6, 84.7] | 28.6 |
- DPG-Bench has 1,065 prompts with 4 images each. The intervals are 95% percentile intervals over 10,000 bootstrap resamples of the prompts. The differences to Sana-1.6B and FLUX.1-dev exclude zero; the difference to FLUX.1-schnell does not.
- COCO FID-10K uses the first 10,000 captions of the commonly used MS-COCO val2014 list, one image per caption, with generated and reference images resized to 256×256 before FID. Each model was generated once, so the values are comparable within this table but not with COCO FID numbers reported elsewhere.
- Every image has its own seed, assigned by the same rule for all models.
🎛️ Sampling settings used in the paper
- Euler sampler with 50 steps. σ is taken at equally spaced points from 1 to 0 and then passed through the shift transform σ ← s·σ / (1 + (s − 1)·σ) with s = 1.6.
- APG guidance on the predicted clean image: guidance scale 5, momentum −0.5, parallel-component weight η = 0.15, no rescaling. The unconditional branch uses the empty text.
- The gallery of the paper uses either s = 1.6 or a resolution-dependent value: 3.88 at 1024×1024, and 4.87 at 1808×1024 and 1024×1808.
🧱 Weight files
The released checkpoint uses sharded safetensors, with routed-expert parameters stored in bf16 and every other parameter in fp32, about 32 GB in total. This is an estimate of weight storage, not peak inference memory. Routers, routing biases and shared experts remain fp32. Each shard uses a tensor-data budget of 10 GB, below the Hub single-file limit.
| File | Contents |
|---|---|
config.json |
Model architecture and pass schedule |
model.safetensors.index.json |
Tensor-to-shard map and total tensor bytes |
model-*-of-*.safetensors |
All weight shards; download every shard listed in the index |
The loader preserves the stored expert dtype by default; inference uses bf16 autocast. On reduced configurations with random weights, CPU and CUDA inference under bf16 autocast is bit-identical to loading all-fp32 weights when deterministic algorithms are enabled. This storage check does not remeasure the released checkpoint's GenEval score. Casting the stored bf16 experts back to fp32 does not recover their original precision.
🚀 Usage
The inference code lives in the code repository; its README has all options and instructions for loading the text encoder and the VAE. A typical session looks like this:
git clone https://github.com/OneBoxCream/DyLoMo-DiT.git && cd DyLoMo-DiT
pip install -r requirements.txt
huggingface-cli download OneCreamBox/DyLoMo-DiT-T2I-Preview --local-dir checkpoints/dylomo-dit-t2i
# the defaults are the sampling settings of the paper (see above)
python t2i_sample.py --model checkpoints/dylomo-dit-t2i \
--prompt "A weathered wooden sign on a post at the edge of a sandy path leading to a beach" \
--height 1024 --width 1024 --output outputs/
All 15.48B parameters have to be stored and loaded, even though only 1.05B are active for each image token.
📚 Training data
The model was trained on an in-house dataset of image–text pairs. The dataset is not released.
Training is multi-stage, with the resolution increased from stage to stage up to a short side of 1024, and uses the rectified-flow objective. Training code is not part of this release.
🎯 Use recommended by the releasing authors
This section and the next are guidance from the releasing authors. They are not findings of the paper, and they are separate from the license terms of this repository, which are stated under License.
The weights are released for research:
- research on efficient diffusion Transformer architectures, such as sparse experts, weight-shared loops and their scaling;
- reproducing and examining the text-to-image results of the paper;
- qualitative study of the model's behaviour on research prompts.
🚫 Uses the releasing authors advise against
- Production or user-facing deployment, in particular without additional safety measures.
- Generating content that is illegal, sexually explicit, hateful, harassing or violent, or that sexualizes minors.
- Generating images of real people without their consent, impersonation, or content intended to deceive or misinform.
- Any use that violates applicable laws.
⚠️ Limitations
These are facts about the release and about what the paper covers:
- Intermediate checkpoint. The weights come from one stage of a multi-stage training schedule and are not a final model.
- Training weights. The checkpoint has no EMA weights; the released file holds the training weights.
- Narrow evaluation. The paper evaluates this checkpoint with GenEval, DPG-Bench and COCO FID-10K at 1024×1024 and with selected qualitative samples. One model was trained, with no ablations and no repeated runs. All prompts used in the paper are in English.
- Selected samples. The images shown in the paper and on the project page are selected: the gallery samples are chosen from 892 generated images.
- Undocumented training data. The training data is an in-house dataset that is not public, so its contents cannot be audited externally.
- No safety filter. This repository contains no safety checker, content filter or watermarking component.
🚧 Potential risks (not evaluated in the paper)
The paper reports no evaluation of safety, bias, fairness or failure modes for this checkpoint. The points below are general risks of text-to-image models that may apply to it. None of them has been measured.
- The model may generate content that is offensive, disturbing or harmful.
- It may reproduce or amplify social biases and stereotypes present in its training data, for example in how people of different genders, ages, ethnicities and cultures are depicted.
- It may produce incorrect object counts, attributes or spatial relations, distorted anatomy and garbled text.
- As an intermediate checkpoint, it may be uneven in image quality, prompt following and coverage of subjects and styles.
Given these possible risks, the releasing authors recommend input and output filtering and human review for any use beyond research. Compliance with applicable laws is the responsibility of whoever builds on the model.
📜 License
The weights are released under Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). The VAE and text encoder retain their separate Apache-2.0 licenses and are not packaged here.
📝 Citation
@article{dylomodit,
title = {DyLoMo-DiT: Dynamic Looped Mixture-of-Experts Diffusion Transformers},
author = {Li, Lernie and Liu, Yuanliu and Xiong, Pengfei and Zhang, Wei},
journal = {arXiv preprint arXiv:2611.30844},
year = {2026}
}