Skip to content

[AutoModel] Allow registering auto_map to model config#13186

Merged
DN6 merged 3 commits intomainfrom
save-automodel
Mar 2, 2026
Merged

[AutoModel] Allow registering auto_map to model config#13186
DN6 merged 3 commits intomainfrom
save-automodel

Conversation

@DN6
Copy link
Collaborator

@DN6 DN6 commented Feb 26, 2026

What does this PR do?

Add regisiter_for_auto_class method to ConfigMixin so that we don't have to manually edit the config.json file to add the auto_map field that we need to load custom code models.

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@DN6 DN6 requested a review from yiyixuxu February 26, 2026 11:59
@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
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

thanks!

@DN6 DN6 merged commit 3fd14f1 into main Mar 2, 2026
10 of 12 checks passed
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.

3 participants