Model card: section icons
Browse files
README.md
CHANGED
|
@@ -22,7 +22,7 @@ Weights for the class-conditional models of **DyLoMo-DiT: Dynamic Looped Mixture
|
|
| 22 |
|
| 23 |
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, sparse experts allocate parameter capacity across tokens, and the number of passes through the loop depends on the noise level. On ImageNet 256Γ256, at the same total parameters and forward compute, it reduces FID by 11β24% relative to DiT.
|
| 24 |
|
| 25 |
-
## Models in this repository
|
| 26 |
|
| 27 |
Each model has its own folder with `model.safetensors` (EMA weights) and `config.json`.
|
| 28 |
|
|
@@ -51,7 +51,7 @@ How to read the columns (definitions as in the paper):
|
|
| 51 |
|
| 52 |
**1.6M steps.** `DyLoMo-DiT-XL-1.6M/` continues the seed-42 run of `DyLoMo-DiT-XL/` to 1.6M steps under the same protocol; results after 400k steps come from this single run. At 1M steps DyLoMo-DiT-XL reaches an FID of 2.46 versus 3.08 for DiT-XL/2 trained the same way, and at 1.6M steps it reaches 2.18, below the 2.27 reported for DiT-XL/2 after 7M steps. The 2.18 is the result of the checkpoint in this folder.
|
| 53 |
|
| 54 |
-
## Results (paper means)
|
| 55 |
|
| 56 |
ImageNet 256Γ256, 400k training steps, EMA weights, guidance scale 1.5, 50k images (Table 2 of the paper). Each DiT row is the baseline trained from scratch under the same protocol, at the same total parameters and forward compute as the DyLoMo-DiT below it. "vs. DiT" is the FID change relative to the DiT of the tier, and F1 is the harmonic mean of precision and recall.
|
| 57 |
|
|
@@ -66,7 +66,7 @@ ImageNet 256Γ256, 400k training steps, EMA weights, guidance scale 1.5, 50k ima
|
|
| 66 |
|
| 67 |
All numbers are means over seeds, and percentages are computed from unrounded values.
|
| 68 |
|
| 69 |
-
## Architecture
|
| 70 |
|
| 71 |
DyLoMo-DiT follows DiT in its inputs and outputs: patchified VAE latents (2Γ2 patches), conditioning on timestep and class through adaLN-Zero, and an output layer that predicts noise and variance. It differs in three ways.
|
| 72 |
|
|
@@ -91,7 +91,7 @@ DyLoMo-DiT follows DiT in its inputs and outputs: patchified VAE latents (2Γ2 p
|
|
| 91 |
|
| 92 |
The routing biases used for load balancing take part only in expert selection. The released files hold them next to the EMA weights, with the values they had at the end of training, and they are fixed at sampling time.
|
| 93 |
|
| 94 |
-
## Evaluation protocol
|
| 95 |
|
| 96 |
- ImageNet 256Γ256, class-conditional, following the DiT protocol.
|
| 97 |
- EMA weights; 250-step DDPM sampling; classifier-free guidance at scale 1.5, applied only to the first three channels of the latent, as in DiT.
|
|
@@ -99,7 +99,7 @@ The routing biases used for load balancing take part only in expert selection. T
|
|
| 99 |
- The model predicts noise and variance with a 1000-step linear DDPM noise schedule. Image latents have shape 32Γ32Γ4.
|
| 100 |
- Latents are decoded with sd-vae-ft-ema (scaling factor 0.18215). The VAE is not included in this repository.
|
| 101 |
|
| 102 |
-
## Usage
|
| 103 |
|
| 104 |
The inference code lives in the [code repository](https://github.com/OneBoxCream/DyLoMo-DiT); its README has all options and the evaluation steps. A typical session looks like this:
|
| 105 |
|
|
@@ -119,19 +119,19 @@ python sample.py --model checkpoints/DyLoMo-DiT-XL --cfg-scale 4.0 --output samp
|
|
| 119 |
python sample_ddp.py --model checkpoints/DyLoMo-DiT-XL --output runs/xl
|
| 120 |
```
|
| 121 |
|
| 122 |
-
## Training data and procedure
|
| 123 |
|
| 124 |
The models are trained on the ImageNet-1k training set at 256Γ256. Training runs for 400k steps, except for `DyLoMo-DiT-XL-1.6M/`.
|
| 125 |
|
| 126 |
Training code is not part of this release.
|
| 127 |
|
| 128 |
-
## Intended use
|
| 129 |
|
| 130 |
These weights are released for research on generative models: reproducing the ImageNet results of the paper, studying sparse experts and weight-shared loops in diffusion Transformers, and serving as baselines.
|
| 131 |
|
| 132 |
This is a recommendation of the releasing authors. It is not a finding of the paper, and it is separate from the license terms of this repository.
|
| 133 |
|
| 134 |
-
## Limitations
|
| 135 |
|
| 136 |
These follow from the design of the models and from what the paper covers:
|
| 137 |
|
|
@@ -140,11 +140,11 @@ These follow from the design of the models and from what the paper covers:
|
|
| 140 |
- For these checkpoints the paper reports results with 250-step DDPM sampling only; other samplers and step counts are not covered.
|
| 141 |
- The released weights each represent one training seed. The paper's 400k comparison reports means over two seeds, and its results after 400k steps come from a single run, so small FID differences should not be over-interpreted.
|
| 142 |
|
| 143 |
-
## Potential risks (not evaluated in the paper)
|
| 144 |
|
| 145 |
The paper contains no evaluation of bias, fairness or safety for these models. Like other generative models trained on ImageNet-1k, they may reflect the content and biases of that dataset, including in how people are depicted.
|
| 146 |
|
| 147 |
-
## License
|
| 148 |
|
| 149 |
**Weights.** [Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)](https://creativecommons.org/licenses/by-nc/4.0/). This license covers the weight files in this repository.
|
| 150 |
|
|
@@ -152,7 +152,7 @@ The paper contains no evaluation of bias, fairness or safety for these models. L
|
|
| 152 |
|
| 153 |
The VAE and the evaluation tools are third-party components under their own licenses.
|
| 154 |
|
| 155 |
-
## Citation
|
| 156 |
|
| 157 |
```bibtex
|
| 158 |
@article{dylomodit,
|
|
|
|
| 22 |
|
| 23 |
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, sparse experts allocate parameter capacity across tokens, and the number of passes through the loop depends on the noise level. On ImageNet 256Γ256, at the same total parameters and forward compute, it reduces FID by 11β24% relative to DiT.
|
| 24 |
|
| 25 |
+
## π§± Models in this repository
|
| 26 |
|
| 27 |
Each model has its own folder with `model.safetensors` (EMA weights) and `config.json`.
|
| 28 |
|
|
|
|
| 51 |
|
| 52 |
**1.6M steps.** `DyLoMo-DiT-XL-1.6M/` continues the seed-42 run of `DyLoMo-DiT-XL/` to 1.6M steps under the same protocol; results after 400k steps come from this single run. At 1M steps DyLoMo-DiT-XL reaches an FID of 2.46 versus 3.08 for DiT-XL/2 trained the same way, and at 1.6M steps it reaches 2.18, below the 2.27 reported for DiT-XL/2 after 7M steps. The 2.18 is the result of the checkpoint in this folder.
|
| 53 |
|
| 54 |
+
## π Results (paper means)
|
| 55 |
|
| 56 |
ImageNet 256Γ256, 400k training steps, EMA weights, guidance scale 1.5, 50k images (Table 2 of the paper). Each DiT row is the baseline trained from scratch under the same protocol, at the same total parameters and forward compute as the DyLoMo-DiT below it. "vs. DiT" is the FID change relative to the DiT of the tier, and F1 is the harmonic mean of precision and recall.
|
| 57 |
|
|
|
|
| 66 |
|
| 67 |
All numbers are means over seeds, and percentages are computed from unrounded values.
|
| 68 |
|
| 69 |
+
## 𧬠Architecture
|
| 70 |
|
| 71 |
DyLoMo-DiT follows DiT in its inputs and outputs: patchified VAE latents (2Γ2 patches), conditioning on timestep and class through adaLN-Zero, and an output layer that predicts noise and variance. It differs in three ways.
|
| 72 |
|
|
|
|
| 91 |
|
| 92 |
The routing biases used for load balancing take part only in expert selection. The released files hold them next to the EMA weights, with the values they had at the end of training, and they are fixed at sampling time.
|
| 93 |
|
| 94 |
+
## π Evaluation protocol
|
| 95 |
|
| 96 |
- ImageNet 256Γ256, class-conditional, following the DiT protocol.
|
| 97 |
- EMA weights; 250-step DDPM sampling; classifier-free guidance at scale 1.5, applied only to the first three channels of the latent, as in DiT.
|
|
|
|
| 99 |
- The model predicts noise and variance with a 1000-step linear DDPM noise schedule. Image latents have shape 32Γ32Γ4.
|
| 100 |
- Latents are decoded with sd-vae-ft-ema (scaling factor 0.18215). The VAE is not included in this repository.
|
| 101 |
|
| 102 |
+
## π Usage
|
| 103 |
|
| 104 |
The inference code lives in the [code repository](https://github.com/OneBoxCream/DyLoMo-DiT); its README has all options and the evaluation steps. A typical session looks like this:
|
| 105 |
|
|
|
|
| 119 |
python sample_ddp.py --model checkpoints/DyLoMo-DiT-XL --output runs/xl
|
| 120 |
```
|
| 121 |
|
| 122 |
+
## π Training data and procedure
|
| 123 |
|
| 124 |
The models are trained on the ImageNet-1k training set at 256Γ256. Training runs for 400k steps, except for `DyLoMo-DiT-XL-1.6M/`.
|
| 125 |
|
| 126 |
Training code is not part of this release.
|
| 127 |
|
| 128 |
+
## π― Intended use
|
| 129 |
|
| 130 |
These weights are released for research on generative models: reproducing the ImageNet results of the paper, studying sparse experts and weight-shared loops in diffusion Transformers, and serving as baselines.
|
| 131 |
|
| 132 |
This is a recommendation of the releasing authors. It is not a finding of the paper, and it is separate from the license terms of this repository.
|
| 133 |
|
| 134 |
+
## β οΈ Limitations
|
| 135 |
|
| 136 |
These follow from the design of the models and from what the paper covers:
|
| 137 |
|
|
|
|
| 140 |
- For these checkpoints the paper reports results with 250-step DDPM sampling only; other samplers and step counts are not covered.
|
| 141 |
- The released weights each represent one training seed. The paper's 400k comparison reports means over two seeds, and its results after 400k steps come from a single run, so small FID differences should not be over-interpreted.
|
| 142 |
|
| 143 |
+
## π§ Potential risks (not evaluated in the paper)
|
| 144 |
|
| 145 |
The paper contains no evaluation of bias, fairness or safety for these models. Like other generative models trained on ImageNet-1k, they may reflect the content and biases of that dataset, including in how people are depicted.
|
| 146 |
|
| 147 |
+
## π License
|
| 148 |
|
| 149 |
**Weights.** [Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)](https://creativecommons.org/licenses/by-nc/4.0/). This license covers the weight files in this repository.
|
| 150 |
|
|
|
|
| 152 |
|
| 153 |
The VAE and the evaluation tools are third-party components under their own licenses.
|
| 154 |
|
| 155 |
+
## π Citation
|
| 156 |
|
| 157 |
```bibtex
|
| 158 |
@article{dylomodit,
|