Skip to content

Conversation

@janeyx99
Copy link
Contributor

@janeyx99 janeyx99 commented Aug 9, 2023

Forward fixes #106615 by increasing tolerance in the test.

The capturable implementation for foreach simply varies due to a different order of operations when updating params. I had also attempted to compare against fp64 but that introduced more disparity in the other optimizer configs. It is worth trying the fp64 comparison at a later point, but let's get the test passing first.

Stack from ghstack (oldest at bottom):

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 9, 2023

🔗 Helpful Links

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

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:

✅ 3 Unrelated Failures

As of commit 2040fd6:

UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:

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

@pytorch-bot pytorch-bot bot added the release notes: foreach_frontend release notes category label Aug 9, 2023
janeyx99 added a commit that referenced this pull request Aug 9, 2023
ghstack-source-id: 6a2a2a3
Pull Request resolved: #106887
@janeyx99 janeyx99 added the ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR label Aug 9, 2023
and isinstance(actual, torch.Tensor)
and actual.ndim == 1
):
actual = actual[0]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This check is not needed after the change of step to a 0D tensor.

@janeyx99 janeyx99 added the topic: not user facing topic category label Aug 9, 2023
@janeyx99 janeyx99 requested review from albanD and izaitsevfb August 9, 2023 19:17
@janeyx99 janeyx99 added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 9, 2023
@janeyx99
Copy link
Contributor Author

@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

@facebook-github-bot facebook-github-bot deleted the gh/janeyx99/81/head branch August 14, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: foreach_frontend release notes category topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants