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

tests for legacy checkpoints #5223

Merged
merged 40 commits into from
Jan 8, 2021
Merged

tests for legacy checkpoints #5223

merged 40 commits into from
Jan 8, 2021

Conversation

Borda
Copy link
Member

@Borda Borda commented Dec 21, 2020

What does this PR do?

Fixes #4900

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.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified; Bugfixes should be including in bug-fix release milestones (m.f.X) and features should be included in (m.X.b) releases.

Did you have fun?

Make sure you had fun coding 🙃

@Borda Borda added ci Continuous Integration checkpointing Related to checkpointing labels Dec 21, 2020
@Borda Borda added this to the 1.1.x milestone Dec 21, 2020
@pep8speaks
Copy link

pep8speaks commented Dec 21, 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 2021-01-08 13:53:05 UTC

@codecov
Copy link

codecov bot commented Dec 21, 2020

Codecov Report

Merging #5223 (138bcc3) into master (4c6f36e) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #5223   +/-   ##
======================================
  Coverage      93%     93%           
======================================
  Files         134     134           
  Lines        9994    9994           
======================================
  Hits         9309    9309           
  Misses        685     685           

@Borda Borda marked this pull request as ready for review December 22, 2020 17:26
@Borda
Copy link
Member Author

Borda commented Dec 22, 2020

OK still the need to pull the data for (or skip these envs):

  • Drone with GPUs
  • TPU test docker image

.github/workflows/ci_test-conda.yml Outdated Show resolved Hide resolved
.github/workflows/release-pypi.yml Outdated Show resolved Hide resolved
@Borda Borda requested a review from tchaton December 22, 2020 22:24
@Borda Borda added the ready PRs ready to be merged label Dec 23, 2020
@Borda Borda enabled auto-merge (squash) December 23, 2020 13:07
@Borda
Copy link
Member Author

Borda commented Dec 23, 2020

@tchaton mind review as code-owner?

@Borda Borda added the priority: 1 Medium priority task label Dec 23, 2020
@Borda Borda self-assigned this Dec 29, 2020
@Borda
Copy link
Member Author

Borda commented Dec 29, 2020

@awaelchli @tchaton pls review ^^

Copy link
Member

@awaelchli awaelchli left a comment

Choose a reason for hiding this comment

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

looking very good! so the python script gets copied to the same location we save the checkpoint, to keep full reproducibility, right? should we maybe set a seed too? just to be sure?

@Borda
Copy link
Member Author

Borda commented Dec 29, 2020

looking very good! so the python script gets copied to the same location we save the checkpoint, to keep full reproducibility, right? should we maybe set a seed too? just to be sure?

the setting seed is a good point even not sure if it is needed as we do not check any metrics nor weights...
we can add it follow-up PR as we need to add more checkpoints anyway, this is mainly PoC that the flow works fine :]


# todo: add more legacy checkpoints :]
@pytest.mark.parametrize("pl_version", [
"0.10.0", "1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.0.4", "1.0.5", "1.0.6", "1.0.7", "1.0.8"
Copy link
Contributor

Choose a reason for hiding this comment

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

Any chance we could add 1.1.x too ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, as mentioned #5223 (comment) this is PoC and the next PR will add 0.{6,7,8,9,10}.x and 1.1.x and eventually seeds...

@tchaton
Copy link
Contributor

tchaton commented Dec 29, 2020

looking very good! so the python script gets copied to the same location we save the checkpoint, to keep full reproducibility, right? should we maybe set a seed too? just to be sure?

@Borda It seems to be copied but not used right ?

@Borda
Copy link
Member Author

Borda commented Dec 29, 2020

looking very good! so the python script gets copied to the same location we save the checkpoint, to keep full reproducibility, right? should we maybe set a seed too? just to be sure?

@Borda It seems to be copied but not used right ?

yes, next PR #5223 (comment)

@Borda Borda merged commit 72525f0 into master Jan 8, 2021
@Borda Borda deleted the legacy-checkpoints branch January 8, 2021 15:36
@Borda
Copy link
Member Author

Borda commented Jan 11, 2021

@carmocca @akihironitta wants to take it over and some more versions? :]

@Borda Borda mentioned this pull request Jan 11, 2021
12 tasks
SeanNaren pushed a commit that referenced this pull request Jan 12, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
SeanNaren pushed a commit that referenced this pull request Jan 12, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
SeanNaren pushed a commit that referenced this pull request Jan 13, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
SeanNaren pushed a commit that referenced this pull request Jan 13, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
SeanNaren pushed a commit that referenced this pull request Jan 19, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
Borda added a commit that referenced this pull request Jan 23, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
Borda added a commit that referenced this pull request Jan 25, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
Borda added a commit that referenced this pull request Jan 26, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
Borda added a commit that referenced this pull request Jan 26, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
Borda added a commit that referenced this pull request Jan 26, 2021
* wip

* generate

* clean

* tests

* copy

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* download

* flake8

* extend

* aws

* extension

* pull

* pull

* pull

* pull

* pull

* pull

* pull

* try

* try

* try

* got it

* Apply suggestions from code review

(cherry picked from commit 72525f0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
checkpointing Related to checkpointing ci Continuous Integration priority: 1 Medium priority task ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test loading legacy checkpoints
7 participants