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

Rename the weight folders to dooop-sd3-medium and dooop-sd3-medium-turbo (method name Dooop)

Browse files
NOTICE CHANGED
@@ -1,7 +1,7 @@
1
  This Stability AI Model is licensed under the Stability AI Non-Commercial Research Community License, Copyright (c) Stability AI Ltd. All Rights Reserved.
2
 
3
  The attribution notice above applies to Stable Diffusion 3 Medium (stabilityai/stable-diffusion-3-medium-diffusers) and to both weight sets
4
- distributed here, d2l-sd3-medium and d2l-sd3-medium-turbo, which are Derivative Works of it. The license is in the LICENSE file.
5
 
6
 
7
  Changes to Stable Diffusion 3 Medium (Distill to Loop)
@@ -26,26 +26,26 @@ Training: the student was trained by distillation from the teacher transformer o
26
  outputs after every loop trained toward the teacher, and an exponential moving average (EMA, decay 0.9995) of its weights was kept. The
27
  released weights are post-hoc combinations of EMA weights, as follows.
28
 
29
- d2l-sd3-medium
30
  Teacher: the Stable Diffusion 3 Medium transformer; the student's blocks were initialized from it.
31
  Weights: 0.5 x the EMA weights at step 100,000 of the distillation run + 0.5 x the uniform average of the EMA weights at steps 105,000,
32
  110,000, 115,000 and 120,000 of a continuation of that run from step 100,000 in which the training target was the flow-matching
33
  velocity of the training images instead of the teacher's prediction.
34
 
35
- d2l-sd3-medium-turbo
36
  Teacher: the transformer of byliutao/stable-diffusion-3-medium-turbo (revision 9ebe6142e456b3d262e8739d7b99fa4213d2c008), a four-step
37
  model distilled from Stable Diffusion 3 Medium with Continuous-Time Distribution Matching (CDM); the student's blocks were initialized
38
  from this transformer.
39
  Weights: the uniform average of the EMA weights at steps 100,000, 105,000, 110,000, 115,000 and 120,000.
40
 
41
 
42
- Attribution for d2l-sd3-medium-turbo only
43
  =========================================
44
 
45
- The teacher of d2l-sd3-medium-turbo is the transformer of byliutao/stable-diffusion-3-medium-turbo
46
  (https://huggingface.co/byliutao/stable-diffusion-3-medium-turbo, revision 9ebe6142e456b3d262e8739d7b99fa4213d2c008), from
47
  "Continuous-Time Distribution Matching for Few-Step Diffusion Distillation" by Tao Liu, Hao Yan, Mengting Chen, Taihang Hu, Zhengrong Yue,
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.
 
1
  This Stability AI Model is licensed under the Stability AI Non-Commercial Research Community License, Copyright (c) Stability AI Ltd. All Rights Reserved.
2
 
3
  The attribution notice above applies to Stable Diffusion 3 Medium (stabilityai/stable-diffusion-3-medium-diffusers) and to both weight sets
4
+ distributed here, dooop-sd3-medium and dooop-sd3-medium-turbo, which are Derivative Works of it. The license is in the LICENSE file.
5
 
6
 
7
  Changes to Stable Diffusion 3 Medium (Distill to Loop)
 
26
  outputs after every loop trained toward the teacher, and an exponential moving average (EMA, decay 0.9995) of its weights was kept. The
27
  released weights are post-hoc combinations of EMA weights, as follows.
28
 
29
+ dooop-sd3-medium
30
  Teacher: the Stable Diffusion 3 Medium transformer; the student's blocks were initialized from it.
31
  Weights: 0.5 x the EMA weights at step 100,000 of the distillation run + 0.5 x the uniform average of the EMA weights at steps 105,000,
32
  110,000, 115,000 and 120,000 of a continuation of that run from step 100,000 in which the training target was the flow-matching
33
  velocity of the training images instead of the teacher's prediction.
34
 
35
+ dooop-sd3-medium-turbo
36
  Teacher: the transformer of byliutao/stable-diffusion-3-medium-turbo (revision 9ebe6142e456b3d262e8739d7b99fa4213d2c008), a four-step
37
  model distilled from Stable Diffusion 3 Medium with Continuous-Time Distribution Matching (CDM); the student's blocks were initialized
38
  from this transformer.
39
  Weights: the uniform average of the EMA weights at steps 100,000, 105,000, 110,000, 115,000 and 120,000.
40
 
41
 
42
+ Attribution for dooop-sd3-medium-turbo only
43
  =========================================
44
 
45
+ The teacher of dooop-sd3-medium-turbo is the transformer of byliutao/stable-diffusion-3-medium-turbo
46
  (https://huggingface.co/byliutao/stable-diffusion-3-medium-turbo, revision 9ebe6142e456b3d262e8739d7b99fa4213d2c008), from
47
  "Continuous-Time Distribution Matching for Few-Step Diffusion Distillation" by Tao Liu, Hao Yan, Mengting Chen, Taihang Hu, Zhengrong Yue,
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 dooop-sd3-medium-turbo.
README.md CHANGED
@@ -19,8 +19,8 @@ Looped students of SD3-medium from the paper "Distill to Loop: Turning Pretraine
19
 
20
  ## Files
21
 
22
- - `d2l-sd3-medium/`: distilled from SD3-medium.
23
- - `d2l-sd3-medium-turbo/`: distilled from the four-step CDM SD3-medium, `byliutao/stable-diffusion-3-medium-turbo`.
24
 
25
  ## Usage
26
 
@@ -29,7 +29,7 @@ import torch
29
  from huggingface_hub import snapshot_download
30
  from distill_to_loop import load_pipeline
31
 
32
- student_dir = snapshot_download("ShimaRinC/Distill-to-Loop") + "/d2l-sd3-medium"
33
  pipe = load_pipeline(student_dir, device="cuda")
34
  pipe.transformer.loop_rounds = 4
35
  image = pipe("a lighthouse on a cliff at sunset", num_inference_steps=28, guidance_scale=7.0, height=512, width=512,
@@ -37,7 +37,7 @@ image = pipe("a lighthouse on a cliff at sunset", num_inference_steps=28, guidan
37
  image.save("out.png")
38
  ```
39
 
40
- `d2l-sd3-medium-turbo` samples in four steps with `sigmas=[1.0, 0.75, 0.5, 0.25]` and `guidance_scale=1.0`.
41
 
42
  ## License
43
 
@@ -46,7 +46,7 @@ These weights are Derivative Works of Stable Diffusion 3 Medium and are licensed
46
  ## Citation
47
 
48
  ```bibtex
49
- @article{d2l,
50
  title = {Distill to Loop: Turning Pretrained Diffusion Transformers into Looped Models with Adjustable Depth},
51
  journal = {arXiv preprint arXiv:<ARXIV_ID>},
52
  year = {<YEAR>}
 
19
 
20
  ## Files
21
 
22
+ - `dooop-sd3-medium/`: distilled from SD3-medium.
23
+ - `dooop-sd3-medium-turbo/`: distilled from the four-step CDM SD3-medium, `byliutao/stable-diffusion-3-medium-turbo`.
24
 
25
  ## Usage
26
 
 
29
  from huggingface_hub import snapshot_download
30
  from distill_to_loop import load_pipeline
31
 
32
+ student_dir = snapshot_download("ShimaRinC/Distill-to-Loop") + "/dooop-sd3-medium"
33
  pipe = load_pipeline(student_dir, device="cuda")
34
  pipe.transformer.loop_rounds = 4
35
  image = pipe("a lighthouse on a cliff at sunset", num_inference_steps=28, guidance_scale=7.0, height=512, width=512,
 
37
  image.save("out.png")
38
  ```
39
 
40
+ `dooop-sd3-medium-turbo` samples in four steps with `sigmas=[1.0, 0.75, 0.5, 0.25]` and `guidance_scale=1.0`.
41
 
42
  ## License
43
 
 
46
  ## Citation
47
 
48
  ```bibtex
49
+ @article{dooop,
50
  title = {Distill to Loop: Turning Pretrained Diffusion Transformers into Looped Models with Adjustable Depth},
51
  journal = {arXiv preprint arXiv:<ARXIV_ID>},
52
  year = {<YEAR>}
{d2l-sd3-medium-turbo → dooop-sd3-medium-turbo}/config.json RENAMED
File without changes
{d2l-sd3-medium-turbo → dooop-sd3-medium-turbo}/diffusion_pytorch_model.safetensors RENAMED
File without changes
{d2l-sd3-medium → dooop-sd3-medium}/config.json RENAMED
File without changes
{d2l-sd3-medium → dooop-sd3-medium}/diffusion_pytorch_model.safetensors RENAMED
File without changes