-
Notifications
You must be signed in to change notification settings - Fork 6.3k
DeepSpeed adaption for flux-kontext #12240
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
base: main
Are you sure you want to change the base?
Conversation
Cc: @sayakpaul @a-r-r-o-w Please take a look at this PR. Thanks! |
3950d2e
to
3094c2b
Compare
@sayakpaul I've also added ds support for load/save ckpt function. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
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. |
@sayakpaul Please approve the workflow, thx :) |
Hi @sayakpaul, It looks weird but I think the original code does not need the empty line. I added the empty line to it. Thanks :) |
Cc: @sayakpaul, I checked with ruff and make quality, they all passed. Sorry for the trouble and thanks for your help :) |
What does this PR do?
"ValueError: At least one of the dataloaders passed to accelerate.prepare() has None as batch size. Please set an integer value in train_micro_batch_size_per_gpu in the deepspeed config file or assign integer value to AcceleratorState().deepspeed_plugin.deepspeed_config['train_micro_batch_size_per_gpu']."
I think the current batch_sampler does not support deepspeed. So I added this function to support it.
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.