Uh oh!
There was an error while loading. Please reload this page.
DeepSpeed adaption for flux-kontext - #12240
Conversation
leisuzz
commented
Aug 26, 2025
Cc: @sayakpaul@a-r-r-o-w Please take a look at this PR. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
3950d2e to
3094c2bCompareleisuzz
commented
Aug 26, 2025
@sayakpaul I've also added ds support for load/save ckpt function. Thanks! |
HuggingFaceDocBuilderDev
commented
Aug 26, 2025
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. |
leisuzz
commented
Aug 28, 2025
@sayakpaul Please approve the workflow, thx :) |
leisuzz
commented
Aug 28, 2025
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 :) |
leisuzz
commented
Aug 29, 2025
Cc: @sayakpaul, I checked with ruff and make quality, they all passed. Sorry for the trouble and thanks for your help :) |
leisuzz
commented
Sep 1, 2025
sayakpaul
commented
Sep 1, 2025
@leisuzz could I request you to not ping the maintainers multiple times on a PR? This has happened in the past, so, I thought I would bring it up. |
leisuzz
commented
Sep 1, 2025
@sayakpaul Sorry about that |
leisuzz
commented
Sep 5, 2025
Hi @sayakpaul, |
leisuzz
commented
Sep 9, 2025
Hi @sayakpaul, I think the failing tests are unrelated. Thank you for your help :) |
Uh oh!
There was an error while loading. Please reload this page.
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.