Skip to content
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

zero3 train flux, accelerate unwrap_model got tensor(size(0)) #1782

Open
Reginald-L opened this issue Nov 14, 2024 · 2 comments
Open

zero3 train flux, accelerate unwrap_model got tensor(size(0)) #1782

Reginald-L opened this issue Nov 14, 2024 · 2 comments

Comments

@Reginald-L
Copy link

Hi, I am using deepspeed zero3 to fine tune flux model using the script - flux_train_network.py.

flux = accelerator.unwrap_model(flux)
print(f"flux - {flux.state_dict()['single_blocks.7.linear1.weight'].shape}")
print(f"flux - {flux.state_dict()['single_blocks.7.linear1.weight'].device}")

I got the below result:
image

and When I save the trained model, I got this:
image

Here is my zero config:
image

@kohya-ss
Copy link
Owner

DeepSpeed is not tested yet for FLUX.1 training. We plan to support this in the future, but it may take some time.

@Youngon
Copy link

Youngon commented Feb 17, 2025

Hi,deepspeed for flux trainning works or not now (2025/02/17)?

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

No branches or pull requests

3 participants