-
Notifications
You must be signed in to change notification settings - Fork 423
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
Update types to follow PEP 585 #2697
Conversation
fa0848c
to
3a7b4a1
Compare
d94d21e
to
34f8c4f
Compare
3a7b4a1
to
5d52b3a
Compare
0bb47f3
to
d5fed8c
Compare
5d52b3a
to
2c3ba52
Compare
d5fed8c
to
ed84f65
Compare
2c3ba52
to
984cdfc
Compare
ed84f65
to
dbccf96
Compare
984cdfc
to
17382fa
Compare
dbccf96
to
ce36c88
Compare
17382fa
to
1a362ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do this everywhere...? Can we just use a replace tool on entire codebase...?
Yes, but incremental changes seem safer? If someone wants to take up the lift of doing it on the entire codebase and validating, I'm happy to close the PR. |
ce36c88
to
a4f710e
Compare
1a362ca
to
65deb58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Fair enough for marginal
a4f710e
to
fa8ab07
Compare
65deb58
to
219fb83
Compare
fa8ab07
to
200e466
Compare
219fb83
to
102b5af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaks python 3.8 (unit tests will catch when they run)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brian claims it works with future
102b5af
to
6cfc91f
Compare
0de8b16
to
3a7d4c6
Compare
6cfc91f
to
263e8ec
Compare
commit-id:45aac269
This PR adds SavePlanner and LoadPlanner from `torch.distributed.checkpoint.planner` into Composer. These parameters are passed in when initializing trainer and are eventually passed to `save_checkpoint` and `load_sharded_checkpoint`. Because planners were implemented in torch 2, there's no type hinting, but type checking happens before the planners are used. Some minor formatting fixes are included in this PR. cc: @vchiley commit-id:4ea6578b
commit-id:ecb54855
3a7d4c6
to
faa8ae5
Compare
263e8ec
to
6b0e98b
Compare
What does this PR do?
commit-id:ecb54855
Stack:
What issue(s) does this change relate to?
Before submitting
pre-commit
on your change? (see thepre-commit
section of prerequisites)