KEMBAR78
Fix backward compatibility with accelerate in Trainer by qgallouedec · Pull Request #40668 · huggingface/transformers · GitHub
Skip to content

Conversation

@qgallouedec
Copy link
Member

@qgallouedec qgallouedec commented Sep 3, 2025

Accelerator().parallelism_config only exists from accelerate 1.10. This PR ensure backward compatibility with older versions

cc @ArthurZucker for patch please 🙏

@qgallouedec qgallouedec added the for patch Tag issues / labels that should be included in the next patch label Sep 3, 2025
@HuggingFaceDocBuilderDev

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.

Copy link
Member

@Cyrilvallez Cyrilvallez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Cyrilvallez Cyrilvallez merged commit e39f222 into main Sep 4, 2025
25 checks passed
@Cyrilvallez Cyrilvallez deleted the fix-backward-compat-pc branch September 4, 2025 16:15
Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thanks for fixing !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

for patch Tag issues / labels that should be included in the next patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants