Skip to content

Conversation

@ArthurZucker
Copy link
Collaborator

What does this PR do?

Super nit

@ArthurZucker ArthurZucker marked this pull request as ready for review March 12, 2025 09:46
@github-actions github-actions bot requested a review from Rocketknight1 March 12, 2025 09:46
Co-authored-by: Cyril Vallez <[email protected]>
Comment on lines +856 to +858
if fixed_param_name not in expected_keys:
continue

Copy link
Member

Choose a reason for hiding this comment

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

BTW, this was done on purpose, to load the Gemma3CausalLM with accelerate. Before the TP loading was updated, we cropped prefix only after checking existence in expected keys

Copy link
Member

Choose a reason for hiding this comment

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

For model actually modifying the keys, checking the serialized keys will basically skip everything 😅 Anyway, we will merge #36033 which will use a single key renaming at the very beginning to avoid these issues

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Ok good!

@LysandreJik LysandreJik merged commit 2829013 into main Mar 12, 2025
20 of 24 checks passed
@LysandreJik LysandreJik deleted the nit-tp branch March 12, 2025 10:29
@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.

LysandreJik pushed a commit that referenced this pull request Mar 12, 2025
* fix block mask typing

* updated

Co-authored-by: Cyril Vallez <[email protected]>

* gemma

* fix

---------

Co-authored-by: Cyril Vallez <[email protected]>
@vasqu vasqu mentioned this pull request Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants