Skip to content

2.7.26

Choose a tag to compare

@KennethEnevoldsen KennethEnevoldsen released this 07 Feb 22:36
· 1015 commits to main since this release

2.7.26 (2026-02-07)

Fix

  • fix: filter corrupted image in Birdsnap (#4068)

  • fix: filter corrupted image in Birdsnap and drop unused splits in zero-shot tasks

  • Filter out corrupted/truncated image at index 3854 in Birdsnap train split
  • Add dataset_transform to AbsTaskZeroShotClassification to keep only eval splits
    (zero-shot tasks don't need train splits)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

  • fix: handle BaseModelOutputWithPooling in CLIP model wrapper

In transformers 5.x, get_text_features and get_image_features return
BaseModelOutputWithPooling instead of a tensor directly. Extract the
pooler_output when needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

  • fix: add None check for dataset in zeroshot classification transform

Fixes mypy type errors where self.dataset could be None when accessing
.keys() and deleting splits in dataset_transform method.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>


Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> (6c00506)

Unknown

  • Backfill missing metadata for historic datasets (#4063)

  • Backfill missing metadata for historic datasets

Fill in missing TaskMetadata fields for ~90 historic datasets as
described in issue #2502. This includes:

  • Classification tasks (Polish, Chinese)
  • Clustering tasks (German, French, Spanish, Swedish, Chinese, Multilingual)
  • Pair classification tasks (Polish, Chinese)
  • Reranking tasks (English, French, Chinese)
  • Retrieval tasks (German, English, Japanese, Korean, Polish, Spanish, Chinese, Multilingual)
  • STS tasks (German, English, French, Korean, Spanish, Chinese)

Fields filled include: date, domains, task_subtypes, license,
annotations_creators, dialect, sample_creation, and bibtex_citation.

The _HISTORIC_DATASETS list is reduced from ~90 entries to just 4
aggregate tasks whose metadata computation has a separate issue
(the compute* methods return None for single-valued fields).

Closes #2502

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

  • Fix type annotation in _compute_license method

Add StrURL to the return type and set type annotation to match
the license field type (Licenses | StrURL | None).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>


Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> (b5fb471)