Skip to content

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

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

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

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 16, 2025

Updates the requirements on accelerate to permit the latest version.

Release notes

Sourced from accelerate's releases.

v1.7.0 : Regional compilation, Layerwise casting hook, FSDPv2 + QLoRA

Regional compilation

Instead of compiling the entire model at once, regional compilation targets repeated blocks (such as decoder layers) first. This allows the compiler to cache and reuse optimized code for subsequent blocks, significantly reducing the cold start compilation time typically seen during the first inference. Thanks @​IlyasMoutawwakil for the feature ! You can view the full benchmark here, and check out our updated compilation guide for more details!

compilation_time-1

To enable this feature, set use_regional_compilation=True in the TorchDynamoPlugin configuration.

# Configure the compilation backend
dynamo_plugin = TorchDynamoPlugin(
    use_regional_compilation=True,
    ... # other parameters
)
# Initialize accelerator with the plugin
accelerator = Accelerator(dynamo_plugin=dynamo_plugin)
# This will apply compile_regions to your model
model = accelerator.prepare(model)

Layerwise casting hook

We've introduced a new hook that enables per-layer upcasting and downcasting (e.g., for Linear layers) during inference. This allows users to run models with separate storage and compute dtypes, resulting in memory savings. The concept was first implemented in diffusers, where downcasting models to FP8 proved effective without major quality degradation. Contributed by @​sayakpaul in huggingface/accelerate#3427

model = ....
storage_dtype = torch.float8_e4m3fn
compute_dtype = torch.bfloat16
attach_layerwise_casting_hooks(
            model,
            storage_dtype=storage_dtype,
            compute_dtype=compute_dtype,
        )

Better FSDP2 support

This release includes numerous new features and bug fixes. Notably, we’ve added support for FULL_STATE_DICT, a widely used option in FSDP, now enabling .save_pretrained() in transformers to work with FSDP2 wrapped models. QLoRA training is now supported as well but more testing is needed. We have also resolved a backend issue related to parameter offloading to CPU. Additionally, a significant memory spike that occurred when cpu_ram_efficient_loading=True was enabled has been fixed. Several other minor improvements and fixes are also included—see the What’s Changed section for full details.

Better HPU support:

We have added a documentation for Intel Gaudi hardware ! The support is already available since v1.5.0 through this PR.

... (truncated)

Commits
  • 9cb1a6b Release: v1.7.0
  • 97c93c4 enable test_dispatch_model_tied_weights_memory_with_nested_offload_cpu on xpu...
  • cd37bbb set backend correctly for CUDA+FSDP2+cpu-offload (#3574)
  • 7aa3b56 Fix prevent duplicate GPU usage in distributed processing (#3526)
  • 14f4306 reenable FSDP2+qlora support (#3546)
  • e6e7175 Add regional compilation to cli tools and env vars (#3572)
  • 1f6efce tune env command output (#3570)
  • 9fa97f9 simplify model.to logic (#3562)
  • 764eee4 add xpu synchronize (#3563)
  • 202e6c1 Update dynamic env handling to preserve None when USE_DYNAMIC is unset (#3567)
  • Additional commits viewable in compare view

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 May 16, 2025
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels May 16, 2025
@dependabot dependabot Bot requested a review from Ssukriti May 16, 2025 04:49
@github-actions
Copy link
Copy Markdown

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 May 16, 2025
@dependabot dependabot Bot force-pushed the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.8 branch from fbf1302 to dd1c331 Compare June 2, 2025 05:46
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.7.0)

---
updated-dependencies:
- dependency-name: accelerate
  dependency-version: 1.7.0
  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.8 branch from dd1c331 to cb425aa Compare June 10, 2025 14:52
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jun 11, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.8 branch June 11, 2025 05:28
@dushyantbehl dushyantbehl restored the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.8 branch June 13, 2025 06:19
@dushyantbehl dushyantbehl reopened this Jun 13, 2025
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jun 20, 2025

Superseded by #566.

@dependabot dependabot Bot closed this Jun 20, 2025
@dependabot dependabot Bot deleted the dependabot/pip/accelerate-gte-0.20.3-and-neq-0.34-and-lt-1.8 branch June 20, 2025 04:23
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.

1 participant