Skip to content
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

PyTorch 1.7 Stable support #3821

Merged
merged 30 commits into from
Oct 30, 2020
Merged

PyTorch 1.7 Stable support #3821

merged 30 commits into from
Oct 30, 2020

Conversation

ydcjeff
Copy link
Contributor

@ydcjeff ydcjeff commented Oct 3, 2020

What does this PR do?

Conda 1.7 test is failing again and found out PyTorch 1.7 is in RC stage and 1.7 RC binary cannot be found on conda.

This PR

  • prepares for PyTorch 1.7 stable once it's released
  • doesn't add PyTorch 1.7 new features
  • will fix the failed tests for 1.7 Stable where applicable

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@ydcjeff ydcjeff marked this pull request as draft October 3, 2020 16:55
@ydcjeff ydcjeff changed the title PyTorch 1.7 Stable support [CI SKIP] [WIP] PyTorch 1.7 Stable support [CI SKIP] Oct 3, 2020
@codecov
Copy link

codecov bot commented Oct 3, 2020

Codecov Report

Merging #3821 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #3821   +/-   ##
======================================
  Coverage      93%     93%           
======================================
  Files         113     113           
  Lines        8179    8179           
======================================
  Hits         7600    7600           
  Misses        579     579           

@Borda
Copy link
Member

Borda commented Oct 3, 2020

in meantime, we can drop it from CI #3833 or add a special install task as it is available on pip --pre as pre-release

@Borda Borda added the 3rd party Related to a 3rd-party label Oct 3, 2020
@Borda Borda mentioned this pull request Oct 4, 2020
3 tasks
@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 4, 2020

Is RC version available on pypi? I didn't find it.
PyTorch released RC version via only github release

@Borda Borda changed the title [WIP] PyTorch 1.7 Stable support [CI SKIP] PyTorch 1.7 Stable support Oct 4, 2020
@Borda Borda added this to the 1.0.x milestone Oct 20, 2020
@Borda
Copy link
Member

Borda commented Oct 26, 2020

@ydcjeff can we now install PT 1.7 from regular channels - PyPI and Conda?

@Borda Borda added bug Something isn't working feature Is an improvement or enhancement priority: 0 High priority task labels Oct 26, 2020
@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 26, 2020

@ydcjeff can we now install PT 1.7 from regular channels - PyPI and Conda?

I think not yet

@ydcjeff ydcjeff changed the title PyTorch 1.7 Stable support PyTorch 1.7 Stable support [ci skip] Oct 26, 2020
@pep8speaks
Copy link

pep8speaks commented Oct 27, 2020

Hello @ydcjeff! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-10-30 14:46:36 UTC

@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 27, 2020

@Borda There is no 1.7 docker on docker hub.
Should I push it from here?

@SeanNaren SeanNaren self-requested a review October 29, 2020 12:12
@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 29, 2020

@awaelchli @tchaton @SeanNaren
ready for final review.

@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 30, 2020

Once the CI passed, if ok with the changes, ready to merge.

@SeanNaren
Copy link
Contributor

There is a failing test which seems to not find a pytorch 1.7 base docker image. Do we need to manually create this?

@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 30, 2020

There is a failing test which seems to not find a pytorch 1.7 base docker image. Do we need to manually create this?

@SeanNaren we create docker image nightly and after this is merged, that will be created as well.
But yes, if we wish to create and push to docker hub, will wait for that.

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 30, 2020

pinning @SeanNaren for final review.

@SeanNaren SeanNaren merged commit 0f584fa into Lightning-AI:master Oct 30, 2020
@SeanNaren
Copy link
Contributor

thanks @ydcjeff, will monitor to see if everything goes smoothly with the ci docker workflows!

@ydcjeff ydcjeff deleted the torch/prepare-1.7 branch October 30, 2020 15:43
@SeanNaren
Copy link
Contributor

@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 30, 2020

hey @ydcjeff do we need to add 1.7 to the docker build push here? https://github.com/PyTorchLightning/pytorch-lightning/blob/master/.github/workflows/docker-builds.yml#L17

no need currently, this is pytorch lightning docker image to be used by our users
this is not for CI testing.

@SeanNaren
Copy link
Contributor

Are we missing the public pytorch 1.7 docker image for this test? https://github.com/PyTorchLightning/pytorch-lightning/runs/1332900421

Any idea what's happening here? https://github.com/PyTorchLightning/pytorch-lightning/runs/1332770138

@ydcjeff
Copy link
Contributor Author

ydcjeff commented Oct 30, 2020

Are we missing the public pytorch 1.7 docker image for this test? https://github.com/PyTorchLightning/pytorch-lightning/runs/1332900421

Yes, the image will be built at UTC 0 nightly, so the test will run tmr.
can't trigger the docker build manually.

Any idea what's happening here? https://github.com/PyTorchLightning/pytorch-lightning/runs/1332770138

No idea, that probably comes from master before this PR.

Borda pushed a commit that referenced this pull request Nov 4, 2020
* prepare for 1.7 support [ci skip]

* tpu [ci skip]

* test run 1.7

* all 1.7, needs to fix tests

* couple with torchvision

* windows try

* remove windows

* 1.7 is here

* on purpose fail [ci skip]

* return [ci skip]

* 1.7 docker

* back to normal [ci skip]

* change to some_val [ci skip]

* add seed [ci skip]

* 4 places [ci skip]

* fail on purpose [ci skip]

* verbose=True [ci skip]

* use filename to track

* use filename to track

* monitor epoch + changelog

* Update tests/checkpointing/test_model_checkpoint.py

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
(cherry picked from commit 0f584fa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party Related to a 3rd-party bug Something isn't working feature Is an improvement or enhancement priority: 0 High priority task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants