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.6 #2745

Merged
merged 16 commits into from
Jul 31, 2020
Merged

pytorch 1.6 #2745

merged 16 commits into from
Jul 31, 2020

Conversation

Borda
Copy link
Member

@Borda Borda commented Jul 28, 2020

What does this PR do?

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 🙃

@Borda Borda added priority: 0 High priority task ci Continuous Integration labels Jul 28, 2020
@mergify mergify bot requested a review from a team July 28, 2020 20:32
@Borda
Copy link
Member Author

Borda commented Jul 28, 2020

@yukw777 there is some issue with loading, mind have a look

        if zipfile.is_zipfile(cached_file):
            with zipfile.ZipFile(cached_file) as cached_zipfile:
                members = cached_zipfile.infolist()
                if len(members) != 1:
>                   raise RuntimeError('Only one file(not dir) is allowed in the zipfile')
E                   RuntimeError: Only one file(not dir) is allowed in the zipfile

@pep8speaks
Copy link

pep8speaks commented Jul 29, 2020

Hello @Borda! Thanks for updating this PR.

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

Comment last updated at 2020-07-30 22:48:35 UTC

pytorch_lightning/trainer/training_io.py Show resolved Hide resolved
pytorch_lightning/trainer/training_io.py Show resolved Hide resolved
tests/models/test_tpu.py Show resolved Hide resolved
tests/models/test_tpu.py Show resolved Hide resolved
tests/models/test_tpu.py Show resolved Hide resolved
tests/models/test_tpu.py Show resolved Hide resolved
tests/models/test_tpu.py Show resolved Hide resolved
@mergify mergify bot requested a review from a team July 29, 2020 18:14
@codecov
Copy link

codecov bot commented Jul 29, 2020

Codecov Report

Merging #2745 into master will increase coverage by 0%.
The diff coverage is 67%.

@@          Coverage Diff           @@
##           master   #2745   +/-   ##
======================================
  Coverage      90%     90%           
======================================
  Files          76      76           
  Lines        6768    6776    +8     
======================================
+ Hits         6108    6117    +9     
+ Misses        660     659    -1     

@Borda Borda marked this pull request as ready for review July 29, 2020 20:49
@yukw777
Copy link
Contributor

yukw777 commented Jul 29, 2020

pytorch 1.6 issue: pytorch/pytorch#42239

@Borda
Copy link
Member Author

Borda commented Jul 29, 2020

@yukw777 good job! it seems not that the update is not completely compatible with PT 1.3 mind check it?
we cal also just make a check of used PT version and adjust usage...

@yukw777
Copy link
Contributor

yukw777 commented Jul 30, 2020

@Borda
Copy link
Member Author

Borda commented Jul 30, 2020

why do we skip 3.8? can we add it back in?

if we can, let's re-enable it in another PR :]

@tgaddair
Copy link
Contributor

tgaddair commented Jul 30, 2020

@tgaddair

https://github.com/PyTorchLightning/pytorch-lightning/blob/8ab5bcda3d040fbe6fd616ff45793e3dfd1061ce/.github/workflows/ci-testing.yml#L104

why do we skip 3.8? can we add it back in?

Hey @yukw777, the underlying issue was fixed in Horovod 0.19.2. So provided the min version is at or above that, we can remove the checks against Python 3.8.

@yukw777
Copy link
Contributor

yukw777 commented Jul 30, 2020

@tgaddair got it, thanks! sorry for the weird location of my comment. it was late at night and i mixed up the issues lol you can delete that and post it over here if you'd like.

@tgaddair
Copy link
Contributor

No worries, comment has been moved.

@Borda Borda mentioned this pull request Jul 30, 2020
@Borda
Copy link
Member Author

Borda commented Jul 30, 2020

@tgaddair @yukw777 resolving this issue here #2764

if: runner.os == 'windows' && matrix.requires == 'latest'
run: |
python -c "fname = 'requirements/base.txt' ; req = open(fname).read().replace('torch>=1.3', 'torch<1.5') ; open(fname, 'w').write(req)"
#- name: Setup Windows on Latest
Copy link
Contributor

Choose a reason for hiding this comment

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

@Borda do we just want to remove this instead of commenting it out?

Copy link
Member Author

Choose a reason for hiding this comment

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

probably at the time I commented I was not sure if it would work :]

Copy link
Contributor

Choose a reason for hiding this comment

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

hm? so we should remove it or keep it commented like that?

@mergify mergify bot requested a review from a team July 30, 2020 17:51
@Borda Borda changed the title pytorch 1.6 [blocked by #2764] pytorch 1.6 Jul 30, 2020
@Borda Borda added the ready PRs ready to be merged label Jul 30, 2020
@Borda Borda requested review from yukw777 and ananyahjha93 July 30, 2020 21:38
@@ -309,7 +309,7 @@ def test_model_saving_loading(tmpdir):
hparams_path = os.path.join(hparams_path, 'hparams.yaml')
model_2 = EvalModelTemplate.load_from_checkpoint(
checkpoint_path=new_weights_path,
hparams_file=hparams_path
hparams_file=hparams_path,
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a good practice thing, adding a comma even after the last param?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess black does it too as with adding new parameter dif shows changed just one line instead of two if you have to add "," to the previous one...

@mergify mergify bot requested a review from a team July 30, 2020 22:30
@mergify mergify bot requested a review from a team July 30, 2020 22:32
Copy link
Contributor

@yukw777 yukw777 left a comment

Choose a reason for hiding this comment

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

Looks good overall! I'll let you decide what to do with the commented out block in ci-testing.yml :)

@mergify mergify bot requested a review from a team July 31, 2020 03:29
Copy link
Member

@ethanwharris ethanwharris left a comment

Choose a reason for hiding this comment

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

👍

@Borda Borda merged commit 06e8910 into master Jul 31, 2020
@Borda Borda deleted the tests/pt-1.6 branch July 31, 2020 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous Integration priority: 0 High priority task ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants