xingkaixin / chatglm-6b-api

chatglm-6b-api
3 stars 3 forks source link

SentenceModel(model_path) error! #1

Open erichou2010 opened 1 year ago

erichou2010 commented 1 year ago

ValueError: Loading model requires you to execute the tokenizer file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option trust_remote_code=True to remove this error.

xingkaixin commented 1 year ago

I used the https://huggingface.co/GanymedeNil/text2vec-large-chinese model to compute text embeddings. I downloaded the model via git clone and added the model path to the embeddings: model_path field in the config/config.yaml file.

I don't know what you used, so I can't provide you with more information.