Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move custom head dict out of config #700

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

hSterz
Copy link
Member

@hSterz hSterz commented May 13, 2024

To make the model_config serializable and prevent the error mentioned in #680 move the costum_heads dictionary out of the config and make it a separate attribute of the model class.

@hSterz hSterz marked this pull request as ready for review June 3, 2024 14:06
@calpt calpt linked an issue Jun 8, 2024 that may be closed by this pull request
Copy link
Member

@calpt calpt left a comment

Choose a reason for hiding this comment

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

Looks good in general. Will this induce any breaking changes in the library?

@hSterz
Copy link
Member Author

hSterz commented Jun 19, 2024

The only thing that I can think of that this could affect is the loading of a model with a custom head. However, I think the custom_head class needs to be readded in the previous implementation as well. Am I missing something?

@calpt
Copy link
Member

calpt commented Jun 20, 2024

Sounds good, was just curious if this had any side effects I'm not aware of. Thanks!

@calpt calpt merged commit c243478 into adapter-hub:main Jun 20, 2024
3 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.

Custom Heads not working with adapters
2 participants