Skip to content

Conversation

@jon-chuang
Copy link
Collaborator

Partial fix: #110606

More on has_complex shortcut: #110613 (comment)

CC: @janeyx99 @mlazos @lezcano

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 5, 2023

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 084f156 with merge base cf1b494 (image):

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.

@jon-chuang jon-chuang changed the title feat(optim): Add RAdam support for complex, with has_complex shortcut feat(optim): Add RAdam support for complex, with has_complex shortcut Oct 5, 2023
@albanD albanD removed their request for review October 5, 2023 19:00
@soulitzer soulitzer added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Oct 5, 2023
# Update steps
torch._foreach_add_(grouped_state_steps, 1)

if has_complex:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider factoring this out into an aux function shared across optimisers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I will look into it in following up to #110607. However, I'm not entirely sure there's a neat way to handle it due to users of the functional APIs. For instance, we already tried to factor out the improvements into the _init_group, which was a cleaner fix, but were worried that some people may use the functional APIs directly. #110596 (review).

@jon-chuang
Copy link
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 6, 2023
@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

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 Merged open source release notes: optim triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[optim]: NAdam, RAdam and _multi_tensor_adadelta do not support complex types

5 participants