Skip to content

Conversation

ydwu4
Copy link
Contributor

@ydwu4 ydwu4 commented Jul 17, 2025

torch 2.8 enforces a stricter check for the aliasing relationship for correctness reasons. Fixes pytorch/pytorch#158375 by cloning the outputs that aliasing inputs.

cc @ydshieh

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

Thank you.

cc @gante as you are the code owner of this file.

Copy link
Member

@gante gante left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the fix 🤗

@gante gante enabled auto-merge (squash) August 4, 2025 17:04
@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.

@ydshieh ydshieh disabled auto-merge August 5, 2025 09:17
@ydshieh ydshieh merged commit 78ef849 into huggingface:main Aug 5, 2025
22 of 24 checks passed
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
Avoid alaising in cond's branches

Co-authored-by: Yih-Dar <[email protected]>
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
Avoid alaising in cond's branches

Co-authored-by: Yih-Dar <[email protected]>
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
Avoid alaising in cond's branches

Co-authored-by: Yih-Dar <[email protected]>
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
Avoid alaising in cond's branches

Co-authored-by: Yih-Dar <[email protected]>
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
Avoid alaising in cond's branches

Co-authored-by: Yih-Dar <[email protected]>
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
Avoid alaising in cond's branches

Co-authored-by: Yih-Dar <[email protected]>
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
Avoid alaising in cond's branches

Co-authored-by: Yih-Dar <[email protected]>
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.

torch 2.8 RC regression - part 2
4 participants