Skip to content

fix norm not training in train_control_lora_flux.py#11832

Merged
yiyixuxu merged 1 commit intohuggingface:mainfrom
Luo-Yihang:fix_flux_control_lora_norm
Jul 2, 2025
Merged

fix norm not training in train_control_lora_flux.py#11832
yiyixuxu merged 1 commit intohuggingface:mainfrom
Luo-Yihang:fix_flux_control_lora_norm

Conversation

@Luo-Yihang
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR fixes an issue in examples/flux-control/train_control_lora_flux.py where train_norm_layers (if set) were unintentionally disabled (requires_grad = False) after calling flux_transformer.add_adapter(transformer_lora_config). As a result, the normalization layers were not being trained as expected.

This PR fixes that.

@sayakpaul — Appreciate it if you could take a look.

@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 5ef74fd into huggingface:main Jul 2, 2025
8 checks passed
tolgacangoz pushed a commit to tolgacangoz/diffusers that referenced this pull request Jul 5, 2025
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