Skip to content

Conversation

@zucchini-nlp
Copy link
Member

@zucchini-nlp zucchini-nlp commented Mar 22, 2025

What does this PR do?

Fixes #36888 and fixes #36906. As per title, the kwargs we are using (flatten_with_keys_fn) are available only from 2.3.0. We can also pin at 2.2.0 and pass it as positional argument, but then flatten_with_keys_fn will not be used in torch (from what I can see in torch repo)

@zucchini-nlp zucchini-nlp requested a review from gante March 22, 2025 20:33
@github-actions github-actions bot marked this pull request as draft March 22, 2025 20:33
@github-actions
Copy link
Contributor

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. When it is ready for review, please click the Ready for review button (at the bottom of the PR page).

@zucchini-nlp zucchini-nlp marked this pull request as ready for review March 22, 2025 20:34
@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.

@gante gante added the for patch Tag issues / labels that should be included in the next patch label Mar 23, 2025
Copy link
Contributor

@gante gante left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for correcting the pin!

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Ok thanks

@ArthurZucker ArthurZucker merged commit 48da44b into huggingface:main Mar 24, 2025
10 checks passed
@geraldstanje1
Copy link

hi thanks for fixing - is this a hotfix for 4.50.0?

@zucchini-nlp
Copy link
Member Author

@geraldstanje1 yes, we will do patch release later today :)

ArthurZucker pushed a commit that referenced this pull request Mar 25, 2025
zucchini-nlp added a commit to zucchini-nlp/transformers that referenced this pull request May 14, 2025
soghomon-b pushed a commit to soghomon-b/transformers that referenced this pull request Aug 24, 2025
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.

MacOs: register_pytree_node got an unexpected keyword argument 'flatten_with_keys_fn' Issue with update

5 participants