Solution of cannot use downloaded huggingface weight in SentenceTransformer method
#23
by
Super-Xray-2025
- opened
After download the weight in this repository and try to using it, it cannot use these files and still try to download again.
from sentence_transformers import SentenceTransformer
embed_model = SentenceTransformer(model_name_or_path='Alibaba-NLP/gte-large-en-v1.5', trust_remote_code=True)
I found a solution in this repository(also belongs to Alibaba-NLP, thanks): https://huggingface.com/Alibaba-NLP/new-impl/discussions/2
For users, I hope it's helpful.
For developers, I hope you can do some merge.