Skip to content

Conversation

@MrAnayDongre
Copy link

This commit introduces a merge_adapter method that checks for a callable merge_and_unload on the underlying model. If found, it merges the adapter and resets the configuration flag; otherwise, it raises a clear error. Tests cover both success and failure cases.

@tomaarsen
Copy link
Member

Hello!

Apologies for the huge delay. I never made progress with this, because I don't believe that the transformers models loaded with AutoModel and stored under self[0].auto_model ever have the merge_and_unload method. As a result, this method will always throw an error.

  • Tom Aarsen

Copy link
Member

@tomaarsen tomaarsen left a comment

Choose a reason for hiding this comment

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

See the above, I believe the merge_and_unload often (always?) doesn't exist.

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