-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathforecast_hf_rollout.sh
More file actions
43 lines (38 loc) · 1.46 KB
/
forecast_hf_rollout.sh
File metadata and controls
43 lines (38 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Initialize conda:
export OMP_NUM_THREADS=4
# Config options - should remain fixed for now
MODEL="standard_Aurora"
DATASET="cerra_with_boundaries"
# Paths - change these to your paths
DATASET_PATH="hf://HPI-MML/cerrora/cerra_excerpt.zarr"
BOUNDARY_DATASET_PATH="hf://HPI-MML/cerrora/hres_forecasts_excerpt.zarr"
OUTPUT_DIR=$1
rm -rf "$OUTPUT_DIR"
# task.use_wb2_format is used to control whether to save in the normal CERRA format or in
# a format compatible with WeatherBench2 (WB2). When we plan to evaluate using our own
# compute_forecast_rmse.py script, we set this to False. When we plan to evaluate using
# the WB2 evaluation scripts, we set this to True.
python main.py --config-name forecast \
task=forecast \
task.load_from_hf=True \
task.hf_repo="HPI-MML/cerrora" \
task.hf_checkpoint="cerrora-rollout.ckpt" \
task.distributed=False \
task.model_name=Aurora \
task.output_dir=$OUTPUT_DIR \
task.use_wb2_format=True \
task.lead_times="[6,12,18,24,30]" \
task.save_fp64=False \
model=$MODEL \
model.patch_size=8 \
model.use_lora=False \
dataset=$DATASET \
dataset.common.lead_time_hours=6 \
dataset.common.data_path=$DATASET_PATH \
dataset.common.boundary_path=$BOUNDARY_DATASET_PATH \
dataset.common.boundary_size="[168,171,168,171]" \
task.max_rollout_steps=5 \
dataset.val.start_time="2022-01-01T12:00:00" \
dataset.val.end_time="2022-01-07T12:00:00" \
dataloader.num_workers=0