Text-to-Image
Diffusers
Safetensors
looped-transformer
distillation
sd3
ShimaRinC commited on
Commit
d32dcaf
·
verified ·
1 Parent(s): e79714b

Model card: relation to the released code, license tag; NOTICE: QK-norm calibration, CDM license note

Browse files
Files changed (2) hide show
  1. NOTICE +2 -1
  2. README.md +5 -1
NOTICE CHANGED
@@ -20,7 +20,7 @@ structure.
20
 
21
  Initialization: the student's blocks are copies of teacher blocks. The input blocks copy teacher blocks 0 and 1, the shared blocks copy
22
  teacher blocks 2, 6, 10, 14 and 18, and the output blocks copy teacher blocks 22 and 23. The embeddings, the output norm and the output
23
- projection are copied from the teacher. The added modules start from their own initialization.
24
 
25
  Training: the student was trained by distillation from the teacher transformer on COCO 2017 train images (512 px) and captions, with the
26
  outputs after every loop trained toward the teacher, and an exponential moving average (EMA, decay 0.9995) of its weights was kept. The
@@ -48,3 +48,4 @@ The teacher of d2l-sd3-medium-turbo is the transformer of byliutao/stable-diffus
48
  Zihao Pan, Jinsong Lan, Xiaoyong Zhu, Ming-Ming Cheng, Bo Zheng and Yaxing Wang (arXiv:2605.06376; code https://github.com/byliutao/cdm).
49
  The README of that repository states: "This project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details."
50
  That model is itself a Derivative Work of Stable Diffusion 3 Medium.
 
 
20
 
21
  Initialization: the student's blocks are copies of teacher blocks. The input blocks copy teacher blocks 0 and 1, the shared blocks copy
22
  teacher blocks 2, 6, 10, 14 and 18, and the output blocks copy teacher blocks 22 and 23. The embeddings, the output norm and the output
23
+ projection are copied from the teacher. The per-stream QK-norm gains are initialized by calibration from the teacher's query and key statistics; the other added modules start from their own initialization.
24
 
25
  Training: the student was trained by distillation from the teacher transformer on COCO 2017 train images (512 px) and captions, with the
26
  outputs after every loop trained toward the teacher, and an exponential moving average (EMA, decay 0.9995) of its weights was kept. The
 
48
  Zihao Pan, Jinsong Lan, Xiaoyong Zhu, Ming-Ming Cheng, Bo Zheng and Yaxing Wang (arXiv:2605.06376; code https://github.com/byliutao/cdm).
49
  The README of that repository states: "This project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details."
50
  That model is itself a Derivative Work of Stable Diffusion 3 Medium.
51
+ The MIT statement of that repository concerns its code. It does not change the Stability AI Non-Commercial Research Community License that applies to the weights derived from Stable Diffusion 3 Medium, including d2l-sd3-medium-turbo.
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: other
3
- license_name: stabilityai-ai-nc-research-community
4
  license_link: LICENSE
5
  base_model:
6
  - stabilityai/stable-diffusion-3-medium-diffusers
@@ -28,6 +28,10 @@ The VAE, the text encoders, the tokenizers and the scheduler are not in these fi
28
 
29
  Each folder holds `config.json` and `diffusion_pytorch_model.safetensors` (fp32).
30
 
 
 
 
 
31
  ## Results
32
 
33
  The numbers below are from the paper. Avg. is the mean of the four text-to-image metrics, in percent relative to the teacher.
 
1
  ---
2
  license: other
3
+ license_name: stabilityai-nc-research-community
4
  license_link: LICENSE
5
  base_model:
6
  - stabilityai/stable-diffusion-3-medium-diffusers
 
28
 
29
  Each folder holds `config.json` and `diffusion_pytorch_model.safetensors` (fp32).
30
 
31
+ ## Relation to the released code
32
+
33
+ The default config of the code (`configs/sd3m_d2l.yaml`) reproduces the plain distilled student after 100k steps, which gives the "Distill" rows of the paper (see the table in the GitHub README). `d2l-sd3-medium` is that 100k EMA combined 1:1 with the average of EMA weights from a continuation that regresses the flow-matching velocity of the training images (data target, no rollout rows). The continuation and the weight averaging are not part of the code release. `d2l-sd3-medium-turbo` was trained with the CDM four-step teacher (the transformer of `byliutao/stable-diffusion-3-medium-turbo`, with teacher CFG 1.0 in the rollout instead of 4.5), and its weights are the uniform average of five EMA checkpoints. The code supports sampling it (`--sigmas`), but its training configuration and the averaging are not included.
34
+
35
  ## Results
36
 
37
  The numbers below are from the paper. Avg. is the mean of the four text-to-image metrics, in percent relative to the teacher.