-
Notifications
You must be signed in to change notification settings - Fork 142
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
TypeError: _load_sbert_model() received unexpected keyword argument 'token' when initializing INSTRUCTOR model in Colab Notebook #125
Comments
Hi, did you figure out the issue? |
I got the same issues, any updated ? I understand that the library only works with SentenceTransformer version 2.2.2 but that version is too old for now. pls update lib version. |
For those also facing this issue, it seems like this still works: https://sbert.net/docs/sentence_transformer/pretrained_models.html#instructor-models |
Hey everyone, I managed to get past this step, but I can’t recall the exact way I did it. Here’s the notebook link if someone could run the same commands in the cells I used and report back what was missing in the instructions: |
Please use the "instructor.py" script in my fork of this repository and it should hopefully resolve all issues. It's compatible with the most recent version of sentence transformers as of the date I'm posting this. Here's the repo: https://github.com/BBC-Esq/instructor-embedding Unless/until the repository owner accepts my pull request, even if you pip install you'll still have to manually replace instructor.py with the version in my repo, just FYI. |
Running into a TypeError while trying to load the INSTRUCTOR model from the InstructorEmbedding package in a Google Colab notebook. The error message says _load_sbert_model() got an unexpected keyword argument 'token' but I am unaware of how that 'token' argument is getting activated or passed.
The text was updated successfully, but these errors were encountered: