Skip to content

Commit

Permalink
WIP stretched grid debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
VeraChristina committed Feb 24, 2025
1 parent 41a0cdd commit 9d7dfbb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration/stretched_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defaults:
- training: default
- _self_

no_validation: False
no_validation: True


dataloader:
Expand All @@ -22,8 +22,8 @@ dataloader:
num_workers:
training: 1
limit_batches:
training: 100
validation: 100
training: 8
validation: 8
training:
start: "2017-01-01"
end: "2017-01-07"
Expand Down Expand Up @@ -79,7 +79,6 @@ hardware:
forcing_dataset: aifs-od-an-oper-0001-mars-o96-2016-2023-6h-v6
graph: test_stretched_graph.pt
paths:
grids: null
output: ${oc.env:PWD}/tmp_output/

# number of GPUs per node and number of nodes (for DDP)
Expand Down
9 changes: 9 additions & 0 deletions tests/integration/test_training_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ def test_training_cycle_architecture_configs(architecture_config) -> None:
def test_training_cycle_grid_configs(stretched_config) -> None:
AnemoiTrainer(stretched_config).train()
shutil.rmtree(stretched_config.hardware.paths.output)

if __name__ == "__main__":
from omegaconf import OmegaConf
from hydra import compose
from hydra import initialize
with initialize(version_base=None, config_path="", job_name="test_training"):
cfg = compose(config_name="stretched_config", overrides=[])
OmegaConf.resolve(cfg)
test_training_cycle_architecture_configs(cfg)

0 comments on commit 9d7dfbb

Please sign in to comment.