Skip to content

Conversation

@AKloniecki
Copy link
Collaborator

What does this PR do?

Backport transpose_for_scores function from prior Transformers version - v4.51.0, which was removed in later release, and the flow was broken after transformers upgrade to v4.55.

This fixes AttributeError: 'XLMRobertaSdpaSelfAttention' object has no attribute 'transpose_for_scores' error, when running make slow_tests_sentence_transformers.

@AKloniecki AKloniecki requested a review from regisss as a code owner October 8, 2025 12:14
@github-actions
Copy link

github-actions bot commented Oct 8, 2025

The code quality check failed, please run make style.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Function backported from prior Transformers version - v4.51.0

Signed-off-by: Artur Kloniecki <[email protected]>
@AKloniecki AKloniecki force-pushed the modeling_xlm_roberta branch from 7e5e37b to 5dc66e5 Compare October 13, 2025 04:45
@AKloniecki AKloniecki requested a review from gplutop7 October 14, 2025 07:00
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