Skip to content

Conversation

@guangy10
Copy link
Contributor

@guangy10 guangy10 commented May 6, 2025

What does this PR do?

Due the regression in torch 2.7 reported in pytorch/pytorch#150994, export with strict=True will fail. The workaround is to toggle the strict=False on 2.7.

Fixes #37876

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@ArthurZucker @gante @ydshieh

@github-actions github-actions bot marked this pull request as draft May 6, 2025 19:09
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@guangy10
Copy link
Contributor Author

guangy10 commented May 6, 2025

cc: @tugsbayasgalan

@guangy10 guangy10 marked this pull request as ready for review May 6, 2025 20:19
@github-actions github-actions bot requested a review from ydshieh May 6, 2025 20:19
Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🤗

@ArthurZucker ArthurZucker merged commit 0b037fd into huggingface:main May 7, 2025
7 checks passed
@guangy10 guangy10 deleted the fix_qwen_export_w_torch_2_7 branch May 7, 2025 17:40
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request May 14, 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.

Qwen model export regression

3 participants