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

Resolve compatibility issues with sentence-transformers 3.3.1 #127

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

merthmagic
Copy link

I encountered an issue when I loading the model, error message as follow:

TypeError: INSTRUCTOR._load_sbert_model() got an unexpected keyword argument 'local_files_only'

I checked the sentence-transformers version ,that is 3.3.1. The root cause might be newer version sentence-transformers has updated the signature of method _load_sbert_model() so we lack some parameter now.

My resolution contains an update of _load_sbert_model method in class INSTRUCTOR and it works fine locally.

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.

1 participant