[Sana] Add Sana, including `SanaPipeline`, `SanaPAGPipeline`, `LinearAttentionProcessor`, `Flow-based DPM-sovler` and so on. #9982
first add a script for DC-AE;
6e616a9c
Merge remote-tracking branch 'upstream/main' into DC-AE
d2e187a0
DC-AE init
90e89393
replace triton with custom implementation
825c975c
1. rename file and remove un-used codes;
3a44fa4c
no longer rely on omegaconf and dataclass
55b2615d
merge
6fb7fdb8
Merge remote-tracking branch 'upstream/main' into DC-AE
c323e76b
replace custom activation with diffuers activation
da7caa58
remove dc_ae attention in attention_processor.py
fb6d92a4
iinherit from ModelMixin
5e63a1ae
inherit from ConfigMixin
72cce2b4
dc-ae reduce to one file
8f9b4e43
Merge remote-tracking branch 'upstream/main' into DC-AE
b7f68f9a
Merge branch 'huggingface:main' into DC-AE
6d96b954
Merge remote-tracking branch 'refs/remotes/origin/main' into DC-AE
3c3cc517
update downsample and upsample
14486810
merge
bf40fe85
clean code
dd7718a2
support DecoderOutput
19986a52
Merge branch 'main' into DC-AE
3481e23c
Merge branch 'main' into DC-AE
0e818df8
remove get_same_padding and val2tuple
c6eb2336
remove autocast and some assert
59de0a34
update ResBlock
ea604a4d
remove contents within super().__init__
80dce027
Update src/diffusers/models/autoencoders/dc_ae.py
1752afdd
remove opsequential
883bcf4f
Merge branch 'DC-AE' of github.com:lawrence-cj/diffusers into DC-AE
25ae3890
update other blocks to support the removal of build_norm
96e844b7
Merge branch 'main' into DC-AE
59b6e257
remove build encoder/decoder project in/out
7ce9ff2f
Merge branch 'DC-AE' of github.com:lawrence-cj/diffusers into DC-AE
30d6308d
remove inheritance of RMSNorm2d from LayerNorm
cab56b16
remove reset_parameters for RMSNorm2d
b42bb548
remove device and dtype in RMSNorm2d __init__
2e04a996
Update src/diffusers/models/autoencoders/dc_ae.py
b4f75f22
Update src/diffusers/models/autoencoders/dc_ae.py
c82f828b
Update src/diffusers/models/autoencoders/dc_ae.py
22ea5fd7
bghira
commented
on 2024-11-23
bghira
commented
on 2024-11-23
remove op_list & build_block
4f5cbb43
remove build_stage_main
2f6bbad8
Merge branch 'main' into DC-AE
44957833
change file name to autoencoder_dc
4d3c0266
Merge branch 'DC-AE' of github.com:lawrence-cj/diffusers into DC-AE
e007057d
move LiteMLA to attention.py
d3d9c840
align with other vae decode output;
be9826c5
add DC-AE into init files;
20da2012
update
5ed50e98
make quality && make style;
2d59056c
quick push before dgx disappears again
c1c02a20
update
1f8a3b3b
make style
7b9d7e55
update
bf6c211e
update
a2ec5f81
fix
f5876c5b
refactor
44034a6f
refactor
63792412
refactor
77571a8f
update
c4d0867c
possibly change to nn.Linear
0bdb7eff
refactor
54e933b3
Merge branch 'main' into aryan-dcae
babc9f59
make fix-copies
3d5faaff
resolve conflicts & merge
65edfa5e
replace vae with ae
ca3ac4de
replace get_block_from_block_type to get_block
9ef7b597
replace downsample_block_type from Conv to conv for consistency
074817cf
add scaling factors
64de66a4
incorporate changes for all checkpoints
0bda5c51
make style
eb64d52c
Merge branch 'main' into DC-AE
4a224ce9
move mla to attention processor file; split qkv conv to linears
30c32383
refactor
39a947ce
Merge branch 'main' into DC-AE
68f817ac
add tests
da834d51
Merge branch 'main' into DC-AE
632ad3ba
hlky
commented
on 2024-12-04
from original file loader
d6c748c7
Merge branch 'main' into DC-AE
46eb5043
add docs
31f9fc6c
add standard autoencoder methods
6f29e2ab
combine attention processor
b6e8fbac
fix tests
f862bae8
update
f9fce24a
Merge branch 'main' into DC-AE
e5947451
minor fix
3c0b1ca3
minor fix
91057d40
Merge branch 'main' into DC-AE
67aa715e
minor fix & in/out shortcut rename
eda66e19
minor fix
e3d33e6a
Merge branch 'main' into DC-AE
cc97502c
make style
2b370df4
fix paper link
94355abe
Merge branch 'main' into DC-AE
a191f070
update docs
116c0495
update single file loading
b6e0aba6
Merge branch 'main' into DC-AE
ec4e84fd
make style
dbae8f1d
remove single file loading support; todo for DN6
042c2a0c
Apply suggestions from code review
f2525b94
Merge branch 'main' into DC-AE
d3d224c0
add abstract
6122b84a
lawrence-cj
force pushed
from
0b470549
to
593b6831
1 year ago
1. add DCAE into diffusers;
5f5a1709
add DCAE_HF into diffusers;
b33da4de
bug fixed;
0407d5ad
add SanaPipeline, SanaTransformer2D into diffusers;
fdc95753
add sanaLinearAttnProcessor2_0;
b90ec21f
first update for SanaTransformer;
ebe8100e
first update for SanaPipeline;
a34d173d
first success run SanaPipeline;
d2a681cb
model output finally match with original model with the same intput;
cb2e566b
code update;
c238717d
code update;
406abb4d
add a flow dpm-solver scripts
cfc844e9
🎉[important update]
b4e8e637
🎉🔧[important update & fix huge bugs!!]
9b2b76a9
remove prints;
48e45016
add convert sana official checkpoint to diffusers format Safetensor.
5870055e
Update src/diffusers/models/transformers/sana_transformer_2d.py
94edc7e7
Update src/diffusers/models/transformers/sana_transformer_2d.py
64a64403
Update src/diffusers/models/transformers/sana_transformer_2d.py
09cf898a
Update src/diffusers/pipelines/pag/pipeline_pag_sana.py
219e0718
Update src/diffusers/models/transformers/sana_transformer_2d.py
11f1c8de
Update src/diffusers/models/transformers/sana_transformer_2d.py
12b5160b
Update src/diffusers/pipelines/sana/pipeline_sana.py
7823c8f6
Update src/diffusers/pipelines/sana/pipeline_sana.py
d3fd40a8
update Sana for DC-AE's recent commit;
abee1eec
make style && make quality
fe08f679
Add StableDiffusion3PAGImg2Img Pipeline + Fix SD3 Unconditional PAG (…
658e7e9a
make the vae can be None in `__init__` of `SanaPipeline`
6ab2d8d0
Update src/diffusers/models/transformers/sana_transformer_2d.py
7602dd55
change the ae related code due to the latest update of DCAE branch;
5687ba19
change the ae related code due to the latest update of DCAE branch;
b76493f9
1. change code based on AutoencoderDC;
297c0e78
update for solving conversation.
e7c1a59e
1. fix bugs and run convert script success;
ad3935f9
lawrence-cj
force pushed
from
7aa1aa98
to
ad3935f9
1 year ago
Merge remote-tracking branch 'refs/remotes/origin/main' into Sana
2bd4b9ca
make style && make quality;
f0aa9b9d
1. remove un-unsed parameters in init;
7fa435fa
Merge branch 'main' into Sana
bd13e369
Merge branch 'main' into Sana
0f5d848c
remove test file
0f9daecb
refactor; add docs; add tests; update conversion script
f6985241
make style
9d314263
make fix-copies
0debade6
refactor
2c828c22
udpate pipelines
1ab6ab29
pag tests and refactor
3ab6db76
Merge branch 'main' into Sana
6a6b014b
remove sana pag conversion script
2841ad28
handle weight casting in conversion script
2a363a38
hlky
approved these changes
on 2024-12-12
update conversion script
b0d5cf69
Merge branch 'main' into Sana
d07d4959
add a processor
34c5880e
1. add bf16 pth file path;
47cc0463
fix fast \tests
de2c5f49
change gemma-2-2b-it ckpt to a non-gated repo;
9f11659f
fix the pth path bug in conversion script;
d3312cce
change grad ckpt to original; make style
3c107e88
Merge branch 'main' into Sana
f4134076
fix the complex_human_instruct bug and typo;
7c23fcc1
Merge branch 'main' into Sana
9f10ce75
remove dpmsolver flow scheduler
eee08ad5
apply review suggestions
9e0ca0b7
Merge branch 'main' into Sana
98b778ec
change the `FlowMatchEulerDiscreteScheduler` to default `DPMSolverMul…
b3f72124
fix the tokenizer.padding_side='right' bug;
b4af50d6
Merge branch 'main' into Sana
c948a670
update docs
b7837c05
make fix-copies
5fb973c4
fix imports
168a0af7
fix docs
0d722cb0
hlky
approved these changes
on 2024-12-15
add integration test
0d32ef58
update docs
ea7878ca
Merge branch 'main' into Sana
7b82bdc6
update examples
884d29e8
fix convert_model_output in schedulers
1bc15548
a-r-r-o-w
approved these changes
on 2024-12-15
fix failing tests
cb212893
a-r-r-o-w
merged
5a196e3d
into main 1 year ago
Assignees
No one assigned
Labels
close-to-merge
roadmap
Login to write a write a comment.
Login via GitHub