KennethEnevoldsen
commited on
Commit
•
af02824
1
Parent(s):
6dc609b
fix: Enforce revision ID and model names for future contributions (#56)
Browse filesAdded this change mainly due to duplicates models results and due to recent addition not including a model revision (which I we should probably discourage).
This fixes models results for:
- voyage
- README.md +4 -0
- paths.json +2 -4
- results/voyage-multilingual-2/1/model_meta.json +0 -1
- results/voyageai__voyage-3-lite/no_revision_available/model_meta.json +1 -1
- results/voyageai__voyage-3/no_revision_available/model_meta.json +1 -1
- results/{voyage-multilingual-2 → voyageai__voyage-multilingual-2}/1/BornholmBitextMining.json +0 -0
- results/{voyage-multilingual-2 → voyageai__voyage-multilingual-2}/1/STSB.json +0 -0
- results/voyageai__voyage-multilingual-2/1/model_meta.json +1 -0
- tests/test_correct_folder_structure.py +211 -203
- tests/test_ensure_correct_metadata.py +73 -0
README.md
CHANGED
@@ -4,6 +4,10 @@ type: evaluation
|
|
4 |
submission_name: MTEB
|
5 |
---
|
6 |
|
|
|
|
|
|
|
|
|
7 |
This repository contain the results of the embedding benchmark evaluated using the package `mteb`.
|
8 |
|
9 |
|
|
|
4 |
submission_name: MTEB
|
5 |
---
|
6 |
|
7 |
+
> [!NOTE]
|
8 |
+
> Previously it was possible to submit models results to MTEB by adding the results to the model metadata. This is no longer an option as we want to ensure high quality metadata.
|
9 |
+
|
10 |
+
|
11 |
This repository contain the results of the embedding benchmark evaluated using the package `mteb`.
|
12 |
|
13 |
|
paths.json
CHANGED
@@ -14632,10 +14632,6 @@
|
|
14632 |
"results/vesteinn__DanskBERT/no_revision_available/LccSentimentClassification.json",
|
14633 |
"results/vesteinn__DanskBERT/no_revision_available/DalajClassification.json"
|
14634 |
],
|
14635 |
-
"voyage-multilingual-2": [
|
14636 |
-
"results/voyage-multilingual-2/1/BornholmBitextMining.json",
|
14637 |
-
"results/voyage-multilingual-2/1/STSB.json"
|
14638 |
-
],
|
14639 |
"voyageai__voyage-2": [
|
14640 |
"results/voyageai__voyage-2/no_revision_available/MassiveIntentClassification.json",
|
14641 |
"results/voyageai__voyage-2/no_revision_available/MLSUMClusteringP2P.json",
|
@@ -15003,6 +14999,8 @@
|
|
15003 |
"results/voyageai__voyage-lite-02-instruct/no_revision_available/StackOverflowDupQuestions.json"
|
15004 |
],
|
15005 |
"voyageai__voyage-multilingual-2": [
|
|
|
|
|
15006 |
"results/voyageai__voyage-multilingual-2/no_revision_available/MassiveIntentClassification.json",
|
15007 |
"results/voyageai__voyage-multilingual-2/no_revision_available/LEMBWikimQARetrieval.json",
|
15008 |
"results/voyageai__voyage-multilingual-2/no_revision_available/MLSUMClusteringP2P.json",
|
|
|
14632 |
"results/vesteinn__DanskBERT/no_revision_available/LccSentimentClassification.json",
|
14633 |
"results/vesteinn__DanskBERT/no_revision_available/DalajClassification.json"
|
14634 |
],
|
|
|
|
|
|
|
|
|
14635 |
"voyageai__voyage-2": [
|
14636 |
"results/voyageai__voyage-2/no_revision_available/MassiveIntentClassification.json",
|
14637 |
"results/voyageai__voyage-2/no_revision_available/MLSUMClusteringP2P.json",
|
|
|
14999 |
"results/voyageai__voyage-lite-02-instruct/no_revision_available/StackOverflowDupQuestions.json"
|
15000 |
],
|
15001 |
"voyageai__voyage-multilingual-2": [
|
15002 |
+
"results/voyageai__voyage-multilingual-2/1/BornholmBitextMining.json",
|
15003 |
+
"results/voyageai__voyage-multilingual-2/1/STSB.json"
|
15004 |
"results/voyageai__voyage-multilingual-2/no_revision_available/MassiveIntentClassification.json",
|
15005 |
"results/voyageai__voyage-multilingual-2/no_revision_available/LEMBWikimQARetrieval.json",
|
15006 |
"results/voyageai__voyage-multilingual-2/no_revision_available/MLSUMClusteringP2P.json",
|
results/voyage-multilingual-2/1/model_meta.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"name": "voyage-multilingual-2", "revision": "1", "release_date": "2024-06-10", "languages": null, "n_parameters": null, "memory_usage": null, "max_tokens": 32000, "embed_dim": 1024, "license": null, "open_source": false, "similarity_fn_name": null, "framework": [], "loader": "VoyageWrapper"}
|
|
|
|
results/voyageai__voyage-3-lite/no_revision_available/model_meta.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"name": "
|
|
|
1 |
+
{"name": "voyageai/voyage-3-lite", "revision": "no_revision_available", "release_date": "2024-09-22", "languages": null, "n_parameters": null, "memory_usage": null, "max_tokens": 32000, "embed_dim": 512, "license": null, "open_source": false, "similarity_fn_name": null, "framework": [], "loader": "VoyageWrapper"}
|
results/voyageai__voyage-3/no_revision_available/model_meta.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"name": "
|
|
|
1 |
+
{"name": "voyageai/voyage-3", "revision": "no_revision_available", "release_date": "2024-09-22", "languages": null, "n_parameters": null, "memory_usage": null, "max_tokens": 32000, "embed_dim": 1024, "license": null, "open_source": false, "similarity_fn_name": null, "framework": [], "loader": "VoyageWrapper"}
|
results/{voyage-multilingual-2 → voyageai__voyage-multilingual-2}/1/BornholmBitextMining.json
RENAMED
File without changes
|
results/{voyage-multilingual-2 → voyageai__voyage-multilingual-2}/1/STSB.json
RENAMED
File without changes
|
results/voyageai__voyage-multilingual-2/1/model_meta.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"name": "voyageai/voyage-multilingual-2", "revision": "1", "release_date": "2024-06-10", "languages": null, "n_parameters": null, "memory_usage": null, "max_tokens": 32000, "embed_dim": 1024, "license": null, "open_source": false, "similarity_fn_name": null, "framework": [], "loader": "VoyageWrapper"}
|
tests/test_correct_folder_structure.py
CHANGED
@@ -44,236 +44,244 @@ def test_correct_folder_structure(meta_file):
|
|
44 |
|
45 |
|
46 |
folders_without_meta = [ # please do not add to this list it is only intended for backwards compatibility. Future results should have a model_meta.json file
|
47 |
-
("
|
48 |
-
("
|
49 |
-
("
|
50 |
-
("
|
51 |
-
("
|
52 |
-
("
|
53 |
-
("BAAI__bge-
|
54 |
-
("
|
55 |
-
("
|
56 |
-
("
|
57 |
-
("
|
58 |
-
("
|
59 |
-
("openai__text-embedding-3-small-instruct", "no_revision_available"),
|
60 |
("BAAI__bge-m3", "no_revision_available"),
|
61 |
-
("
|
62 |
-
("
|
63 |
-
("
|
64 |
-
("intfloat__e5-base", "no_revision_available"),
|
65 |
("BAAI__bge-small-zh-v1.5", "no_revision_available"),
|
66 |
-
("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
("KBLab__electra-small-swedish-cased-discriminator", "no_revision_available"),
|
68 |
-
("
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
("McGill-NLP__LLM2Vec-Mistral-unsupervised", "no_revision_available"),
|
70 |
-
("
|
71 |
-
("
|
72 |
-
(
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
("Muennighoff__SGPT-5.8B-weightedmean-nli-bitfit", "no_revision_available"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
("almanach__camembert-large", "no_revision_available"),
|
76 |
-
("
|
77 |
("baichuan-ai__text-embedding", "no_revision_available"),
|
78 |
-
("
|
79 |
-
("sentence-transformers__LaBSE", "no_revision_available"),
|
80 |
-
("Wissam42__sentence-croissant-llm-base", "no_revision_available"),
|
81 |
-
("Geotrend__bert-base-25lang-cased", "no_revision_available"),
|
82 |
("bigscience-data__sgpt-bloom-7b1-msmarco", "no_revision_available"),
|
83 |
-
("
|
84 |
-
("
|
85 |
-
("
|
86 |
-
("
|
87 |
-
("
|
88 |
-
("
|
89 |
-
("
|
90 |
-
("moka-ai__m3e-base", "no_revision_available"),
|
91 |
-
("intfloat__e5-mistral-7b-instruct", "no_revision_available"),
|
92 |
-
("almanach__camembert-base", "no_revision_available"),
|
93 |
-
("vprelovac__universal-sentence-encoder-multilingual-3", "no_revision_available"),
|
94 |
("dangvantuan__sentence-camembert-large", "no_revision_available"),
|
|
|
|
|
|
|
|
|
95 |
("deepset__gelectra-large", "no_revision_available"),
|
96 |
-
("
|
97 |
-
("
|
98 |
-
("moka-ai__m3e-large", "no_revision_available"),
|
99 |
-
("meta-llama__llama-2-7b-chat", "no_revision_available"),
|
100 |
-
("bigscience-data__sgpt-bloom-1b7-nli", "no_revision_available"),
|
101 |
-
("sentence-transformers__all-mpnet-base-v2", "84f2bcc00d77236f9e89c8a360a00fb1139bf47d"),
|
102 |
-
("sentence-transformers__sentence-t5-xl", "no_revision_available"),
|
103 |
-
("Geotrend__distilbert-base-en-fr-cased", "no_revision_available"),
|
104 |
-
("openai__text-embedding-ada-002", "no_revision_available"),
|
105 |
-
("BAAI__bge-small-en-v1.5-instruct", "5c38ec7c405ec4b44b94cc5a9bb96e735b38267a"),
|
106 |
-
("shibing624__text2vec-base-multilingual", "no_revision_available"),
|
107 |
-
("sentence-transformers__multi-qa-MiniLM-L6-cos-v1", "no_revision_available"),
|
108 |
-
("jinaai__jina-embeddings-v2-base-en", "no_revision_available"),
|
109 |
-
("mistralai__mistral-7b-instruct-v0.2", "no_revision_available"),
|
110 |
-
("castorini__monot5-3b-msmarco-10k", "no_revision_available"),
|
111 |
-
("Alibaba-NLP__gte-Qwen2-7B-instruct", "no_revision_available"),
|
112 |
-
("google-bert__bert-base-multilingual-uncased", "no_revision_available"),
|
113 |
-
("sentence-transformers__distiluse-base-multilingual-cased-v2", "no_revision_available"),
|
114 |
-
("sentence-transformers__distiluse-base-multilingual-cased-v2", ".gitkeep"),
|
115 |
-
("BAAI__bge-base-zh-v1.5", "no_revision_available"),
|
116 |
-
("google-gecko__text-embedding-004", "no_revision_available"),
|
117 |
-
("openai__text-search-curie-001", "no_revision_available"),
|
118 |
-
("princeton-nlp__sup-simcse-bert-base-uncased", "no_revision_available"),
|
119 |
-
("BAAI__bge-base-en-v1.5-instruct", "a5beb1e3e68b9ab74eb54cfd186867f64f240e1a"),
|
120 |
-
("GritLM__GritLM-7B", "no_revision_available"),
|
121 |
-
("GritLM__GritLM-7B", "13f00a0e36500c80ce12870ea513846a066004af"),
|
122 |
-
("Cohere__Cohere-embed-multilingual-light-v3.0", "no_revision_available"),
|
123 |
-
("BAAI__bge-base-zh", "no_revision_available"),
|
124 |
-
("voyageai__voyage-code-2", "no_revision_available"),
|
125 |
-
("sentence-transformers__sentence-t5-base", "no_revision_available"),
|
126 |
-
("flaubert__flaubert_large_cased", "no_revision_available"),
|
127 |
-
("Cohere__Cohere-embed-english-v3.0-instruct", "no_revision_available"),
|
128 |
-
("Salesforce__SFR-Embedding-Mistral", "no_revision_available"),
|
129 |
-
("facebookresearch__dragon-plus", "no_revision_available"),
|
130 |
-
("McGill-NLP__LLM2Vec-Sheared-Llama-unsupervised", "no_revision_available"),
|
131 |
-
("openai__text-embedding-3-small", "no_revision_available"),
|
132 |
-
("google__flan-t5-base", "no_revision_available"),
|
133 |
-
("openai__text-search-ada-doc-001", "no_revision_available"),
|
134 |
-
("google-bert__bert-base-multilingual-cased", "no_revision_available"),
|
135 |
-
("McGill-NLP__LLM2Vec-Meta-Llama-3-unsupervised", "no_revision_available"),
|
136 |
-
("ipipan__silver-retriever-base-v1", "no_revision_available"),
|
137 |
-
("facebook__dpr-ctx_encoder-multiset-base", "no_revision_available"),
|
138 |
-
("bm25s", "0_1_10"),
|
139 |
-
("sentence-transformers__all-MiniLM-L12-v2", "a05860a77cef7b37e0048a7864658139bc18a854"),
|
140 |
-
("facebookresearch__dragon-plus-instruct", "no_revision_available"),
|
141 |
("elastic__elser-v2", "no_revision_available"),
|
|
|
142 |
("facebook__contriever-instruct", "2bd46a25019aeea091fd42d1f0fd4801675cf699"),
|
143 |
-
("
|
144 |
-
("
|
145 |
-
("
|
146 |
-
("
|
147 |
-
("
|
148 |
-
("
|
149 |
-
("intfloat__e5-
|
150 |
-
("
|
151 |
-
("FacebookAI__xlm-roberta-base", "no_revision_available"),
|
152 |
-
("BAAI__bge-large-zh-v1.5", "no_revision_available"),
|
153 |
-
("orionweller__tart-dual-contriever-msmarco", "no_revision_available"),
|
154 |
-
("openai__text-embedding-preview-004-768", "no_revision_available"),
|
155 |
-
("vesteinn__DanskBERT", "no_revision_available"),
|
156 |
-
("deepset__gbert-large", "no_revision_available"),
|
157 |
-
("openai__text-similarity-davinci-001", "no_revision_available"),
|
158 |
-
("sentence-transformers__use-cmlm-multilingual", "no_revision_available"),
|
159 |
-
("KBLab__sentence-bert-swedish-cased", "no_revision_available"),
|
160 |
-
("nomic-ai__nomic-embed-text-v1", "no_revision_available"),
|
161 |
-
("openai__text-similarity-babbage-001", "no_revision_available"),
|
162 |
-
("mistral__mistral-embed", "no_revision_available"),
|
163 |
-
("voyageai__voyage-large-2-instruct", "no_revision_available"),
|
164 |
-
("flaubert__flaubert_base_uncased", "no_revision_available"),
|
165 |
-
("nomic-ai__nomic-embed-text-v1.5-256", "no_revision_available"),
|
166 |
("intfloat__e5-large", "no_revision_available"),
|
167 |
-
("
|
168 |
-
("
|
169 |
-
(
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
("
|
174 |
-
("
|
175 |
-
("
|
176 |
-
("BAAI__bge-small-zh", "no_revision_available"),
|
177 |
-
("sdadas__st-polish-paraphrase-from-mpnet", "no_revision_available"),
|
178 |
-
("bm25", "no_revision_available"),
|
179 |
-
("nomic-ai__nomic-embed-text-v1.5-128", "no_revision_available"),
|
180 |
-
("voyageai__voyage-lite-01-instruct", "no_revision_available"),
|
181 |
-
("hkunlp__instructor-large", "no_revision_available"),
|
182 |
-
("facebook__contriever", "2bd46a25019aeea091fd42d1f0fd4801675cf699"),
|
183 |
-
("Alibaba-NLP__gte-Qwen1.5-7B-instruct", "no_revision_available"),
|
184 |
-
("sentence-transformers__msmarco-bert-co-condensor", "no_revision_available"),
|
185 |
-
("shibing624__text2vec-large-chinese", "no_revision_available"),
|
186 |
-
("intfloat__multilingual-e5-small", "e4ce9877abf3edfe10b0d82785e83bdcb973e22e"),
|
187 |
("intfloat__multilingual-e5-small", "no_revision_available"),
|
188 |
-
("castorini__monot5-3b-msmarco-10k", "no_revision_available"),
|
189 |
-
("castorini__monot5-base-msmarco-10k", "no_revision_available"),
|
190 |
-
("jhu-clsp__FollowIR-7B", "no_revision_available"),
|
191 |
("ipipan__herbert-base-retrieval-v2", "no_revision_available"),
|
|
|
192 |
("izhx__udever-bloom-1b1", "no_revision_available"),
|
193 |
-
("
|
194 |
-
("
|
195 |
-
("
|
196 |
-
("
|
|
|
197 |
("ltg__norbert3-large", "no_revision_available"),
|
198 |
-
("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
("nomic-ai__nomic-embed-text-v1.5-64", "no_revision_available"),
|
200 |
-
("
|
201 |
-
("Geotrend__distilbert-base-fr-cased", "no_revision_available"),
|
202 |
-
("hkunlp__instructor-xl", "no_revision_available"),
|
203 |
-
("shibing624__text2vec-base-chinese", "no_revision_available"),
|
204 |
-
("BAAI__bge-large-en", "no_revision_available"),
|
205 |
-
("BAAI__bge-large-en-v1.5-instruct", "d4aa6901d3a41ba39fb536a557fa166f842b0e09"),
|
206 |
-
("google-bert__bert-base-uncased", "no_revision_available"),
|
207 |
-
("sentence-transformers__all-MiniLM-L6-v2", "8b3219a92973c328a8e22fadcfa821b5dc75636a"),
|
208 |
-
("sentence-transformers__all-MiniLM-L6-v2", "no_revision_available"),
|
209 |
-
("intfloat__e5-base-v2", "no_revision_available"),
|
210 |
-
("intfloat__e5-base-v2", "1c644c92ad3ba1efdad3f1451a637716616a20e8"),
|
211 |
-
("sentence-transformers__gtr-t5-xl", "no_revision_available"),
|
212 |
-
("ltg__norbert3-base", "no_revision_available"),
|
213 |
("openai__text-embedding-3-large-256", "no_revision_available"),
|
214 |
-
("
|
215 |
-
("
|
216 |
-
("
|
217 |
-
("
|
218 |
-
("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
("princeton-nlp__unsup-simcse-bert-base-uncased", "no_revision_available"),
|
220 |
-
("
|
221 |
-
("
|
222 |
-
("sentence-
|
|
|
223 |
(
|
224 |
-
"sentence-
|
225 |
-
"
|
226 |
),
|
227 |
-
(
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
("
|
232 |
-
(
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
(
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
("
|
241 |
-
(
|
242 |
-
|
243 |
-
|
|
|
|
|
|
|
|
|
244 |
("sentence-transformers__gtr-t5-xxl", "no_revision_available"),
|
245 |
-
("
|
246 |
-
("
|
247 |
-
(
|
248 |
-
|
|
|
|
|
249 |
(
|
250 |
"sentence-transformers__paraphrase-multilingual-mpnet-base-v2",
|
251 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
),
|
253 |
-
("sentence-transformers__paraphrase-multilingual-mpnet-base-v2", "no_revision_available"),
|
254 |
-
("google__flan-t5-large", "no_revision_available"),
|
255 |
-
("sergeyzh__rubert-tiny-turbo", "8ce0cf757446ce9bb2d5f5a4ac8103c7a1049054"),
|
256 |
-
("Muennighoff__SGPT-1.3B-weightedmean-msmarco-specb-bitfit", "no_revision_available"),
|
257 |
-
("vprelovac__universal-sentence-encoder-multilingual-large-3", "no_revision_available"),
|
258 |
-
("deepset__gbert-base", "no_revision_available"),
|
259 |
-
("sentence-transformers__allenai-specter", "no_revision_available"),
|
260 |
-
("McGill-NLP__LLM2Vec-Mistral-supervised", "no_revision_available"),
|
261 |
]
|
262 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
|
264 |
-
@pytest.mark.parametrize("model_folder", results_folder.glob("*"))
|
265 |
-
def test_model_meta_in_folders(model_folder):
|
266 |
-
"""
|
267 |
-
the folders should contain a model_meta.json file
|
268 |
-
"""
|
269 |
-
|
270 |
-
for rev_folder in model_folder.glob("*"):
|
271 |
-
if (model_folder.name, rev_folder.name) in folders_without_meta:
|
272 |
-
continue
|
273 |
|
274 |
-
|
275 |
-
|
276 |
-
assert meta_file.is_file()
|
277 |
-
assert meta_file.parent == rev_folder
|
278 |
-
assert meta_file.suffix == ".json"
|
279 |
-
assert meta_file.stem == "model_meta"
|
|
|
44 |
|
45 |
|
46 |
folders_without_meta = [ # please do not add to this list it is only intended for backwards compatibility. Future results should have a model_meta.json file
|
47 |
+
("Alibaba-NLP__gte-Qwen1.5-7B-instruct", "no_revision_available"),
|
48 |
+
("Alibaba-NLP__gte-Qwen2-7B-instruct", "no_revision_available"),
|
49 |
+
("BAAI__bge-base-en", "no_revision_available"),
|
50 |
+
("BAAI__bge-base-en-v1.5-instruct", "a5beb1e3e68b9ab74eb54cfd186867f64f240e1a"),
|
51 |
+
("BAAI__bge-base-zh", "no_revision_available"),
|
52 |
+
("BAAI__bge-base-zh-v1.5", "no_revision_available"),
|
53 |
+
("BAAI__bge-large-en", "no_revision_available"),
|
54 |
+
("BAAI__bge-large-en-v1.5", "no_revision_available"),
|
55 |
+
("BAAI__bge-large-en-v1.5-instruct", "d4aa6901d3a41ba39fb536a557fa166f842b0e09"),
|
56 |
+
("BAAI__bge-large-zh", "no_revision_available"),
|
57 |
+
("BAAI__bge-large-zh-noinstruct", "no_revision_available"),
|
58 |
+
("BAAI__bge-large-zh-v1.5", "no_revision_available"),
|
|
|
59 |
("BAAI__bge-m3", "no_revision_available"),
|
60 |
+
("BAAI__bge-m3-instruct", "5617a9f61b028005a4858fdac845db406aefb181"),
|
61 |
+
("BAAI__bge-small-en-v1.5-instruct", "5c38ec7c405ec4b44b94cc5a9bb96e735b38267a"),
|
62 |
+
("BAAI__bge-small-zh", "no_revision_available"),
|
|
|
63 |
("BAAI__bge-small-zh-v1.5", "no_revision_available"),
|
64 |
+
("Cohere__Cohere-embed-english-v3.0", "no_revision_available"),
|
65 |
+
("Cohere__Cohere-embed-english-v3.0-instruct", "no_revision_available"),
|
66 |
+
("Cohere__Cohere-embed-multilingual-light-v3.0", "no_revision_available"),
|
67 |
+
("Cohere__Cohere-embed-multilingual-v3.0", "no_revision_available"),
|
68 |
+
("FacebookAI__xlm-roberta-base", "no_revision_available"),
|
69 |
+
("FacebookAI__xlm-roberta-large", "no_revision_available"),
|
70 |
+
("Geotrend__bert-base-10lang-cased", "no_revision_available"),
|
71 |
+
("Geotrend__bert-base-15lang-cased", "no_revision_available"),
|
72 |
+
("Geotrend__bert-base-25lang-cased", "no_revision_available"),
|
73 |
+
("Geotrend__distilbert-base-25lang-cased", "no_revision_available"),
|
74 |
+
("Geotrend__distilbert-base-en-fr-cased", "no_revision_available"),
|
75 |
+
("Geotrend__distilbert-base-en-fr-es-pt-it-cased", "no_revision_available"),
|
76 |
+
("Geotrend__distilbert-base-fr-cased", "no_revision_available"),
|
77 |
("KBLab__electra-small-swedish-cased-discriminator", "no_revision_available"),
|
78 |
+
("KBLab__sentence-bert-swedish-cased", "no_revision_available"),
|
79 |
+
("KB__bert-base-swedish-cased", "no_revision_available"),
|
80 |
+
("McGill-NLP__LLM2Vec-Llama-2-7b-chat-hf-mntp-supervised", "no_revision_available"),
|
81 |
+
("McGill-NLP__LLM2Vec-Llama-2-unsupervised", "no_revision_available"),
|
82 |
+
("McGill-NLP__LLM2Vec-Meta-Llama-3-supervised", "no_revision_available"),
|
83 |
+
("McGill-NLP__LLM2Vec-Meta-Llama-3-unsupervised", "no_revision_available"),
|
84 |
+
("McGill-NLP__LLM2Vec-Mistral-supervised", "no_revision_available"),
|
85 |
("McGill-NLP__LLM2Vec-Mistral-unsupervised", "no_revision_available"),
|
86 |
+
("McGill-NLP__LLM2Vec-Sheared-Llama-supervised", "no_revision_available"),
|
87 |
+
("McGill-NLP__LLM2Vec-Sheared-Llama-unsupervised", "no_revision_available"),
|
88 |
+
(
|
89 |
+
"Muennighoff__SGPT-1.3B-weightedmean-msmarco-specb-bitfit",
|
90 |
+
"no_revision_available",
|
91 |
+
),
|
92 |
+
(
|
93 |
+
"Muennighoff__SGPT-125M-weightedmean-msmarco-specb-bitfit",
|
94 |
+
"no_revision_available",
|
95 |
+
),
|
96 |
+
(
|
97 |
+
"Muennighoff__SGPT-125M-weightedmean-msmarco-specb-bitfit-doc",
|
98 |
+
"no_revision_available",
|
99 |
+
),
|
100 |
+
(
|
101 |
+
"Muennighoff__SGPT-125M-weightedmean-msmarco-specb-bitfit-que",
|
102 |
+
"no_revision_available",
|
103 |
+
),
|
104 |
+
("Muennighoff__SGPT-125M-weightedmean-nli-bitfit", "no_revision_available"),
|
105 |
+
(
|
106 |
+
"Muennighoff__SGPT-2.7B-weightedmean-msmarco-specb-bitfit",
|
107 |
+
"no_revision_available",
|
108 |
+
),
|
109 |
+
(
|
110 |
+
"Muennighoff__SGPT-5.8B-weightedmean-msmarco-specb-bitfit",
|
111 |
+
"no_revision_available",
|
112 |
+
),
|
113 |
+
(
|
114 |
+
"Muennighoff__SGPT-5.8B-weightedmean-msmarco-specb-bitfit-que",
|
115 |
+
"no_revision_available",
|
116 |
+
),
|
117 |
("Muennighoff__SGPT-5.8B-weightedmean-nli-bitfit", "no_revision_available"),
|
118 |
+
("NbAiLab__nb-bert-base", "no_revision_available"),
|
119 |
+
("NbAiLab__nb-bert-large", "no_revision_available"),
|
120 |
+
("Salesforce__SFR-Embedding-Mistral", "no_revision_available"),
|
121 |
+
(
|
122 |
+
"T-Systems-onsite__cross-en-de-roberta-sentence-transformer",
|
123 |
+
"no_revision_available",
|
124 |
+
),
|
125 |
+
("Wissam42__sentence-croissant-llm-base", "no_revision_available"),
|
126 |
+
("aliyun__OpenSearch-text-hybrid", "no_revision_available"),
|
127 |
+
("almanach__camembert-base", "no_revision_available"),
|
128 |
("almanach__camembert-large", "no_revision_available"),
|
129 |
+
("amazon__titan-embed-text-v1", "no_revision_available"),
|
130 |
("baichuan-ai__text-embedding", "no_revision_available"),
|
131 |
+
("bigscience-data__sgpt-bloom-1b7-nli", "no_revision_available"),
|
|
|
|
|
|
|
132 |
("bigscience-data__sgpt-bloom-7b1-msmarco", "no_revision_available"),
|
133 |
+
("bm25", "no_revision_available"),
|
134 |
+
("bm25s", "0_1_10"),
|
135 |
+
("castorini__monobert-large-msmarco", "no_revision_available"),
|
136 |
+
("castorini__monot5-3b-msmarco-10k", "no_revision_available"),
|
137 |
+
("castorini__monot5-base-msmarco-10k", "no_revision_available"),
|
138 |
+
("chcaa__dfm-encoder-large-v1", "no_revision_available"),
|
139 |
+
("dangvantuan__sentence-camembert-base", "no_revision_available"),
|
|
|
|
|
|
|
|
|
140 |
("dangvantuan__sentence-camembert-large", "no_revision_available"),
|
141 |
+
("deepfile__embedder-100p", "no_revision_available"),
|
142 |
+
("deepset__gbert-base", "no_revision_available"),
|
143 |
+
("deepset__gbert-large", "no_revision_available"),
|
144 |
+
("deepset__gelectra-base", "no_revision_available"),
|
145 |
("deepset__gelectra-large", "no_revision_available"),
|
146 |
+
("distilbert__distilbert-base-uncased", "no_revision_available"),
|
147 |
+
("dwzhu__e5-base-4k", "no_revision_available"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
("elastic__elser-v2", "no_revision_available"),
|
149 |
+
("facebook__contriever", "2bd46a25019aeea091fd42d1f0fd4801675cf699"),
|
150 |
("facebook__contriever-instruct", "2bd46a25019aeea091fd42d1f0fd4801675cf699"),
|
151 |
+
("facebook__dpr-ctx_encoder-multiset-base", "no_revision_available"),
|
152 |
+
("facebook__dragon-plus-context-encoder", "no_revision_available"),
|
153 |
+
("facebook__tart-full-flan-t5-xl", "no_revision_available"),
|
154 |
+
("facebookresearch__LASER2", "no_revision_available"),
|
155 |
+
("facebookresearch__dragon-plus", "no_revision_available"),
|
156 |
+
("facebookresearch__dragon-plus-instruct", "no_revision_available"),
|
157 |
+
("intfloat__e5-base", "no_revision_available"),
|
158 |
+
("intfloat__e5-base-v2", "no_revision_available"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
("intfloat__e5-large", "no_revision_available"),
|
160 |
+
("intfloat__e5-large-v2", "no_revision_available"),
|
161 |
+
("intfloat__e5-mistral-7b-instruct", "no_revision_available"),
|
162 |
+
(
|
163 |
+
"intfloat__e5-mistral-7b-instruct-noinstruct",
|
164 |
+
"07163b72af1488142a360786df853f237b1a3ca1",
|
165 |
+
),
|
166 |
+
("intfloat__e5-small", "no_revision_available"),
|
167 |
+
("intfloat__multilingual-e5-base", "no_revision_available"),
|
168 |
+
("intfloat__multilingual-e5-large", "no_revision_available"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
("intfloat__multilingual-e5-small", "no_revision_available"),
|
|
|
|
|
|
|
170 |
("ipipan__herbert-base-retrieval-v2", "no_revision_available"),
|
171 |
+
("ipipan__silver-retriever-base-v1", "no_revision_available"),
|
172 |
("izhx__udever-bloom-1b1", "no_revision_available"),
|
173 |
+
("izhx__udever-bloom-560m", "no_revision_available"),
|
174 |
+
("jhu-clsp__FollowIR-7B", "no_revision_available"),
|
175 |
+
("jinaai__jina-embeddings-v2-base-en", "no_revision_available"),
|
176 |
+
("jonfd__electra-small-nordic", "no_revision_available"),
|
177 |
+
("ltg__norbert3-base", "no_revision_available"),
|
178 |
("ltg__norbert3-large", "no_revision_available"),
|
179 |
+
("meta-llama__llama-2-7b-chat", "no_revision_available"),
|
180 |
+
("mistral__mistral-embed", "no_revision_available"),
|
181 |
+
("mistralai__mistral-7b-instruct-v0.2", "no_revision_available"),
|
182 |
+
("moka-ai__m3e-base", "no_revision_available"),
|
183 |
+
("moka-ai__m3e-large", "no_revision_available"),
|
184 |
+
("nomic-ai__nomic-embed-text-v1", "no_revision_available"),
|
185 |
+
("nomic-ai__nomic-embed-text-v1.5-128", "no_revision_available"),
|
186 |
+
("nomic-ai__nomic-embed-text-v1.5-256", "no_revision_available"),
|
187 |
+
("nomic-ai__nomic-embed-text-v1.5-512", "no_revision_available"),
|
188 |
("nomic-ai__nomic-embed-text-v1.5-64", "no_revision_available"),
|
189 |
+
("nthakur__contriever-base-msmarco", "no_revision_available"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
("openai__text-embedding-3-large-256", "no_revision_available"),
|
191 |
+
("openai__text-embedding-3-large-instruct", "no_revision_available"),
|
192 |
+
("openai__text-embedding-3-small-instruct", "no_revision_available"),
|
193 |
+
("openai__text-embedding-ada-002", "no_revision_available"),
|
194 |
+
("openai__text-embedding-ada-002-instruct", "no_revision_available"),
|
195 |
+
("openai__text-search-ada-001", "no_revision_available"),
|
196 |
+
("openai__text-search-ada-doc-001", "no_revision_available"),
|
197 |
+
("openai__text-search-babbage-001", "no_revision_available"),
|
198 |
+
("openai__text-search-curie-001", "no_revision_available"),
|
199 |
+
("openai__text-search-davinci-001", "no_revision_available"),
|
200 |
+
("openai__text-similarity-ada-001", "no_revision_available"),
|
201 |
+
("openai__text-similarity-babbage-001", "no_revision_available"),
|
202 |
+
("openai__text-similarity-curie-001", "no_revision_available"),
|
203 |
+
("openai__text-similarity-davinci-001", "no_revision_available"),
|
204 |
+
("orionweller__tart-dual-contriever-msmarco", "no_revision_available"),
|
205 |
+
("princeton-nlp__sup-simcse-bert-base-uncased", "no_revision_available"),
|
206 |
("princeton-nlp__unsup-simcse-bert-base-uncased", "no_revision_available"),
|
207 |
+
("sdadas__st-polish-paraphrase-from-distilroberta", "no_revision_available"),
|
208 |
+
("sdadas__st-polish-paraphrase-from-mpnet", "no_revision_available"),
|
209 |
+
("sentence-transformers__LaBSE", "no_revision_available"),
|
210 |
+
("sentence-transformers__all-MiniLM-L6-v2", "no_revision_available"),
|
211 |
(
|
212 |
+
"sentence-transformers__all-MiniLM-L6-v2-instruct",
|
213 |
+
"8b3219a92973c328a8e22fadcfa821b5dc75636a",
|
214 |
),
|
215 |
+
(
|
216 |
+
"sentence-transformers__all-mpnet-base-v2-instruct",
|
217 |
+
"84f2bcc00d77236f9e89c8a360a00fb1139bf47d",
|
218 |
+
),
|
219 |
+
("sentence-transformers__allenai-specter", "no_revision_available"),
|
220 |
+
(
|
221 |
+
"sentence-transformers__average_word_embeddings_glove.6B.300d",
|
222 |
+
"no_revision_available",
|
223 |
+
),
|
224 |
+
(
|
225 |
+
"sentence-transformers__average_word_embeddings_komninos",
|
226 |
+
"no_revision_available",
|
227 |
+
),
|
228 |
+
("sentence-transformers__distiluse-base-multilingual-cased-v2", ".gitkeep"),
|
229 |
+
(
|
230 |
+
"sentence-transformers__distiluse-base-multilingual-cased-v2",
|
231 |
+
"no_revision_available",
|
232 |
+
),
|
233 |
+
("sentence-transformers__gtr-t5-base", "no_revision_available"),
|
234 |
+
("sentence-transformers__gtr-t5-large", "no_revision_available"),
|
235 |
+
("sentence-transformers__gtr-t5-xl", "no_revision_available"),
|
236 |
("sentence-transformers__gtr-t5-xxl", "no_revision_available"),
|
237 |
+
("sentence-transformers__msmarco-bert-co-condensor", "no_revision_available"),
|
238 |
+
("sentence-transformers__multi-qa-MiniLM-L6-cos-v1", "no_revision_available"),
|
239 |
+
(
|
240 |
+
"sentence-transformers__paraphrase-multilingual-MiniLM-L12-v2",
|
241 |
+
"no_revision_available",
|
242 |
+
),
|
243 |
(
|
244 |
"sentence-transformers__paraphrase-multilingual-mpnet-base-v2",
|
245 |
+
"no_revision_available",
|
246 |
+
),
|
247 |
+
("sentence-transformers__sentence-t5-base", "no_revision_available"),
|
248 |
+
("sentence-transformers__sentence-t5-large", "no_revision_available"),
|
249 |
+
("sentence-transformers__sentence-t5-xl", "no_revision_available"),
|
250 |
+
("sentence-transformers__sentence-t5-xxl", "no_revision_available"),
|
251 |
+
("sentence-transformers__use-cmlm-multilingual", "no_revision_available"),
|
252 |
+
("shibing624__text2vec-base-chinese", "no_revision_available"),
|
253 |
+
("shibing624__text2vec-base-multilingual", "no_revision_available"),
|
254 |
+
("shibing624__text2vec-large-chinese", "no_revision_available"),
|
255 |
+
("silk-road__luotuo-bert-medium", "no_revision_available"),
|
256 |
+
("uklfr__gottbert-base", "no_revision_available"),
|
257 |
+
("vesteinn__DanskBERT", "no_revision_available"),
|
258 |
+
("voyageai__voyage-2", "no_revision_available"),
|
259 |
+
("voyageai__voyage-code-2", "no_revision_available"),
|
260 |
+
("voyageai__voyage-large-2-instruct", "no_revision_available"),
|
261 |
+
("voyageai__voyage-law-2", "no_revision_available"),
|
262 |
+
("voyageai__voyage-lite-01-instruct", "no_revision_available"),
|
263 |
+
("voyageai__voyage-lite-02-instruct", "no_revision_available"),
|
264 |
+
("voyageai__voyage-multilingual-2", "no_revision_available"),
|
265 |
+
("vprelovac__universal-sentence-encoder-multilingual-3", "no_revision_available"),
|
266 |
+
(
|
267 |
+
"vprelovac__universal-sentence-encoder-multilingual-large-3",
|
268 |
+
"no_revision_available",
|
269 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
]
|
271 |
|
272 |
+
model_rev_pairs = [
|
273 |
+
(model_folder, rev_folder)
|
274 |
+
for model_folder in results_folder.glob("*")
|
275 |
+
for rev_folder in model_folder.glob("*")
|
276 |
+
if model_folder.name not in [".DS_Store"] and rev_folder.name not in [".DS_Store"]
|
277 |
+
]
|
278 |
+
pairs_no_meta = [
|
279 |
+
(pair[0].name, pair[1].name)
|
280 |
+
for pair in model_rev_pairs
|
281 |
+
if not (pair[1] / "model_meta.json").exists()
|
282 |
+
]
|
283 |
+
pairs_no_meta.sort()
|
284 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
|
286 |
+
p = [p for p in model_rev_pairs if "Haon-Chen" in p[0].name][0][1]/ "model_meta.json"
|
287 |
+
p.exists()
|
|
|
|
|
|
|
|
tests/test_ensure_correct_metadata.py
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
|
3 |
+
import pytest
|
4 |
+
|
5 |
+
from tests.test_correct_folder_structure import folders_without_meta, results_folder
|
6 |
+
|
7 |
+
model_rev_pairs = [
|
8 |
+
(model_folder, rev_folder)
|
9 |
+
for model_folder in results_folder.glob("*")
|
10 |
+
for rev_folder in model_folder.glob("*")
|
11 |
+
if model_folder.name not in [".DS_Store"]
|
12 |
+
and rev_folder.name not in [".DS_Store"]
|
13 |
+
and ((model_folder.name, rev_folder.name) not in folders_without_meta)
|
14 |
+
]
|
15 |
+
|
16 |
+
|
17 |
+
@pytest.mark.parametrize("model_rev_pair", model_rev_pairs)
|
18 |
+
def test_model_meta_in_folders(model_rev_pair):
|
19 |
+
"""
|
20 |
+
Models added after the 26th of November should contain a model_meta.json file
|
21 |
+
"""
|
22 |
+
model_folder, rev_folder = model_rev_pair
|
23 |
+
|
24 |
+
meta_file = rev_folder / "model_meta.json"
|
25 |
+
assert meta_file.exists()
|
26 |
+
assert meta_file.is_file()
|
27 |
+
assert meta_file.parent == rev_folder
|
28 |
+
assert meta_file.suffix == ".json"
|
29 |
+
assert meta_file.stem == "model_meta"
|
30 |
+
|
31 |
+
|
32 |
+
# please do not add to this list, this is only for historic results, all new results should include a revision ID
|
33 |
+
revision_exceptions = [
|
34 |
+
("castorini__mdpr-tied-pft-msmarco", "no_revision_available"),
|
35 |
+
("voyageai__voyage-3", "no_revision_available"),
|
36 |
+
("sentence-transformers__all-mpnet-base-v2", "no_revision_available"),
|
37 |
+
("Snowflake__snowflake-arctic-embed-m-v1.5", "no_revision_available"),
|
38 |
+
("sentence-transformers__all-MiniLM-L12-v2", "no_revision_available"),
|
39 |
+
("nthakur__mcontriever-base-msmarco", "no_revision_available"),
|
40 |
+
('voyageai__voyage-3-lite', 'no_revision_available')
|
41 |
+
]
|
42 |
+
|
43 |
+
|
44 |
+
@pytest.mark.parametrize("model_rev_pair", model_rev_pairs)
|
45 |
+
def test_revision_is_specified_for_new_additions(model_rev_pair):
|
46 |
+
"""
|
47 |
+
Models added after 26th of November should include a revision ID and can not use the "no_revision_available" fallback.
|
48 |
+
"""
|
49 |
+
model_folder, rev_folder = model_rev_pair
|
50 |
+
if (model_folder.name, rev_folder.name) not in revision_exceptions:
|
51 |
+
meta_file = rev_folder / "model_meta.json"
|
52 |
+
with meta_file.open("r") as f:
|
53 |
+
meta = json.load(f)
|
54 |
+
assert meta["revision"].lower() not in [
|
55 |
+
"no_revision_available",
|
56 |
+
"",
|
57 |
+
"na",
|
58 |
+
"no-revision-available",
|
59 |
+
]
|
60 |
+
|
61 |
+
|
62 |
+
@pytest.mark.parametrize("model_rev_pair", model_rev_pairs)
|
63 |
+
def test_organization_is_specified_for_new_additions(model_rev_pair):
|
64 |
+
"""
|
65 |
+
Models added after 26th of November should include a organization ID within their name, e.g. "myorg/my_embedding_model".
|
66 |
+
|
67 |
+
This is to avoid mispecified names such as "myorg__my_embedding_model" and similar.
|
68 |
+
"""
|
69 |
+
model_folder, rev_folder = model_rev_pair
|
70 |
+
meta_file = rev_folder / "model_meta.json"
|
71 |
+
with meta_file.open("r") as f:
|
72 |
+
meta = json.load(f)
|
73 |
+
assert "/" in meta["name"]
|