Skip to content

Upgrade torch to 1.11.0#19

Merged
A669015 merged 11 commits intomainfrom
fix-torch
Apr 14, 2022
Merged

Upgrade torch to 1.11.0#19
A669015 merged 11 commits intomainfrom
fix-torch

Conversation

@A669015
Copy link
Contributor

@A669015 A669015 commented Mar 31, 2022

This PR upgrades the torch version used to 1.11.0 and associated it the 11.3 cuda version by default in the requirements.

Additionally it:

  • upgrades the torch-sparse version to be compatible with the default cuda version supported;
  • fixes the nox installation on CI/CD pipeline (the integrated action was still using the latest python version whatever the python version used in the matrix),
  • fixes the cuda/torch combination when cuda in not available on the system (that is the case on Github CI/CD),
  • add nox session verbosity to ON, for easier debug purpose.

@github-actions
Copy link

github-actions bot commented Mar 31, 2022

Coverage report for weather_forecast/gwd/ use-case

File Coverage Missing
All files 94%
data.py 98% 157
models.py 89% 37-40 90 99
trainer.py 88% 75-76 80

Minimum allowed coverage is 80%

Generated by 🐒 cobertura-action against be0a45c

@github-actions
Copy link

github-actions bot commented Mar 31, 2022

Coverage report for combustion/unets/ use-case

File Coverage Missing
All files 91%
data.py 91% 59 70 72 113 123 129
models.py 87% 41-42 45 48
trainer.py 75% 59-62 66-67 71
unet.py 96% 83 89

Minimum allowed coverage is 80%

Generated by 🐒 cobertura-action against be0a45c

@github-actions
Copy link

github-actions bot commented Mar 31, 2022

Coverage report for combustion/gnns/ use-case

File Coverage Missing
All files 80%
config.py 68% 74-77 81 85-90 94-101
data.py 81% 110-137 163 217
models.py 68% 85 116-131 156-160 210-214 234-238
plotters.py 98% 55-56
trainer.py 76% 70-75 79-80

Minimum allowed coverage is 80%

Generated by 🐒 cobertura-action against be0a45c

Copy link
Contributor

@alxyok alxyok left a comment

Choose a reason for hiding this comment

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

a few non-blocking remarks

pyyaml==6.0
randomname==0.1.5
torch==1.9.0
torch==1.11.0+cu113
Copy link
Contributor

Choose a reason for hiding this comment

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

we should really make sure the version is aligned with what is installed. containerizing everything and freezing this in a Dockerfile would be nice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that is the next step ;)

(bool): True if cuda is available.
"""
try:
out = subprocess.run("nvidia-smi", stdout=subprocess.DEVNULL)
Copy link
Contributor

Choose a reason for hiding this comment

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

is there not a cleaner way to perform this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are maybe other ways to do this, but what do you mean by "cleaner" ?

@A669015 A669015 merged commit ea73988 into main Apr 14, 2022
@A669015 A669015 deleted the fix-torch branch April 14, 2022 13:32
A669015 added a commit that referenced this pull request Apr 15, 2022
* weather_forecast: upgrade torch and adapt nox sessions

* combustion/gnns: upgrade torch and fix datamodule

* combustion/unets: upgrade torch

* ai4sim-ci-cd.yml: improve nox sessions verbosity and cuda support

* weather_forecast: upgrade torch and adapt nox sessions

* combustion/gnns: upgrade torch and fix datamodule

* combustion/unets: upgrade torch

* ai4sim-ci-cd.yml: improve nox sessions verbosity and cuda support

* gnns: fix unsused import

Co-authored-by: rmslm <76530303+rmslm@users.noreply.github.com>
A669015 added a commit that referenced this pull request May 3, 2022
* combustion: fix flake8 isuues

* combustion: adjust last issues

* gnns: fix variable names

* ai4sim-ci-cd.yml: perfer use nox lib instead of buggy action support

* tools: make linting blocker

* first implementation of inference GNN R2 to R3

* cli first implementation in lightning

* gnns: integrate inferer in gnn use-case

* notebooks: add a notebook for inference results

* inferer.py: refactor inferer to be generalizable

* Converted .md to .rst, Removed useless text, and Added details describing the UC

* bugfix syntax

* syntax bugfix

* Linting-compliancy of combustion/unets (with temporarily? disabled docstring rules) (#21)

* Fix bad conflict resolution in GNN (#22)

* combustion: fix flake8 isuues

* combustion: adjust last issues

* gnns: fix variable names

* ai4sim-ci-cd.yml: perfer use nox lib instead of buggy action support

* tools: make linting blocker

* nox_ref_file.py: make build failling is coverage pass under 80%

* Upgrade torch to 1.11.0 (#19)

* weather_forecast: upgrade torch and adapt nox sessions

* combustion/gnns: upgrade torch and fix datamodule

* combustion/unets: upgrade torch

* ai4sim-ci-cd.yml: improve nox sessions verbosity and cuda support

* weather_forecast: upgrade torch and adapt nox sessions

* combustion/gnns: upgrade torch and fix datamodule

* combustion/unets: upgrade torch

* ai4sim-ci-cd.yml: improve nox sessions verbosity and cuda support

* gnns: fix unsused import

Co-authored-by: rmslm <76530303+rmslm@users.noreply.github.com>

* gnns: add unit tests for inferer.py

* inferer.py: fix wrong example path

Co-authored-by: root <rami.salem@atos.net>
Co-authored-by: alxyok <alxyok@naiama.com>
Co-authored-by: Léo Nicoletti <leo.nicoletti@atos.net>
Co-authored-by: rmslm <76530303+rmslm@users.noreply.github.com>
ai4sim-pr-app bot pushed a commit that referenced this pull request Mar 9, 2026
* patch GH merge

* use the var for branch name everywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants