mteb 2.6.1__py3-none-any.whl → 2.6.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mteb/cache.py CHANGED
@@ -351,8 +351,20 @@ class ResultCache:
351
351
  response = requests.get(url, timeout=timeout)
352
352
  response.raise_for_status()
353
353
 
354
- # Validate content-type header
354
+ # Check if this is a Git LFS pointer file
355
355
  content_type = response.headers.get("content-type", "").lower()
356
+ if (
357
+ content_type == "text/plain; charset=utf-8"
358
+ and b"git-lfs" in response.content
359
+ ):
360
+ # Try Git LFS media URL instead
361
+ media_url = f"https://media.githubusercontent.com/media/{repo_path}/{branch}/{filename}"
362
+ logger.info(f"Detected Git LFS file, trying media URL: {media_url}")
363
+ response = requests.get(media_url, timeout=timeout)
364
+ response.raise_for_status()
365
+ content_type = response.headers.get("content-type", "").lower()
366
+
367
+ # Validate content-type header
356
368
  expected_content_types = [
357
369
  "application/gzip",
358
370
  "application/octet-stream",
@@ -473,7 +473,7 @@ class MTEB:
473
473
 
474
474
  if co2_tracker:
475
475
  try:
476
- from codecarbon import ( # type: ignore[import-untyped]
476
+ from codecarbon import ( # type: ignore[import-not-found,import-untyped]
477
477
  EmissionsTracker,
478
478
  )
479
479
  except ImportError:
mteb/leaderboard/app.py CHANGED
@@ -1154,6 +1154,13 @@ if __name__ == "__main__":
1154
1154
  logging.getLogger("mteb.results.benchmark_results").setLevel(logging.ERROR)
1155
1155
 
1156
1156
  warnings.filterwarnings("ignore", message="Couldn't get scores for .* due to .*")
1157
+ warnings.filterwarnings("ignore", message="Could not get source model: .*")
1158
+ warnings.filterwarnings(
1159
+ "ignore", message="No scores data available. Returning empty DataFrame."
1160
+ )
1161
+ warnings.filterwarnings("ignore", message="Main score .* not found in scores")
1162
+ warnings.filterwarnings("ignore", message=".*: Missing subsets .* for split .*")
1163
+ warnings.filterwarnings("ignore", message=".*: Missing splits .*")
1157
1164
 
1158
1165
  app = get_leaderboard_app()
1159
1166
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mteb
3
- Version: 2.6.1
3
+ Version: 2.6.2
4
4
  Summary: Massive Text Embedding Benchmark
5
5
  Author-email: MTEB Contributors <niklas@huggingface.co>, Kenneth Enevoldsen <kenneth.enevoldsen@cas.au.dk>, Nouamane Tazi <nouamane@huggingface.co>, Nils Reimers <info@nils-reimers.de>
6
6
  Maintainer-email: Kenneth Enevoldsen <kenneth.enevoldsen@cas.au.dk>, Roman Solomatin <risolomatin@gmail.com>, Isaac Chung <chungisaac1217@gmail.com>
@@ -32,6 +32,8 @@ Requires-Dist: rich>=0.0.0
32
32
  Requires-Dist: pytrec-eval-terrier>=0.5.6
33
33
  Requires-Dist: pydantic>=2.0.0
34
34
  Requires-Dist: polars>=0.20.22
35
+ Requires-Dist: torch<2.9.0; python_full_version < "3.14"
36
+ Requires-Dist: torch>=2.9.0; python_full_version >= "3.14"
35
37
  Provides-Extra: image
36
38
  Requires-Dist: torchvision>0.2.1; extra == "image"
37
39
  Requires-Dist: transformers[torch-vision,vision]; extra == "image"
@@ -60,7 +62,7 @@ Requires-Dist: tiktoken>=0.8.0; extra == "openai"
60
62
  Provides-Extra: model2vec
61
63
  Requires-Dist: model2vec>=0.3.0; extra == "model2vec"
62
64
  Provides-Extra: pylate
63
- Requires-Dist: pylate>=1.3.1; python_version < "3.13" and extra == "pylate"
65
+ Requires-Dist: pylate>=1.3.1; python_full_version < "3.13" and extra == "pylate"
64
66
  Provides-Extra: bm25s
65
67
  Requires-Dist: bm25s>=0.2.6; extra == "bm25s"
66
68
  Requires-Dist: PyStemmer>=2.2.0.3; extra == "bm25s"
@@ -91,7 +93,7 @@ Provides-Extra: ark
91
93
  Requires-Dist: volcengine-python-sdk[ark]==3.0.2; extra == "ark"
92
94
  Requires-Dist: tiktoken>=0.8.0; extra == "ark"
93
95
  Provides-Extra: colpali-engine
94
- Requires-Dist: colpali_engine>=0.3.12; extra == "colpali-engine"
96
+ Requires-Dist: colpali_engine>=0.3.12; python_full_version < "3.14" and extra == "colpali-engine"
95
97
  Provides-Extra: colqwen3
96
98
  Requires-Dist: transformers>=4.57; extra == "colqwen3"
97
99
  Requires-Dist: torchvision>=0.22.1; extra == "colqwen3"
@@ -144,12 +146,17 @@ Dynamic: license-file
144
146
 
145
147
  ## Installation
146
148
 
147
- You can install mteb simply using pip. For more on installation please see the [documentation](https://embeddings-benchmark.github.io/mteb/installation/).
149
+ You can install mteb simply using pip or uv. For more on installation please see the [documentation](https://embeddings-benchmark.github.io/mteb/installation/).
148
150
 
149
151
  ```bash
150
152
  pip install mteb
151
153
  ```
152
154
 
155
+ For faster installation, you can also use [uv](https://docs.astral.sh/uv/):
156
+ ```bash
157
+ uv add mteb
158
+ ```
159
+
153
160
 
154
161
  ## Example Usage
155
162
 
@@ -5,8 +5,8 @@ mteb/_helpful_enum.py,sha256=jh73N1jlcpg7RGz4bj8UpctiMNvqvHpp9wrB7SYEzIU,510
5
5
  mteb/_log_once.py,sha256=-tUKzxGQzf2LZSuQXi97oYFXMta1B6GEYXd7BPqssvY,1095
6
6
  mteb/_requires_package.py,sha256=eHg_TD9BVZRzNCcQQrUP17d8M1DF_vOd_tVx54AmAnM,3017
7
7
  mteb/_set_seed.py,sha256=HPlPRl__Pe6IG-4UgJqTfplcivJ_wA2kaClbXoHQedM,1178
8
- mteb/cache.py,sha256=KYUtXTMwSeqaDbJR5b65gZ0KMUpi7GzEgEsy08ocTJ0,26975
9
- mteb/deprecated_evaluator.py,sha256=LCnM-kG2SBkh-xqVd4MurExsVMlFOIycSb7sHz2S_Cw,27634
8
+ mteb/cache.py,sha256=dTx_oumF3JEIMorq-YQDqjTjKH4oIDQQq0MdnFf76Js,27603
9
+ mteb/deprecated_evaluator.py,sha256=gaXEG3HRQpPyd-6PYSFHDJgtIXnFv2y_LyC-mNo1Ihw,27651
10
10
  mteb/evaluate.py,sha256=6h06XsolgVCJEq9j6NA5ebwH2rSLsyIdtrxHanlqQfk,19185
11
11
  mteb/filter_tasks.py,sha256=D9g2o79aQiA5va7u_QKtMlZNDUmYwZGqCDpaKhBimWQ,7335
12
12
  mteb/get_tasks.py,sha256=UoxxsGVgeCm_qonCihl7EOFqWN_9BOCW2IP7GMN7ICw,14319
@@ -1439,7 +1439,7 @@ mteb/languages/language_family.json,sha256=OUGcHeOIPcZPb2FWmYLhxTS0JxjK5y3Fo6x0P
1439
1439
  mteb/languages/language_scripts.py,sha256=p7AM10Fe3b3EOMlPj8i5_MDjtyoH4FMCCBv_zrABWBg,4053
1440
1440
  mteb/languages/programming_languages.py,sha256=zxAakT3OSUnAuTnQ34VyeFIECnNXMlleZmAake6jsZE,211
1441
1441
  mteb/leaderboard/__init__.py,sha256=991roXmtRwEQysV-37hWEzWpkvPgMCGRqZTHR-hm2io,88
1442
- mteb/leaderboard/app.py,sha256=4-IacMDOtGwwMRrtYNSxqcuC8PxE04bJ3L9bTz5B2nM,41939
1442
+ mteb/leaderboard/app.py,sha256=L7yhQvtkVR0eiee6l0I0094U5CTYzvf_YIaT2AW6Qk4,42374
1443
1443
  mteb/leaderboard/benchmark_selector.py,sha256=qd-2L20RQ4ACke01UlytkhZok1dkWgfUlXzfET52kGc,7956
1444
1444
  mteb/leaderboard/figures.py,sha256=cfOK82rRf-7sCjyP7GBxh4ezhOIt0OhD0_86mKtzLrg,7530
1445
1445
  mteb/leaderboard/table.py,sha256=KqU8aAbZ_tDp1O_qXRGWR32QnB7v_lsF6k5jxLcQVN0,10366
@@ -2603,9 +2603,9 @@ mteb/types/_metadata.py,sha256=NN-W0S6a5TDV7UkpRx1pyWtGF4TyyCyoPUfHOwdeci8,2290
2603
2603
  mteb/types/_result.py,sha256=UKNokV9pu3G74MGebocU512aU_fFU9I9nPKnrG9Q0iE,1035
2604
2604
  mteb/types/_string_validators.py,sha256=PY-dYq4E8O50VS3bLYdldPWp400fl_WzUjfVSkNWe8U,523
2605
2605
  mteb/types/statistics.py,sha256=GwkBPmAr18Onu-vHtzHs0PFrhCozdOMiT13HwnWL4ZM,3961
2606
- mteb-2.6.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
2607
- mteb-2.6.1.dist-info/METADATA,sha256=VBXwF7nBuutKGZ13DY_K_1yhTi-ZHpGNvsL_jV-4K1c,13990
2608
- mteb-2.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
2609
- mteb-2.6.1.dist-info/entry_points.txt,sha256=8IJoEJFKoDHmVnNev-qJ9pp4Ln7_1-ma9QsXnzVCzGU,39
2610
- mteb-2.6.1.dist-info/top_level.txt,sha256=OLVIjcQAlWBz0bdmutKlWHLF42FF0hp4uVAg3ZyiG4U,5
2611
- mteb-2.6.1.dist-info/RECORD,,
2606
+ mteb-2.6.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
2607
+ mteb-2.6.2.dist-info/METADATA,sha256=iq0NxS0AReNW_fUZ1NIJDjWetSG_M4h04Nf-7dyzbRU,14251
2608
+ mteb-2.6.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
2609
+ mteb-2.6.2.dist-info/entry_points.txt,sha256=8IJoEJFKoDHmVnNev-qJ9pp4Ln7_1-ma9QsXnzVCzGU,39
2610
+ mteb-2.6.2.dist-info/top_level.txt,sha256=OLVIjcQAlWBz0bdmutKlWHLF42FF0hp4uVAg3ZyiG4U,5
2611
+ mteb-2.6.2.dist-info/RECORD,,
File without changes