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 loading best adapter to the trainer class #487

Merged
merged 3 commits into from
Feb 9, 2023

Conversation

MaBeHen
Copy link

@MaBeHen MaBeHen commented Jan 28, 2023

When activating load_best_model_at_end, AdapterTrainer first tries (unsuccessfully) to load the full model.
Moving the adapter loading code to _load_best_model() and thereby overwriting it should fix this.

@calpt calpt self-requested a review February 9, 2023 17:00
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, thanks!

@calpt calpt merged commit ee5f02b into adapter-hub:master Feb 9, 2023
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