Skip to content

Commit 72b56d7

Browse files
committed
updates from way back
1 parent 17a89d4 commit 72b56d7

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ module --quiet load anaconda/3
152152
conda create -n get_data_env python=3.10
153153
conda activate get_data_env
154154
pip install hatch
155-
hatch run /network/datasets/climateset/scripts/extract_climateset.py --dest $SCRATCH/climateset_data
155+
hatch run /network/datasets/climateset/scripts/extract_climateset.py --dest $SCRATCH/ClimateSet
156156
```
157157

158-
You can either extract it once on scratch and use that path for your data handling. Alternatively, you can extract it on each slurm job to have the data directly available on the computing node.
158+
We recommend extracting the data into your ClimateSet repo, so you have the data available where it is expected.
159159

160160
#### For ClimaX: Download pre-trained checkpoints
161161

emulator/configs/experiment/issue_12_debug/climax.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
defaults:
66
- override /mode: exp.yaml
7-
- override /trainer: debug_local.yaml
7+
- override /trainer: debug.yaml
88
- override /model: climax.yaml # put the desired model name here
99
- override /callbacks: default.yaml
10-
- override /logger: none.yaml
11-
- override /datamodule: climate.yaml # standard datamodule configurations
10+
- override /logger: wandb.yaml
11+
- override /datamodule: mini-climate.yaml # standard datamodule configurations
1212

1313
# all parameters below will be merged with parameters from default configurations set above
1414
# this allows you to overwrite only specified parameters
@@ -48,4 +48,4 @@ datamodule: # overwrite what stuff to train on
4848
logger:
4949
wandb:
5050
group: "Debug-issue-12"
51-
tags: ["issue-12", "single_emulator", "climax", "NorESM2-LM", "tas+pr", "run1"] # set your tags here
51+
tags: ["issue-12", "mila-test", "single_emulator", "climax", "NorESM2-LM", "tas+pr", "run1"] # set your tags here

emulator/configs/experiment/issue_12_debug/climax_frozen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
defaults:
66
- override /mode: exp.yaml
7-
- override /trainer: debug_local.yaml
7+
- override /trainer: debug.yaml
88
- override /model: climax_frozen.yaml # put the desired model name here
99
- override /callbacks: default.yaml
10-
- override /logger: none.yaml
11-
- override /datamodule: climate.yaml # standard datamodule configurations
10+
- override /logger: wandb.yaml
11+
- override /datamodule: mini-climate.yaml # standard datamodule configurations
1212

1313
# all parameters below will be merged with parameters from default configurations set above
1414
# this allows you to overwrite only specified parameters
@@ -48,4 +48,4 @@ datamodule: # overwrite what stuff to train on
4848
logger:
4949
wandb:
5050
group: "Debug-issue-12"
51-
tags: ["issue-12", "single_emulator", "climax_frozen", "NorESM2-LM", "tas+pr", "run1"] # set your tags here
51+
tags: ["issue-12", "mila-test", "single_emulator", "climax_frozen", "NorESM2-LM", "tas+pr", "run1"] # set your tags here

emulator/configs/experiment/issue_12_debug/convlstm.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
defaults:
66
- override /mode: exp.yaml
7-
- override /trainer: debug_local.yaml
7+
- override /trainer: debug.yaml
88
- override /model: conv_lstm.yaml # put the desired model name here
99
- override /callbacks: default.yaml
10-
- override /logger: none.yaml
11-
- override /datamodule: climate.yaml # standard datamodule configurations
10+
- override /logger: wandb.yaml
11+
- override /datamodule: mini-climate.yaml # standard datamodule configurations
1212

1313
# all parameters below will be merged with parameters from default configurations set above
1414
# this allows you to overwrite only specified parameters
@@ -49,4 +49,4 @@ logger:
4949
wandb:
5050
#offline: True
5151
group: "Debug-issue-12"
52-
tags: ["issue-12", "single_emulator", "conv_lstm", "NorESM2-LM", "tas+pr", "run1"] # set your tags here
52+
tags: ["issue-12", "mila-test", "single_emulator", "conv_lstm", "NorESM2-LM", "tas+pr", "run1"] # set your tags here

emulator/configs/experiment/issue_12_debug/unet.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
defaults:
66
- override /mode: exp.yaml
7-
- override /trainer: debug_local.yaml
7+
- override /trainer: debug.yaml
88
- override /model: unet.yaml # put the desired model name here
99
- override /callbacks: default.yaml
1010
- override /logger: wandb.yaml #wandb.yaml
11-
- override /datamodule: climate.yaml # standard datamodule configurations
11+
- override /datamodule: mini-climate.yaml # standard datamodule configurations
1212

1313
# all parameters below will be merged with parameters from default configurations set above
1414
# this allows you to overwrite only specified parameters
@@ -23,7 +23,7 @@ seed: 22201
2323

2424
trainer:
2525
min_epochs: 1
26-
max_epochs: 1 #50
26+
max_epochs: 10 #50
2727

2828
model:
2929
loss_function: "climax_lon_lat_rmse"
@@ -48,4 +48,4 @@ datamodule: # overwrite what stuff to train on
4848
logger:
4949
wandb:
5050
group: "Debug-issue-12"
51-
tags: ["issue-12", "single_emulator", "unet", "NorESM2-LM", "tas+pr", "run1"] # set your tags here
51+
tags: ["issue-12", "mila-test", "single_emulator", "unet", "NorESM2-LM", "tas+pr", "run1"] # set your tags here

scripts/download_climax_checkpoints.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
mkdir -p "emulator/src/core/models/climax/pretrained_checkpoints/"
33
cd "emulator/src/core/models/climax/pretrained_checkpoints/"
44
echo "Downloading pretrained ClimaX weights from the original release..."
5-
curl -L "https://huggingface.co/tungnd/climax/resolve/main/5.625deg.ckpt" --output ClimaX-5.625deg.ckpt
6-
curl -L "https://huggingface.co/tungnd/climax/resolve/main/1.40625deg.ckpt" --output ClimaX-1.40625deg.ckpt
5+
#curl -L "https://huggingface.co/tungnd/climax/resolve/main/5.625deg.ckpt" --output ClimaX-5.625deg.ckpt
6+
#curl -L "https://huggingface.co/tungnd/climax/resolve/main/1.40625deg.ckpt" --output ClimaX-1.40625deg.ckpt
7+
wget -O ClimaX-5.625deg.ckpt "https://huggingface.co/tungnd/climax/resolve/main/5.625deg.ckpt"
8+
wget -O ClimaX-1.40625deg.ckpt "https://huggingface.co/tungnd/climax/resolve/main/1.40625deg.ckpt"
79
echo "Done."

0 commit comments

Comments
 (0)