KEMBAR78
[BC-breaking] Set NonStrict as default for export_for_training by gmagogsfm · Pull Request #150941 · pytorch/pytorch · GitHub
Skip to content

Conversation

@gmagogsfm
Copy link
Contributor

@gmagogsfm gmagogsfm commented Apr 9, 2025

Summary:

  • Flip default value of strict argument from True to False on torch.export.export_for_training API
  • All callsites have been updated to provide this argument explicitly to avoid behavior change.
  • If you see any breakages, that means you may have a new callsite that is missed, please set strict=True explicitly to the callsite to mitigage.

Test Plan: CI

Differential Revision: D72724975

cc @ezyang @gchanan

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 9, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 7183fb5 with merge base 061832b (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72724975

@gmagogsfm gmagogsfm added the module: bc-breaking Related to a BC-breaking change label Apr 9, 2025
@pytorch-bot pytorch-bot bot added the topic: bc breaking topic category label Apr 9, 2025
gmagogsfm added a commit to gmagogsfm/pytorch-1 that referenced this pull request Apr 10, 2025
…ch#150941)

Summary:

- Flip default value of `strict` argument from True to False on torch.export.export_for_training API
- All callsites have been updated to provide this argument explicitly to avoid behavior change.
- If you see any breakages, that means you may have a new callsite that is missed, please set `strict=True` explicitly to the callsite to mitigage.

Test Plan: CI

Differential Revision: D72724975
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72724975

…ch#150941)

Summary:

- Flip default value of `strict` argument from True to False on torch.export.export_for_training API
- All callsites have been updated to provide this argument explicitly to avoid behavior change.
- If you see any breakages, that means you may have a new callsite that is missed, please set `strict=True` explicitly to the callsite to mitigage.

Test Plan: CI

Differential Revision: D72724975
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72724975

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 10, 2025
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@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

timocafe pushed a commit to timocafe/pytorch that referenced this pull request Apr 16, 2025
…ch#150941)

Summary:
- Flip default value of `strict` argument from True to False on torch.export.export_for_training API
- All callsites have been updated to provide this argument explicitly to avoid behavior change.
- If you see any breakages, that means you may have a new callsite that is missed, please set `strict=True` explicitly to the callsite to mitigage.

Test Plan: CI

Differential Revision: D72724975

Pull Request resolved: pytorch#150941
Approved by: https://github.com/ydwu4
amathewc pushed a commit to amathewc/pytorch that referenced this pull request Apr 17, 2025
…ch#150941)

Summary:
- Flip default value of `strict` argument from True to False on torch.export.export_for_training API
- All callsites have been updated to provide this argument explicitly to avoid behavior change.
- If you see any breakages, that means you may have a new callsite that is missed, please set `strict=True` explicitly to the callsite to mitigage.

Test Plan: CI

Differential Revision: D72724975

Pull Request resolved: pytorch#150941
Approved by: https://github.com/ydwu4
@EikanWang
Copy link
Collaborator

EikanWang commented Jun 17, 2025

@gmagogsfm , @ydwu4 since it is a break change and the comment of strict highlights that the False may result in a soundness issue, may I know the motivation to flip the default value of strict argument from True to False on torch.export.export_for_training API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged module: bc-breaking Related to a BC-breaking change release notes: export topic: bc breaking topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants