Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix/freeu suppress complexhalf warning #12511

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

Open
SrijanUpadhyay wants to merge 2 commits into huggingface:main
base: main
Choose a base branch
Loading
from SrijanUpadhyay:fix/freeu-suppress-complexhalf-warning

Conversation

@SrijanUpadhyay
Copy link

@SrijanUpadhyay SrijanUpadhyay commented Oct 19, 2025

When using FreeU with half-precision (torch.float16) models, PyTorch may emit
UserWarnings about experimental ComplexHalf support during FFT operations.
This change locally suppresses that specific warning in the fourier_filter
function to avoid flooding user logs while preserving behavior.

This commit adds configurations and setup scripts to resolve NCCL timeout
issues during DeepSpeed ZeRO-2 training on H200 GPUs. The changes include:
- Extended NCCL and DeepSpeed timeouts
- Optimized bucket sizes for gradient communication
- CPU and dataloader optimizations
- System shared memory improvements
- Enhanced debugging capabilities
The implementation provides:
1. DeepSpeed ZeRO-2 configuration (ds_config_zero2.json)
2. Environment setup script (setup_training_env.sh)
3. Accelerate configuration (accelerate_config.yaml)
These changes improve training stability on H200 GPUs with high-resolution
data and aggressive configurations.
...ations
When using FreeU with half-precision (torch.float16) models, PyTorch may emit
UserWarnings about experimental ComplexHalf support during FFT operations.
This change locally suppresses that specific warning in the fourier_filter
function to avoid flooding user logs while preserving behavior.
- Added warnings import
- Added local warning suppression around fftn/ifftn calls when dtype is float16
- Only suppresses the specific ComplexHalf experimental warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Why use torch.repeat instead of torch.repeat_interleave in train_dreambooth_lora_sdxl

1 participant

AltStyle によって変換されたページ (->オリジナル) /