Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion mteb/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,20 @@ def _download_cached_results_from_branch(
response = requests.get(url, timeout=timeout)
response.raise_for_status()

# Validate content-type header
# Check if this is a Git LFS pointer file
content_type = response.headers.get("content-type", "").lower()
if (
content_type == "text/plain; charset=utf-8"
and b"git-lfs" in response.content
):
# Try Git LFS media URL instead
media_url = f"https://media.githubusercontent.com/media/{repo_path}/{branch}/{filename}"
logger.info(f"Detected Git LFS file, trying media URL: {media_url}")
response = requests.get(media_url, timeout=timeout)
response.raise_for_status()
content_type = response.headers.get("content-type", "").lower()

# Validate content-type header
expected_content_types = [
"application/gzip",
"application/octet-stream",
Expand Down
7 changes: 7 additions & 0 deletions mteb/leaderboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,13 @@ def update_tables(
logging.getLogger("mteb.results.benchmark_results").setLevel(logging.ERROR)

warnings.filterwarnings("ignore", message="Couldn't get scores for .* due to .*")
warnings.filterwarnings("ignore", message="Could not get source model: .*")
warnings.filterwarnings(
"ignore", message="No scores data available. Returning empty DataFrame."
)
warnings.filterwarnings("ignore", message="Main score .* not found in scores")
warnings.filterwarnings("ignore", message=".*: Missing subsets .* for split .*")
warnings.filterwarnings("ignore", message=".*: Missing splits .*")

app = get_leaderboard_app()

Expand Down
18 changes: 17 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.