Using the model locally
#9
by
KaustubhRatna
- opened
So i am working on a system without internet, so i downloaded all the files of the model then saved them locally now i want to use the model
but when i am doing model = SentenceTransformer('local path to model')
then it is giving me HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'D:\paraphraseMiniLM'.
It seems like the problem is with the path definition. So, I would suggest you change the location of the saved model, for instance, in the same folder where you have your script. Lately, when initializing the model, just put the path inside the folder: "your_folder/saved_model".
Hope this helps