Skip to content

Conversation

Cyrilvallez
Copy link
Member

@Cyrilvallez Cyrilvallez commented Sep 15, 2025

What does this PR do?

Fixes #40853. Always a bad idea to reattribute the module's data, should simply be manipulated in-place. We should not even have initialization schemes in __init__, but as the model is marked as deprecated, I only fixed it quickly instead of refactoring

Also fix the dataclass: without annotation, the field is not added in the init, only as a class attribute, which later crashes...

@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.

@Cyrilvallez Cyrilvallez merged commit 04d1c8f into main Sep 15, 2025
15 checks passed
@Cyrilvallez Cyrilvallez deleted the fix-deta branch September 15, 2025 15:23
ErfanBaghaei pushed a commit to ErfanBaghaei/transformers that referenced this pull request Sep 25, 2025
vijayabhaskar-ev pushed a commit to vijayabhaskar-ev/transformers that referenced this pull request Oct 2, 2025
yuchenxie4645 pushed a commit to yuchenxie4645/transformers that referenced this pull request Oct 4, 2025
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.

Top Three Models on Object Detection Leaderboard Won't Load on Newest Version
3 participants