KEMBAR78
Fix trainer for py3.9 by SunMarc · Pull Request #41359 · huggingface/transformers · GitHub
Skip to content

Conversation

@SunMarc
Copy link
Member

@SunMarc SunMarc commented Oct 6, 2025

What does this PR do?

This PR fixes trainer compatibility with py3.9. To be added in a patch for the latest release. Asked by optimum folks cc @IlyasMoutawwakil

@SunMarc SunMarc added the for patch Tag issues / labels that should be included in the next patch label Oct 6, 2025
@SunMarc SunMarc requested a review from Cyrilvallez October 6, 2025 09:18
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.

I just merged #41268 on main, if you prefer ton only add it on the v4 branch.
No strong opinion though, we can merge on main as well since it's only typing!

@SunMarc
Copy link
Member Author

SunMarc commented Oct 6, 2025

For this one, let's merge on main and cherry pick it on v4 branch as this is just typing !

@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.

@SunMarc SunMarc mentioned this pull request Oct 6, 2025
5 tasks
@Samoed
Copy link
Contributor

Samoed commented Oct 6, 2025

Can you close this issue #41339 after merge?

@Rocketknight1
Copy link
Member

Hi, this one was my bad! We've been updating for Py3.10 because Py3.9 is EOL next week. Do we really want to revert to support it?

@SunMarc
Copy link
Member Author

SunMarc commented Oct 23, 2025

Don't worry @Rocketknight1, it was for a patch that was released last week

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.

5 participants