Skip to content

[AutoModel] Allow registering auto_map to model config#13186

Open
DN6 wants to merge 2 commits intomainfrom
save-automodel
Open

[AutoModel] Allow registering auto_map to model config#13186
DN6 wants to merge 2 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.

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.

2 participants