Update scripts/test_mteb.py
Browse files- scripts/test_mteb.py +1 -1
scripts/test_mteb.py
CHANGED
@@ -352,7 +352,7 @@ class DenseEncoder(torch.nn.Module):
|
|
352 |
def __init__(self, **kwargs):
|
353 |
super().__init__()
|
354 |
|
355 |
-
model_path = "openbmb/
|
356 |
self.encoder = AutoModel.from_pretrained(model_path, trust_remote_code=True,attn_implementation="flash_attention_2", torch_dtype=torch.float16).to("cuda")
|
357 |
self.tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
358 |
self.gpu_count = torch.cuda.device_count()
|
|
|
352 |
def __init__(self, **kwargs):
|
353 |
super().__init__()
|
354 |
|
355 |
+
model_path = "openbmb/MiniCPM-Embedding-Light"
|
356 |
self.encoder = AutoModel.from_pretrained(model_path, trust_remote_code=True,attn_implementation="flash_attention_2", torch_dtype=torch.float16).to("cuda")
|
357 |
self.tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
358 |
self.gpu_count = torch.cuda.device_count()
|