Skip to content

Use lm-eval 0.4.11 to solve issue with transformers v5#46

Merged
dtrifiro merged 1 commit into
openshift-psap:mainfrom
dhuangnm:main
Jun 15, 2026
Merged

Use lm-eval 0.4.11 to solve issue with transformers v5#46
dtrifiro merged 1 commit into
openshift-psap:mainfrom
dhuangnm:main

Conversation

@dhuangnm

@dhuangnm dhuangnm commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Try bumping up lm-eval version to 0.4.11 to solve following error with transformers v5:

.venv/lib64/python3.12/site-packages/lm_eval/models/hf_vlms.py:37: in HFMultimodalLM
    AUTO_MODEL_CLASS = transformers.AutoModelForVision2Seq
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module transformers has no attribute AutoModelForVision2Seq

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Updated lm-eval dependency versions in pyproject.toml: main dependencies pinned lm-eval[api] from 0.4.9.2 to 0.4.11, and leaderboard optional dependencies raised lm-eval[ifeval,math,sentencepiece] minimum from 0.4.8 to 0.4.11.

Changes

Dependency version updates

Layer / File(s) Summary
lm-eval version bumps
pyproject.toml
lm-eval[api] pinned to 0.4.11 in main dependencies, and lm-eval[ifeval,math,sentencepiece] minimum raised to 0.4.11 in the leaderboard optional group.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • sjmonson
  • tarukumar

Poem

🐰 A hop, a bump, a version tale,
From four-point-nine, we now prevail!
lm-eval bounces to 0.4.11,
Leaderboard metrics reach new heaven! 📊

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: bumping lm-eval to version 0.4.11 to resolve a transformers v5 compatibility issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dtrifiro dtrifiro self-requested a review June 15, 2026 17:41
@dtrifiro dtrifiro merged commit b227674 into openshift-psap:main Jun 15, 2026
1 check passed
This was referenced Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants