Skip to content

Minor modification to support DC-AE-turbo #12169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 18, 2025

Conversation

chenjy2003
Copy link
Contributor

What does this PR do?

This PR will add minor modification to support DC-AE-turbo into the diffusers lib. dc-ae-turbo-f32c32-sana-1.1 has the same encoder as dc-ae-f32c32-sana-1.0 and a lightweight decoder to accelerate decoding.

Could you please have a look? Thanks! @sayakpaul @yiyixuxu
Cc: @lawrence-cj

@sayakpaul sayakpaul requested a review from a-r-r-o-w August 18, 2025 02:44
Copy link
Member

@a-r-r-o-w a-r-r-o-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @chenjy2003!

@@ -441,6 +448,9 @@ def __init__(
downsample_block_type: str = "pixel_unshuffle",
decoder_norm_types: Union[str, Tuple[str]] = "rms_norm",
decoder_act_fns: Union[str, Tuple[str]] = "silu",
encoder_out_shortcut: bool = True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting for other reviewers - this change looks safe because previous out_shortcut default was True as well in the encoder

@@ -441,6 +448,9 @@ def __init__(
downsample_block_type: str = "pixel_unshuffle",
decoder_norm_types: Union[str, Tuple[str]] = "rms_norm",
decoder_act_fns: Union[str, Tuple[str]] = "silu",
encoder_out_shortcut: bool = True,
decoder_in_shortcut: bool = True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is safe because previous in_shortcut default was True in decoder

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@a-r-r-o-w
Copy link
Member

Failing tests are unrelated

@a-r-r-o-w a-r-r-o-w merged commit 85cbe58 into huggingface:main Aug 18, 2025
10 of 11 checks passed
@chenjy2003
Copy link
Contributor Author

@a-r-r-o-w Thanks so much for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants