Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions workflow/envs/anemoi_inference.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ dependencies = [
"torch",
"torchvision",
"torchaudio",
"anemoi-datasets>=0.5.23,<0.7.0",
"anemoi-graphs>=0.5.0,<0.7.0",
"anemoi-inference>=0.8.0,<0.9.0",
"anemoi-models>=0.4.20,<0.6.0",
"anemoi-training>=0.3.3,<0.5.0",
"anemoi-transform>=0.1.10,<0.3.0",
"anemoi-utils>=0.4.22,<0.5.0",
"anemoi-datasets",
"anemoi-graphs",
"anemoi-inference",
"anemoi-models",
"anemoi-transform",
"anemoi-utils",
"eccodes==2.38.3",
"eccodes-cosmo-resources-python"
]
Expand All @@ -24,5 +23,5 @@ torchaudio = { index = "pytorch" }

[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu121" # need to couple torch with the correct cuda driver (cudatoolkit version) otherwise torch will be build but it won't be able to access GPUs. Won't throw any errors though!
url = "https://download.pytorch.org/whl/cu124" # need to couple torch with the correct cuda driver (cudatoolkit version) otherwise torch will be build but it won't be able to access GPUs. Won't throw any errors though!
explicit = true
19 changes: 5 additions & 14 deletions workflow/scripts/set_inference_pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,26 @@
"torch-geometric",
]

# NOTE: the order matters! First look for ECMWF repos, then MeteoSwiss ones
_GIT_DEPENDENCIES_CONFIG = {
"anemoi-models": {
"meteoswiss": {
"url": "https://github.com/MeteoSwiss/anemoi-core.git",
"subdirectory": "models",
},
"ecmwf": {
"url": "https://github.com/ecmwf/anemoi-core.git",
"subdirectory": "models",
},
},
"anemoi-graphs": {
"meteoswiss": {
"url": "https://github.com/MeteoSwiss/anemoi-core.git",
"subdirectory": "graphs",
"subdirectory": "models",
},
},
"anemoi-graphs": {
"ecmwf": {
"url": "https://github.com/ecmwf/anemoi-core.git",
"subdirectory": "graphs",
},
},
"anemoi-training": {
"meteoswiss": {
"url": "https://github.com/MeteoSwiss/anemoi-core.git",
"subdirectory": "training",
},
"ecmwf": {
"url": "https://github.com/ecmwf/anemoi-core.git",
"subdirectory": "training",
"subdirectory": "graphs",
},
},
"anemoi-datasets": {
Expand Down
Loading