Skip to content

[BE] bump optree version to 0.12.1 #130139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 37 commits into from

Conversation

XuehaiPan
Copy link
Collaborator

@XuehaiPan XuehaiPan commented Jul 5, 2024

Stack from ghstack (oldest at bottom):

0.12.0 Major Updates:

  • Add context manager to temporarily set the dictionary sorting mode
  • Add accessor APIs
  • Use stable tag for pybind11 for Python 3.13 support
  • Fix potential segmentation fault for pickling support

0.12.1 Updates:

  • Fix warning regression during import when launch with strict warning filters

Closes #130155

[ghstack-poisoned]
@XuehaiPan XuehaiPan requested review from a team and jeffdaily as code owners July 5, 2024 05:07
Copy link

pytorch-bot bot commented Jul 5, 2024

🔗 Helpful Links

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

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

❌ 1 Cancelled Job

As of commit f559691 with merge base 3c622fb (image):

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

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

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the ciflow/mps Run MPS tests (subset of trunk) label Jul 5, 2024
XuehaiPan added 4 commits July 5, 2024 16:37
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@clee2000
Copy link
Contributor

clee2000 commented Jul 5, 2024

Please also pin optree in windows CI

python3 -mpip install $(echo *.whl)[opt-einsum,optree]

The update to 0.12.0 got picked up and is currently failing. I have #130155 to pin it to 0.11.0 to restore the current CI if this takes too long to merge

@@ -273,7 +273,7 @@ def tree_flatten(
>>> from collections import OrderedDict
>>> tree = OrderedDict([('b', (2, [3, 4])), ('a', 1), ('c', None), ('d', 5)])
>>> tree_flatten(tree)
([2, 3, 4, 1, None, 5], PyTreeSpec(OrderedDict([('b', (*, [*, *])), ('a', *), ('c', *), ('d', *)]), NoneIsLeaf))
([2, 3, 4, 1, None, 5], PyTreeSpec(OrderedDict({'b': (*, [*, *]), 'a': *, 'c': *, 'd': *}), NoneIsLeaf))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The update to 0.12.0 got picked up and is currently failing.

@clee2000 The doctest fix is included.

@XuehaiPan XuehaiPan requested review from huydhn, atalman and clee2000 July 5, 2024 17:28
[ghstack-poisoned]
@XuehaiPan XuehaiPan changed the title [BE] bump optree version to 0.12.0 [BE] bump optree version to 0.12.1 Jul 6, 2024
XuehaiPan added 2 commits July 7, 2024 00:58
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 18, 2024
0.12.0 Major Updates:

- Add context manager to temporarily set the dictionary sorting mode
- Add accessor APIs
- Use `stable` tag for `pybind11` for Python 3.13 support
- Fix potential segmentation fault for pickling support

0.12.1 Updates:

- Fix warning regression during import when launch with strict warning filters

ghstack-source-id: c80bc58
Pull Request resolved: pytorch#130139
@XuehaiPan
Copy link
Collaborator Author

Is this new pytree version working with 3.13t ?

Yes, it is tested against Python 3.13t.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
XuehaiPan added a commit to XuehaiPan/pytorch that referenced this pull request Jul 19, 2024
0.12.0 Major Updates:

- Add context manager to temporarily set the dictionary sorting mode
- Add accessor APIs
- Use `stable` tag for `pybind11` for Python 3.13 support
- Fix potential segmentation fault for pickling support

0.12.1 Updates:

- Fix warning regression during import when launch with strict warning filters

ghstack-source-id: 473f570
Pull Request resolved: pytorch#130139
@XuehaiPan
Copy link
Collaborator Author

@pytorchbot merge -i

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 1 checks: Mac MPS / macos-py3-arm64-mps / test (mps, 1, 1, macos-m2-14)

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 that referenced this pull request Jul 21, 2024
DiweiSun pushed a commit to DiweiSun/pytorch that referenced this pull request Jul 22, 2024
0.12.0 Major Updates:

- Add context manager to temporarily set the dictionary sorting mode
- Add accessor APIs
- Use `stable` tag for `pybind11` for Python 3.13 support
- Fix potential segmentation fault for pickling support

0.12.1 Updates:

- Fix warning regression during import when launch with strict warning filters

Closes pytorch#130155
Pull Request resolved: pytorch#130139
Approved by: https://github.com/zou3519
ghstack dependencies: pytorch#130895
DiweiSun pushed a commit to DiweiSun/pytorch that referenced this pull request Jul 22, 2024
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Jul 25, 2024
0.12.0 Major Updates:

- Add context manager to temporarily set the dictionary sorting mode
- Add accessor APIs
- Use `stable` tag for `pybind11` for Python 3.13 support
- Fix potential segmentation fault for pickling support

0.12.1 Updates:

- Fix warning regression during import when launch with strict warning filters

Closes pytorch#130155
Pull Request resolved: pytorch#130139
Approved by: https://github.com/zou3519
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Jul 25, 2024
This reverts commit 8fcb156.

Reverted pytorch#130139 on behalf of https://github.com/clee2000 due to broke inductor/test_torchinductor_codegen_dynamic_shapes.py and test_sympy_utils.py https://hud.pytorch.org/pytorch/pytorch/commit/8fcb156e8b5697a8f292db6db2a1803c5f4ce2d7 ([comment](pytorch#130139 (comment)))
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Jul 25, 2024
0.12.0 Major Updates:

- Add context manager to temporarily set the dictionary sorting mode
- Add accessor APIs
- Use `stable` tag for `pybind11` for Python 3.13 support
- Fix potential segmentation fault for pickling support

0.12.1 Updates:

- Fix warning regression during import when launch with strict warning filters

Closes pytorch#130155
Pull Request resolved: pytorch#130139
Approved by: https://github.com/zou3519
ghstack dependencies: pytorch#130895
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Jul 25, 2024
@github-actions github-actions bot deleted the gh/XuehaiPan/107/head branch August 20, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/mps Run MPS tests (subset of trunk) ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: releng release notes category Reverted topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants