Skip to content

Skip Gemma2 SDPA attention tests on transformers 5.21+, keep CI matri… - #12

Open
Rohit7sali wants to merge 1 commit into
mainfrom
fix-gemma2-sdpa-tests
Open

Rohit7sali wants to merge 1 commit into
mainfrom
fix-gemma2-sdpa-tests

Conversation

@Rohit7sali

Copy link
Copy Markdown

From transformers 5.21, Gemma2Model refuses attn_implementation="sdpa". The attention-conformance tests requested it directly, so the 5 gemma2-sdpa cases failed on Python 3.12 CI (Python 3.10 still installs 5.20.2, where they pass). They now skip when transformers reports the implementation is unsupported; any other loading error still fails, and the Gemma2 eager cases keep covering the family.

Library code is unaffected: load_backbone already falls back to eager attention when transformers names attn_implementation in its error.

ci.yml: fail-fast: false, so a failure on one Python version no longer cancels the other version's job and hides its result.

…x running

From transformers 5.21, Gemma2Model refuses attn_implementation="sdpa".
The attention-conformance tests requested it directly, so the 5
gemma2-sdpa cases failed on Python 3.12 CI (Python 3.10 still installs
5.20.2, where they pass). They now skip when transformers reports the
implementation is unsupported; any other loading error still fails, and
the Gemma2 eager cases keep covering the family.

Library code is unaffected: load_backbone already falls back to eager
attention when transformers names attn_implementation in its error.

ci.yml: fail-fast: false, so a failure on one Python version no longer
cancels the other version's job and hides its result.

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

This branch has not been deployed

No deployments
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