Skip to content

FLUX.2 small decoder#13428

Merged
yiyixuxu merged 2 commits intohuggingface:mainfrom
huemin-art:main
Apr 7, 2026
Merged

FLUX.2 small decoder#13428
yiyixuxu merged 2 commits intohuggingface:mainfrom
huemin-art:main

Conversation

@huemin-art
Copy link
Copy Markdown
Contributor

What does this PR do?

Adds an optional decoder_block_out_channels parameter to AutoencoderKLFlux2 so the decoder can use different channel widths than the encoder. This is needed to support the FLUX.2 small decoder VAE (black-forest-labs/FLUX.2-small-decoder). When not set, falls back to block_out_channels (no behavior change).

Who can review?

@yiyixuxu

Copy link
Copy Markdown
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

thanks!

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

@yiyixuxu yiyixuxu merged commit 9884ed2 into huggingface:main Apr 7, 2026
11 checks passed
terarachang pushed a commit to terarachang/diffusers that referenced this pull request Apr 30, 2026
Add optional decoder_block_out_channels parameter to AutoencoderKLFlux2
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.

3 participants