Skip to content

Conversation

@Cyrilvallez
Copy link
Member

What does this PR do?

As per the title. A few models got broken in #41580, but it was silent issues on the fast tests.
Mostly discovered in #42396, because the new tests added were not passing for those models, due to the models and not the logic of that PR.

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

@3outeille
Copy link
Member

3outeille commented Nov 28, 2025

actually needing this for #42456 for jamba + lfm2

@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: lfm2_moe, sam3, sam3_tracker, sam3_tracker_video

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.

is it missing a test that can help prevent this?

]
_checkpoint_conversion_mapping = {
"tracker_model.": "",
r"tracker_model.(.+)": r"\1", # the regex allows to remove the prefix, and add it back in revert mode
Copy link
Collaborator

Choose a reason for hiding this comment

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

good I like it!

@Cyrilvallez
Copy link
Member Author

Yes will enforce it with ast later for sure! Along with the post_init

@Cyrilvallez Cyrilvallez merged commit 2a61590 into main Nov 28, 2025
19 of 24 checks passed
@Cyrilvallez Cyrilvallez deleted the fix-models-and-mapping branch November 28, 2025 20:38
Sai-Suraj-27 pushed a commit to Sai-Suraj-27/transformers that referenced this pull request Nov 28, 2025
* lfm2

* fix

* config

* fixes

* fix prefixes

* finally

* copies

* oupsi

* rework key renaming

* fixes

* fix

* fix

* fix

* fix

* fix

* fix lfm2

* fix

* fix more bad mappings
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.

5 participants