t2v-transformers-models icon indicating copy to clipboard operation
t2v-transformers-models copied to clipboard

Error with SentenceTransformer

Open axeloh opened this issue 2 years ago • 3 comments
trafficstars

With the new change introduced by the SentenceTransformer PR, I run into an issue when building the Docker image for this repo. Specifically, I am using MODEL_NAME=hkunlp/instructor-xl and the error occurs when initializing the SentenceTransformer on line 30 in download.py. Traceback:

image

axeloh avatar Oct 27 '23 12:10 axeloh

Trying with a different model (sentence-transformers/multi-qa-mpnet-base-cos-v1) it works fine.

axeloh avatar Oct 27 '23 12:10 axeloh

Hey @axeloh, this may or may not have been due to the bump of the torch dependency. This was reverted here: https://github.com/weaviate/t2v-transformers-models/pull/70, are you able to verify if this fixes the above issue for you?

tsmith023 avatar Dec 01 '23 15:12 tsmith023

Hello!

I believe this is related to your sentence-transformers version being a tad too low.

  • Tom Aarsen

tomaarsen avatar Feb 13 '25 11:02 tomaarsen