Views
No views yet
model_type=bidir_mistral in config.json is no longer supported.Transformers 4.47.0.1import mteb
2from sentence_transformers import SparseEncoder
3model = SparseEncoder(
4 "Y-Research-Group/CSR-NV_Embed_v2-Retrieval-SciFACT ",
5 trust_remote_code=True
6)
7model.prompts = {
8 "SciFact-query": "Instrcut: Given a scientific claim, retrieve documents that support or refute the claim\nQuery:"
9}
10task = mteb.get_tasks(tasks=["SciFact"])
11evaluation = mteb.MTEB(tasks=task)
12evaluation.run(
13 model,
14 eval_splits=["test"],
15 output_folder="./results/SciFact",
16 show_progress_bar=True
17 encode_kwargs={"convert_to_sparse_tensor": False, "batch_size": 8},
18) # MTEB don't support sparse tensors yet, so we need to convert to dense tensors1@inproceedings{wenbeyond,
2 title={Beyond Matryoshka: Revisiting Sparse Coding for Adaptive Representation},
3 author={Wen, Tiansheng and Wang, Yifei and Zeng, Zequn and Peng, Zhong and Su, Yudi and Liu, Xinyang and Chen, Bo and Liu, Hongwei and Jegelka, Stefanie and You, Chenyu},
4 booktitle={Forty-second International Conference on Machine Learning}
5}