Skip to content

build(deps): Update accelerate requirement from !=0.34,<1.1,>=0.20.3 to >=0.20.3,!=0.34,<1.7#515

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.7
Closed

build(deps): Update accelerate requirement from !=0.34,<1.1,>=0.20.3 to >=0.20.3,!=0.34,<1.7#515
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.7

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 2, 2025

Updates the requirements on accelerate to permit the latest version.

Release notes

Sourced from accelerate's releases.

v1.6.0: FSDPv2, DeepSpeed TP and XCCL backend support

FSDPv2 support

This release introduces the support for FSDPv2 thanks to @​S1ro1.

If you are using python code, you need to set fsdp_version=2 in FullyShardedDataParallelPlugin:

from accelerate import FullyShardedDataParallelPlugin, Accelerator
fsdp_plugin = FullyShardedDataParallelPlugin(
fsdp_version=2
# other options...
)
accelerator = Accelerator(fsdp_plugin=fsdp_plugin)

If want to convert a YAML config that contains the FSDPv1 config to FSDPv2 one , use our conversion tool:

accelerate to-fsdp2 --config_file config.yaml --output_file new_config.yaml`

To learn more about the difference between FSDPv1 and FSDPv2, read the following documentation.

DeepSpeed TP support

We have added initial support for DeepSpeed + TP. Not many changes were required as the DeepSpeed APIs was already compatible. We only needed to make sure that the dataloader was compatible with TP and that we were able to save the TP weights. Thanks @​inkcherry for the work ! huggingface/accelerate#3390.

To use TP with deepspeed, you need to update the setting in the deepspeed config file by including tensor_parallel key:

    ....
    "tensor_parallel":{
      "autotp_size": ${autotp_size}
    },
   ...

More details in this deepspeed PR.

Support for XCCL distributed backend

We've added support for XCCL which is an Intel distributed backend which can be used with XPU devices. More details in this torch PR. Thanks @​dvrogozh for the integration !

What's Changed

... (truncated)

Commits

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Apr 2, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2025

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@github-actions github-actions Bot added the build label Apr 2, 2025
@dependabot dependabot Bot force-pushed the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.7 branch from dbdc326 to 06b5e7d Compare April 7, 2025 14:19
@dependabot dependabot Bot force-pushed the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.7 branch 2 times, most recently from b5610e6 to 718c026 Compare April 16, 2025 14:11
@dependabot dependabot Bot requested a review from dushyantbehl as a code owner April 16, 2025 14:11
@dependabot dependabot Bot force-pushed the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.7 branch 2 times, most recently from ec66947 to 3b1059b Compare April 25, 2025 05:05
Updates the requirements on [accelerate](https://github.com/huggingface/accelerate) to permit the latest version.
- [Release notes](https://github.com/huggingface/accelerate/releases)
- [Commits](huggingface/accelerate@v0.20.3...v1.6.0)

---
updated-dependencies:
- dependency-name: accelerate
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.7 branch from 3b1059b to c78e8f1 Compare April 25, 2025 16:22
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 16, 2025

Superseded by #553.

@dependabot dependabot Bot closed this May 16, 2025
@dependabot dependabot Bot deleted the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.7 branch May 16, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants