Update scripts/sentence_transformers_demo.py
Browse files
scripts/sentence_transformers_demo.py
CHANGED
@@ -2,7 +2,7 @@ import torch
|
|
2 |
from sentence_transformers import SentenceTransformer
|
3 |
|
4 |
|
5 |
-
model_name = "openbmb/
|
6 |
model = SentenceTransformer(model_name, trust_remote_code=True, model_kwargs={"torch_dtype": torch.float16})
|
7 |
|
8 |
# you can use flash_attention_2 for faster inference
|
|
|
2 |
from sentence_transformers import SentenceTransformer
|
3 |
|
4 |
|
5 |
+
model_name = "openbmb/MiniCPM-Embedding-Light"
|
6 |
model = SentenceTransformer(model_name, trust_remote_code=True, model_kwargs={"torch_dtype": torch.float16})
|
7 |
|
8 |
# you can use flash_attention_2 for faster inference
|