diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d9fa3176839fa6cf039fa3c0b3a4c3f1bdbd045b --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h1-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 1 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_AUST_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 1.0 + val_gfed_regions: + - AUST + test_gfed_regions: + - AUST + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..2832ca21cf461d9d5c1c7991156663b22a145ca8 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fea29fb69a4e6e171ae159001129167879424c489ba649ffc1f2017d3e6b126 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..29d23dac2b4d9de4dc408918d37dff2b0cd9e825 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h16-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 16 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_3/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_AUST_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 1.0 + val_gfed_regions: + - AUST + test_gfed_regions: + - AUST + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..08efe37a29ae66a07b7290b3feb3cc7481dd19c8 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d27f458a40a82f15481ec2fa38e1acee67f30e0e0b4723166cdbfafe2c8f34bd +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f8afa269a4062acaec43944c4c1f2fa04d66804b --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h2-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 2 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_4/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_AUST_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 1.0 + val_gfed_regions: + - AUST + test_gfed_regions: + - AUST + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..319d939517aa74beb0d1cc14cf36a535524ff173 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c988f0de3d79a311dde5d508641cdf2679b5296861916758e77d5747f2621c26 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3e3a6211b4036759aafcf9b4bac574dab4508a27 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h24-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 24 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_3/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_AUST_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 1.0 + val_gfed_regions: + - AUST + test_gfed_regions: + - AUST + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..62c16c961e0a988e04718034b8b21981e763b677 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c2ddecc41009f8e5d526bc577bd08d9b097fd080b23f9e852cdc911967fc6d4 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cf302c8bbd34f7b351222b7b58897b031326469c --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h4-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 4 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_AUST_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 1.0 + val_gfed_regions: + - AUST + test_gfed_regions: + - AUST + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..d7cb3248cd3066523c5e27473dc28589669b707c --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd6648a26b2b25817a80c65e6c90ed6e506eef30070c93070571b35bb20b3318 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dd17785c5f5c66b3854de2fafcf1cbc2112961cf --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h8-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 8 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_4/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_AUST_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 1.0 + val_gfed_regions: + - AUST + test_gfed_regions: + - AUST + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-AUST-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..f17c74001d79ef14767021544fe287399bd11483 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-AUST-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d099664b0dfec4b4a76c270e5187354390c1c2c0f756da36a9661601bd5fab26 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..81765bee81c91479c699842958b457e36ab037a4 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h1-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 1 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_1/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_BOAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 1.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - BOAS + test_gfed_regions: + - BOAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..e8498212acad47d09cb5b71b60c216a9a8dcd86c --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3715dc7d4c82241716c398335b7bbc2437316052ce673108834292befe86946 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d5926325eef1a4556a0401edd394ae548eda0dfa --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h16-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 16 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_3/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_BOAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 1.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - BOAS + test_gfed_regions: + - BOAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..b29ea9826bb9246f6ac1b8d2486a49044bcecff3 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00c0cc3a19fb05836637b24cde8febf0e39451398184dd18e9448b89b777b858 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a931e21719cf5a08bb29e60520b2f46c71b19ce4 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h2-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 2 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_0/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_BOAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 1.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - BOAS + test_gfed_regions: + - BOAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..bd1d4b27e43d9e4a9db4486b56c91ff68dcc58ea --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:653bc0fcd5b45f77669b30dc0fd0c362a71c863fdb1d58e9db009eb177905196 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c1551b4d8424137c3cdfe0e4fe44a7218f3f75bc --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h24-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 24 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_BOAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 1.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - BOAS + test_gfed_regions: + - BOAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..45b5637152d11a64838d6cf539eed691127c775e --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:703add7c2e59349bab48f8bb0143b4d26d152f42f40f982686585108a1c6317a +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1950c55c06624334e79eb1310e7b1616f3e04166 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h4-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 4 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_1/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_BOAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 1.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - BOAS + test_gfed_regions: + - BOAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..d24aa161c9fe414528b4acabab7744702bb70d85 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:010eadb46e65b50e078577f60eee7134117291ed9bfc566edfdb2755d8adbe81 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..02b8a469f1dbabc272ce0b10a0e3b36ae5148eb6 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h8-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 8 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_2/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_BOAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 1.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - BOAS + test_gfed_regions: + - BOAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..4e698f752536f864396f820cf723e0c15f278480 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BOAS-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73db0f234afdf75519757fdc4d3053e05ceaec5020bdda719bd1d99cdbeadee8 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d329cd198ccd333d37724cd411e7470a731ee921 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h1-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 1 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_CEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 1.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - CEAS + test_gfed_regions: + - CEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..702f616bcde4f406fa1590584f22cf9ad319ae22 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3244a554ff1955d5226feeaaf0caae2398ede973c44a578b7d54a3a31ce6466c +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..25c81fddadb84ff1cb0615aaec2bb8e78dd0bc38 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h16-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 16 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_4/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_CEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 1.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - CEAS + test_gfed_regions: + - CEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..086d2f516bc04e03de4cd656f21d76eac85df898 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b4ba1917060401ab916048f06d22bd1e5bdb4d36b34ba61d19107b4b0af265d +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bd58cde18ca10519c9dfdba736eb5d0bfb1ee89d --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h2-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 2 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_CEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 1.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - CEAS + test_gfed_regions: + - CEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..1b0206e5dfe00f91f4f5c207d85244a93eb92f62 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcae7799c528e77ef4bbc5c0b87059eb77282ff373facd7033aaacdecb7e41ef +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1fccefdfc6faf406d8bb622adb80ca843e8bb783 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h24-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 24 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_3/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_CEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 1.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - CEAS + test_gfed_regions: + - CEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..df4a6bb75d51297ee2b7079fd58ecca657fc58a4 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e89a523549f7cfdc52d6b15fa012a0f7f09c38570e5f03cc9f03eee71e669e41 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bebe6588c0c26e123edb0059bb579591a2cfb3df --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h4-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 4 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_6/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_CEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 1.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - CEAS + test_gfed_regions: + - CEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..389d59beaa5fa157c5045612da8774607352af5c --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57d90f7f0b149c4d66a26ac745af2d5fb19f47afe29b396ca1d253c3ac6774e6 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f591906d5d8a95913503bc457cca927d861865d0 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h8-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 8 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_16/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_CEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 1.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - CEAS + test_gfed_regions: + - CEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..d07e47d95f8fd0613b59d4d44f38902ce00fe131 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAS-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f71a8d3e18d1e361a33f9117dc4f5860c83c721b70b0fd35bcdb22c303616bb +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4983f78581bc89b6c7c2f516c5d5e13177821bea --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h1-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 1 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_4/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EQAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 1.0 + AUST: 0.0 + val_gfed_regions: + - EQAS + test_gfed_regions: + - EQAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..44a5bbb1ec21c713fdd5120c1897f93a96e22c6c --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93af503846d2ef6526737c3174ee716b0224db973795c446b04d182e22ed3256 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f2fd24871753e5fd458f96123111f793889d3522 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h16-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 16 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_2/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EQAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 1.0 + AUST: 0.0 + val_gfed_regions: + - EQAS + test_gfed_regions: + - EQAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..6887c0ed5eae5af182913b592c3e0f9e7dfba08e --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf80392a1d1b51836f96d432ed6b5b56ac8fa43d9d31ab6fdf19ff0aa83032c6 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..10c3ac909b57a6a0db0737b0ba046198fb080e6d --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h2-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 2 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_4/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EQAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 1.0 + AUST: 0.0 + val_gfed_regions: + - EQAS + test_gfed_regions: + - EQAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..d693f03a2f150fba1c7c8d4bac1edf1e3935531d --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af6a0d7cb68a3fa428345ae0c415b17f5043590b43cb1bb39b86c51e2d4cb0f7 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..71d598becc6ef40a02d30c5a3db050d654051864 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h24-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 24 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_1/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EQAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 1.0 + AUST: 0.0 + val_gfed_regions: + - EQAS + test_gfed_regions: + - EQAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..028565b16e940699ffba241ccfba702dca0140d1 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5dd86713743ded5f557b643c0c1eff2d959fe613537aadc68a8284f6e5e00c5 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..efd1d40552a97d91f917125c2e2a41e1de5d37cc --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h4-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 4 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EQAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 1.0 + AUST: 0.0 + val_gfed_regions: + - EQAS + test_gfed_regions: + - EQAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..18a93a77e2e8bb9e954f9db93263433b11493276 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fe0a7db4c0f0a60848dec42dc619d88561f5753a1601a9481615ea20ae21fad +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ffb51ea9e85c30e96212b733b9c2c242576ca65c --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h8-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 8 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_3/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EQAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 1.0 + AUST: 0.0 + val_gfed_regions: + - EQAS + test_gfed_regions: + - EQAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..1c0687029e56aa37862b24fa5499b5cf767b6f61 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EQAS-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce1aac5dfb823568c8c0f9a38f977dcef12a56f39a818e9505a1a21484ddfc6d +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..971d1114caab193e8d421da5bac7b201cc1d0a7f --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h1-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 1 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHSA_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 1.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHSA + test_gfed_regions: + - NHSA + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..58ea3d90e08067769dc6cbe69908319eb7fe0a6d --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11e7516cdb53645fb80ccb3444da9b7dc2c6dd6193caf22351b772f767c6b76d +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bf627336491c6904bbeff937c4fb9d4cca71d862 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h16-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 16 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_6/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHSA_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 1.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHSA + test_gfed_regions: + - NHSA + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..d8ffefa8b82a88bf032eee2c65bdb15eb5367328 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dedab78bfcb3e1b015e60ce1480e8087add185f2355aeaf53f1af6687ef5a58a +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..63a52fbf9f9b18ef9253d596ffb1c586a93f8d23 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h2-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs1 + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 2 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs1/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHSA_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 1.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHSA + test_gfed_regions: + - NHSA + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..5739836cc59f413854e899c8e288ec2020620a6d --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0772c281ac1be0464151f65f0bd28e03b0276dee2376458252de5ed891eb9e02 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6e58ac2072153aa90a2f54e00e0d879e801e5b7e --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h4-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 4 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_4/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHSA_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 1.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHSA + test_gfed_regions: + - NHSA + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..6c61f5cc854c9d80e4c1595a16c99789b6724bdb --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67f16fb893d6e449213d928b7fe7d1907228349b150d49092d8e598a23ef8ee4 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3a343a73e14454482a9c19575dafac50c4f2ccdc --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h8-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 8 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_6/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHSA_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: /var/local/storage/michail/seasfire_cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 1.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHSA + test_gfed_regions: + - NHSA + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..b2a3262a44ac6ac33e49a688614ee657d85599fb --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHSA-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c914f836efc123378e233b9095fa5d5f2171c8aca607dc371ad4caacf50c926 +size 114511306 diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee345c06d47e3d1e510d1e2839df1e6cb11d2209 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h1-config.yaml @@ -0,0 +1,184 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: './' + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: 'epoch' + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + save_last: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + mode: 'max' + monitor: 'val_auprc' + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: 'norm' + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SEAS_6u.json.gz + sp_res: 0.250 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + timeseries_len: 24 + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_mlp_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: "../cube_v3.zarr" + gfed_region_enable_loss_weighting: true + gfed_region_var_name: "gfed_region" + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 1.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SEAS + test_gfed_regions: + - SEAS + lsm_filter_enable: true + lsm_var_name: "lsm" + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 0.00000001 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null +data: + cube_path: "../cube_v3.zarr" + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 1 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: "cube" +ckpt_path: null diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..6a43861346fbec7628afbc94d1f57bb160fbbde6 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e641981c5102c3baebcf7cdd71854ac944dfdf8629a4e399977673be1117eff +size 114511242 diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..286c960f34cd7bbad97e4cbfb010ae44f7f8a411 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h16-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 16 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_8/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 1.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SEAS + test_gfed_regions: + - SEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..5fe5cd22b87d2867b63e90596bd02a0cf3ac2c4e --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf4c6ffa14f10e3999251390e1d426f765bee240e47de2c1b6e35e607f697207 +size 114511242 diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7f2c7e00d3d3f526f03cb6961b0b3558991ab54a --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h2-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 2 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_5/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 1.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SEAS + test_gfed_regions: + - SEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..414dd21027a0693b2abe9b185e23ab82ccdc2ca2 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b267641d9fe5dbd071bc6d486ef48690d1fcc3904d1f2a2d50349b235a4d31f +size 114511242 diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..29c99c4efab434268636a438df0c363675e4b9ca --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h24-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 24 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_6/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 1.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SEAS + test_gfed_regions: + - SEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..fa3221438315753585692ed5cdac6b918a3b1ea4 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:206dd752b628817ae0f14c1ff7cee1feab2eedc6c7c7c727aa14d868652e034b +size 114511242 diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8fb43999147ad8287aac48c5cd53eced337e9436 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h4-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 4 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_6/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 1.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SEAS + test_gfed_regions: + - SEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..b8d680edd206b65794ea6afcfa495c9421b070f1 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:add5af27fbb429344b8e9ae8bb7c71ec6d1917caca1493e3ff064aa683e6e846 +size 114511242 diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7bb400914a9f15348ad1eac6bc47dc1a50a5d41b --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h8-config.yaml @@ -0,0 +1,215 @@ +# lightning.pytorch==2.2.2 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + logger: + - class_path: lightning.pytorch.loggers.CSVLogger + init_args: + save_dir: ./ + name: lightning_logs + version: null + prefix: '' + flush_logs_every_n_steps: 100 + callbacks: + - class_path: lightning.pytorch.callbacks.ModelSummary + init_args: + max_depth: 3 + - class_path: lightning.pytorch.callbacks.LearningRateMonitor + init_args: + logging_interval: epoch + log_momentum: false + log_weight_decay: false + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: null + monitor: null + verbose: false + save_last: true + save_top_k: 1 + save_weights_only: false + mode: min + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: null + filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}' + monitor: val_auprc + verbose: false + save_last: null + save_top_k: 1 + save_weights_only: false + mode: max + auto_insert_metric_name: true + every_n_train_steps: null + train_time_interval: null + every_n_epochs: null + save_on_train_epoch_end: null + enable_version_counter: true + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + max_time: null + limit_train_batches: null + limit_val_batches: null + limit_test_batches: null + limit_predict_batches: null + overfit_batches: 0.0 + val_check_interval: null + check_val_every_n_epoch: 1 + num_sanity_val_steps: 1 + log_every_n_steps: null + enable_checkpointing: null + enable_progress_bar: null + enable_model_summary: null + accumulate_grad_batches: 1 + gradient_clip_val: 0.5 + gradient_clip_algorithm: norm + deterministic: null + benchmark: null + inference_mode: true + use_distributed_sampler: true + profiler: null + detect_anomaly: false + barebones: false + plugins: null + sync_batchnorm: false + reload_dataloaders_every_n_epochs: 0 + default_root_dir: null +data: + cube_path: ../cube_v3.zarr + input_vars: + - mslp + - tp + - vpd + - sst + - t2m_mean + - ssrd + - swvl1 + - lst_day + - ndvi + - pop_dens + static_vars: + - lsm + generate_only_positive_samples: true + oci_enabled: false + oci_input_vars: + - oci_censo + - oci_ea + - oci_epo + - oci_gmsst + - oci_nao + - oci_nina34_anom + - oci_pdo + - oci_pna + - oci_soi + - oci_wp + oci_lag: 14 + log_preprocess_input_vars: + - tp + - pop_dens + target_var: gwis_ba + target_shift: 8 + target_var_per_area: false + target_var_log_process: false + timeseries_weeks: 24 + lat_dim: null + lon_dim: null + lat_dim_overlap: null + lon_dim_overlap: null + time_dim_overlap: null + task: classification + batch_size: 1 + num_workers: 4 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +ckpt_path: lightning_logs/version_16/checkpoints/last.ckpt +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SEAS_6u.json.gz + sp_res: 0.25 + max_lat: 89.875 + min_lat: -89.875 + max_lon: 179.875 + min_lon: -179.875 + lat_lon_static_data: true + embed_cube: true + embed_cube_width: 4 + embed_cube_height: 4 + embed_cube_time: 24 + embed_cube_dim: 64 + embed_cube_layer_norm: true + embed_cube_vit_enable: false + embed_cube_vit_patch_size: 36 + embed_cube_vit_dim: 64 + embed_cube_vit_depth: 1 + embed_cube_vit_heads: 4 + embed_cube_vit_mlp_dim: 64 + embed_cube_ltae_enable: false + embed_cube_ltae_num_heads: 4 + embed_cube_ltae_d_k: 16 + embed_cube_sp_res: 1.0 + embed_cube_max_lat: 89.5 + embed_cube_min_lat: -89.5 + embed_cube_max_lon: 179.5 + embed_cube_min_lon: -179.5 + timeseries_len: 24 + input_dim_grid_nodes: 11 + output_dim_grid_nodes: 16 + input_dim_mesh_nodes: 3 + input_dim_edges: 4 + processor_layers: 12 + hidden_layers: 1 + hidden_dim: 64 + aggregation: sum + norm_type: LayerNorm + do_concat_trick: false + regression_loss: mse + cube_path: ../cube_v3.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 0.0 + CEAM: 0.0 + NHSA: 0.0 + SHSA: 0.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 1.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SEAS + test_gfed_regions: + - SEAS + lsm_filter_enable: true + lsm_var_name: lsm + lsm_threshold: 0.1 + lr: 0.001 + weight_decay: 1.0e-08 + max_epochs: 100 + optimizer_apex: false + optimizer_fused: true + display_model_example: false + display_model_example_precision: null diff --git a/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..346d7ce27ae034eddc7e960c2bd11c251b6a1c82 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SEAS-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a2f9cb22900fa6a459482459473a98ea91d40e1ee2b917d43fd5118035347de +size 114511306