Skip to content

Conversation

@Aminsed
Copy link
Contributor

@Aminsed Aminsed commented Oct 5, 2025

Fixes part of #163314

After slicing BlockMask with [], mask_mod was silently replaced with noop_mask. This caused silent incorrect results when users applied transformations to sliced_mask.mask_mod.

Replace noop with _sliced_mask_mod_error that raises RuntimeError with guidance to use base_mask.mask_mod instead.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @drisspg @Chillee @yanboliang @BoyuanFeng

Fixes part of pytorch#163314

After slicing BlockMask, mask_mod was silently replaced with noop_mask.
Replace with error that guides users to use base_mask.mask_mod instead.
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 5, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/164702

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 Cancelled Job

As of commit 49466dc with merge base 321e602 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@Aminsed
Copy link
Contributor Author

Aminsed commented Oct 5, 2025

@pytorchbot label "release notes: nn"

@pytorch-bot pytorch-bot bot added the release notes: nn release notes category label Oct 5, 2025
@drisspg drisspg requested review from BoyuanFeng, Chillee and drisspg and removed request for albanD, jbschlosser and mikaylagawarecki October 5, 2025 21:39
@Aminsed Aminsed requested a review from drisspg October 5, 2025 22:08
Copy link
Contributor

@drisspg drisspg left a comment

Choose a reason for hiding this comment

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

Looks great thanks, need to lint

@BoyuanFeng BoyuanFeng added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 12, 2025
@pytorch-bot pytorch-bot bot removed the ciflow/trunk Trigger trunk jobs on your pull request label Oct 12, 2025
@Aminsed
Copy link
Contributor Author

Aminsed commented Oct 19, 2025

@drisspg @BoyuanFeng Could you please merge as I'm not authorized.

@BoyuanFeng
Copy link
Contributor

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 19, 2025
@BoyuanFeng
Copy link
Contributor

Thanks for the pr!

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@BoyuanFeng
Copy link
Contributor

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / macos-py3-arm64 / build

Details for Dev Infra team Raised by workflow job

@BoyuanFeng
Copy link
Contributor

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / macos-py3-arm64 / build

Details for Dev Infra team Raised by workflow job

@BoyuanFeng
Copy link
Contributor

@pytorchbot merge -f "skip unrelated failure"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit to renato-arantes/pytorch that referenced this pull request Oct 20, 2025
…torch#164702)

Fixes part of pytorch#163314

After slicing BlockMask with `[]`, mask_mod was silently replaced with noop_mask. This caused silent incorrect results when users applied transformations to `sliced_mask.mask_mod`.

Replace noop with `_sliced_mask_mod_error` that raises RuntimeError with guidance to use `base_mask.mask_mod` instead.

Pull Request resolved: pytorch#164702
Approved by: https://github.com/drisspg, https://github.com/BoyuanFeng
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
…torch#164702)

Fixes part of pytorch#163314

After slicing BlockMask with `[]`, mask_mod was silently replaced with noop_mask. This caused silent incorrect results when users applied transformations to `sliced_mask.mask_mod`.

Replace noop with `_sliced_mask_mod_error` that raises RuntimeError with guidance to use `base_mask.mask_mod` instead.

Pull Request resolved: pytorch#164702
Approved by: https://github.com/drisspg, https://github.com/BoyuanFeng
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
…torch#164702)

Fixes part of pytorch#163314

After slicing BlockMask with `[]`, mask_mod was silently replaced with noop_mask. This caused silent incorrect results when users applied transformations to `sliced_mask.mask_mod`.

Replace noop with `_sliced_mask_mod_error` that raises RuntimeError with guidance to use `base_mask.mask_mod` instead.

Pull Request resolved: pytorch#164702
Approved by: https://github.com/drisspg, https://github.com/BoyuanFeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants