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

TypeError: _load_sbert_model() received unexpected keyword argument 'token' when initializing INSTRUCTOR model in Colab Notebook #125

Open
devin-liu opened this issue Sep 11, 2024 · 4 comments

Comments

@devin-liu
Copy link

image

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.

@Adebesin-Aramide
Copy link

Hi, did you figure out the issue?
I'm stuck here as well

@anhalu
Copy link

anhalu commented Nov 3, 2024

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.

@JosephGatto
Copy link

For those also facing this issue, it seems like this still works: https://sbert.net/docs/sentence_transformer/pretrained_models.html#instructor-models

@devin-liu
Copy link
Author

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:

https://colab.research.google.com/gist/devin-liu/be0c89afa78a2750a9fec2ea8e654524/instructor-embedding.ipynb#scrollTo=QFszaK3SsM_F

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

No branches or pull requests

4 participants