Kaguya-19 commited on
Commit
1d0117a
·
verified ·
1 Parent(s): 5643d0d

Update scripts/test_mteb.py

Browse files
Files changed (1) hide show
  1. 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/UltraRAG-Embedding"
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()