Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Conversation

@phlippe
Copy link
Contributor

@phlippe phlippe commented Jan 4, 2023

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Updates notebooks to PL 1.8 in terms of:

  • progress bar API (replace progress_bar_refresh_rate by enable_progress_bar)
  • accelerator selection (replace gpus by accelerator and devices)

Fixes typo in torch.backends.cudnn.deterministic

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 🙃

@codecov
Copy link

codecov bot commented Jan 4, 2023

Codecov Report

Merging #222 (f61f7ad) into main (fbed9e5) will not change coverage.
The diff coverage is n/a.

❗ Current head f61f7ad differs from pull request most recent head b22c65f. Consider uploading reports for the commit b22c65f to get more accurate results

Additional details and impacted files
@@ Coverage Diff @@ ## main #222 +/- ## =================================== Coverage 73% 73% =================================== Files 2 2 Lines 382 382 =================================== Hits 280 280 Misses 102 102 
@phlippe
Copy link
Contributor Author

phlippe commented Jan 4, 2023

Remaining problems:

  • Tutorial 10 (PixelCNN) runs out of time in the sampling step, although GPU should be deployed. Is there any issue with the testing there?
  • Tutorial 13 (SimCLR) runs out of time when downloading STL10.
@phlippe phlippe marked this pull request as ready for review January 4, 2023 08:56
@Borda Borda added the enhancement New feature or request label Jan 4, 2023
Copy link
Contributor

@Borda Borda left a comment

Choose a reason for hiding this comment

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

let's add to all meta PL >= 1.8 because this may not be compatible with older versions

@Borda Borda enabled auto-merge (squash) January 4, 2023 14:48
@Borda
Copy link
Contributor

Borda commented Jan 4, 2023

interesting error, not sure where it came from...

KeyboardInterrupt Traceback (most recent call last) Cell In[22], line 2 1 pl.seed_everything(1) ----> 2 samples = model.sample(img_shape=(8, 1, 64, 64)) 3 show_imgs(samples.cpu()) 
@phlippe
Copy link
Contributor Author

phlippe commented Jan 4, 2023

The output on Azure suggests it is running out of time:

=================================== FAILURES =================================== _ course_UvA-DL/10-autoregressive-image-modeling/Autoregressive_Image_Modeling.ipynb::Cell 21 _ Notebook cell execution failed Cell 21: Timeout of 300 seconds exceeded executing cell Input: pl.seed_everything(1) samples = model.sample(img_shape=(8, 1, 64, 64)) show_imgs(samples.cpu()) 

I don't know why it runs out of time now, since it didn't have any problems beforehand. For this notebook, it may be ok to comment out the line since this is just for showing samples, but Tutorial 13 (SimCLR) runs already out of time when downloading the dataset:

=================================== FAILURES =================================== __________ course_UvA-DL/13-contrastive-learning/SimCLR.ipynb::Cell 5 __________ Notebook cell execution failed Cell 5: Timeout of 300 seconds exceeded executing cell Input: unlabeled_data = STL10( root=DATASET_PATH, split="unlabeled", download=True, transform=ContrastiveTransformations(contrast_transforms, n_views=2), ) train_data_contrast = STL10( root=DATASET_PATH, split="train", download=True, transform=ContrastiveTransformations(contrast_transforms, n_views=2), ) Traceback: --------------------------------------------------------------------------- KeyboardInterrupt Traceback (most recent call last) Cell In[6], line 1 ----> 1 unlabeled_data = STL10( 2 root=DATASET_PATH, 3 split="unlabeled", 4 download=True, 5 transform=ContrastiveTransformations(contrast_transforms, n_views=2), 6 ) 7 train_data_contrast = STL10( 8 root=DATASET_PATH, 9 split="train", 10 download=True, 11 transform=ContrastiveTransformations(contrast_transforms, n_views=2), 12 ) 
@Borda Borda self-assigned this Jan 5, 2023
@Borda Borda mentioned this pull request Jan 25, 2023
3 tasks
Copy link
Contributor

@akihironitta akihironitta left a comment

Choose a reason for hiding this comment

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

LGTM!

@awaelchli
Copy link
Contributor

We are getting this error now:

________________________ ERROR collecting test session _________________________ /usr/local/lib/python3.9/dist-packages/pluggy/_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/local/lib/python3.9/dist-packages/pluggy/_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/local/lib/python3.9/dist-packages/nbval/plugin.py:146: in pytest_collect_file return IPyNbFile.from_parent(parent, path=Path(path)) E TypeError: from_parent() missing 1 required keyword-only argument: 'fspath' =============================== warnings summary =============================== ../../../usr/local/lib/python3.9/dist-packages/_pytest/config/__init__.py:1183 /usr/local/lib/python3.9/dist-packages/_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead. self.issue_config_time_warning( -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ ERROR - TypeError: from_parent() missing 1 required keyword-only argument: '... !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! ========================= 1 warning, 1 error in 0.19s ========================== ##[error]Bash exited with code '2'. 

@Borda I saw that nbval comes from your personal fork. Could we try to rebase it to the latest version from upstream?

@mergify mergify bot removed the has conflicts label Mar 14, 2023
@Borda Borda enabled auto-merge (squash) March 14, 2023 01:20
@Borda
Copy link
Contributor

Borda commented Mar 14, 2023

I saw that nbval comes from your personal fork. Could we try to rebase it to the latest version from upstream?

resolved locally with cc59322 and open fix computationalmodelling/nbval#196

@Borda Borda disabled auto-merge March 14, 2023 01:39
@Borda Borda removed their assignment Mar 14, 2023
@Borda Borda merged commit f20a78f into Lightning-AI:main Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

4 participants