diff --git a/lam_model_ckpts/firecastnet-cls-BONA-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9ac1c8c010ed990cdb5584329a1aece6cc7cfa52 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BONA-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: final_icospheres/icosphere_s3_BONA_6u.json + 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.zarr" + gfed_region_enable_loss_weighting: true + gfed_region_var_name: "gfed_region" + gfed_region_weights: + OCEAN: 0.0 + BONA: 1.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: 0.0 + val_gfed_regions: + - BONA + test_gfed_regions: + - BONA + 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.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: 2 + 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-BONA-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..ab138992127f52bc59b1786636ac5a93c5241b4e --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30562d3503e2097f8381a67ebc7f3f3233f9cf5f124b069556727fe9a547529e +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-BONA-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7655b8058d269e1daf36737f54dd288f67cd2625 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h2-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: final_icospheres/icosphere_s3_BONA_6u.json + 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.zarr" + gfed_region_enable_loss_weighting: true + gfed_region_var_name: "gfed_region" + gfed_region_weights: + OCEAN: 0.0 + BONA: 1.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: 0.0 + val_gfed_regions: + - BONA + test_gfed_regions: + - BONA + 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.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: 2 + 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-BONA-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..0cf5b0d86cabb9a38512a72b6395c8f1c919c7d0 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7adf83feac503c14a6d353a033950be88ae643998ae49a05345de6113555667c +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-BONA-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fa5ab4e57fed5b851aa8884c97ce7e6598a3964f --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h24-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-BONA-ts24-h24 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_BONA_6u.json + 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.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 1.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: 0.0 + val_gfed_regions: + - BONA + test_gfed_regions: + - BONA + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-BONA-ts24-h24/version_0/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-BONA-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..402d7448e872495ced17bed9eefb8000ea7f43fe --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29c41f1acd45b75aa0d9d68487ff2cf256202479d441610e332c6bcd5ddba26e +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-BONA-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3fc8de7e774e041eab9a4ae498ca5ec81a85664b --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h8-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-BONA-ts24-h8 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_BONA_6u.json + 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.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 1.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: 0.0 + val_gfed_regions: + - BONA + test_gfed_regions: + - BONA + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-BONA-ts24-h8/version_8/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-BONA-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..9f7d5b9a76fc62a4896cd3b5eb9de7c64079eed7 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-BONA-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:482fc88b0c66d69e80e30e6458003681735069b9a3eb4995485236f7e835ffa4 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8b9eb420dbb360835176a3b460d8d8271625a8eb --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h1-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-CEAM-ts24-h1 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_CEAM_6u.json + 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.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: 1.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: 0.0 + val_gfed_regions: + - CEAM + test_gfed_regions: + - CEAM + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-CEAM-ts24-h1/version_8/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..acc980f2afe83b3197ad677391b50cc824c4aab0 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd3cce0807860f2074573ea2a70a1604f3f620cd34dcd73a37eb3fe1ce13dd83 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..90339ed63fd9eb32bdccf520fdc184d7596372a7 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h16-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-CEAM-ts24-h16 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_CEAM_6u.json + 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.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: 1.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: 0.0 + val_gfed_regions: + - CEAM + test_gfed_regions: + - CEAM + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-CEAM-ts24-h16/version_9/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..8b921573058aa9187495c11c94bb0128c8b4d4e2 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21a0002da9a96d4a37c2d93266e6a5c6fd90d89f43cf0ece2c89a83fed160678 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2c539ee93d84b5cc2da616d16666ef2d5f38b11f --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h2-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-CEAM-ts24-h2 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_CEAM_6u.json + 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.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: 1.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: 0.0 + val_gfed_regions: + - CEAM + test_gfed_regions: + - CEAM + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-CEAM-ts24-h2/version_7/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..38d98b3e302d521849495b172395b29865fd143a --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e47534513256ee13c26b80d3a4877639a130352f296e5a291c2f1078ce08456b +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..70e77f76cfc37ade9cc32caf9bcdcb6c97ce9ac9 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h24-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-CEAM-ts24-h24 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_CEAM_6u.json + 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.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: 1.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: 0.0 + val_gfed_regions: + - CEAM + test_gfed_regions: + - CEAM + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-CEAM-ts24-h24/version_9/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..7096e4e04ba5505a086243bdad9dded82643eba7 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d377e3b2d7d7587d7f2ba591a0503433f92cda05513b573a2545a90ac65a6fc +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..920fdd6dc84e0f25c534249907f5d1c76eca9504 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h4-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-CEAM-ts24-h4 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_CEAM_6u.json + 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.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: 1.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: 0.0 + val_gfed_regions: + - CEAM + test_gfed_regions: + - CEAM + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-CEAM-ts24-h4/version_4/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..850c86dd724983bb4fc5cbc83cd89228324183c2 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65d715e8e4cd8d3bde9611e48978f2cf65ce492bc79d70fde513156fddfd065c +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ecb69ba740933b8940f3e65801b3c748af59c313 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h8-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-CEAM-ts24-h8 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_CEAM_6u.json + 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.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: 1.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: 0.0 + val_gfed_regions: + - CEAM + test_gfed_regions: + - CEAM + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-CEAM-ts24-h8/version_6/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..685202af6283b970f47b34bb0d87f45e19fec1da --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-CEAM-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:538e2b3b95a6ab0bd19dc14da9dfbba1db152a745248c59211be86acbfa52f0d +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-EURO-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b1b00bffc570d882313c636a39b09fcec3817cea --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h1-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/EURO + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EURO_6u_layers.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 + EURO: 1.0 + SHSA: 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: + - EURO + test_gfed_regions: + - EURO + 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: 2 + 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-EURO-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..cf903bdc5c3b68700641ff7c9498ea21c4258534 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51ed8d5f3aeca9978eca41bec87af8271f1a2afd4ed5a0782fd8854fdf843788 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-EURO-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..83ab2dcd7475912fe6a084af6d84eed81cadc81e --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h16-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/EURO + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EURO_6u_layers.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 + EURO: 1.0 + SHSA: 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: + - EURO + test_gfed_regions: + - EURO + 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: 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: 2 + 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-EURO-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..100d3bae37c24984b8bc85077a22a69f93bdfc7b --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1389e242343ac47aeee3e5b9a94f30f1c588377b5ed257796010a9d6b2a6e684 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-EURO-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5a33ec743f6ae040d28dc14cef636638486de080 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h2-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/EURO + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EURO_6u_layers.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 + EURO: 1.0 + SHSA: 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: + - EURO + test_gfed_regions: + - EURO + 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: 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: 2 + 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-EURO-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..9b00a1dbd545c80e424058bbd1c5f310d1ff2ee1 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14e147347d838021a6e72f09953f16f24b6f35f2dfccb0dfcdb9422c6055f800 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-EURO-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f226eef7f5f0e4b55f67723c806690af36f6209f --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h24-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/EURO + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EURO_6u_layers.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 + EURO: 1.0 + SHSA: 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: + - EURO + test_gfed_regions: + - EURO + 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: 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: 2 + 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-EURO-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..938f12e4057d4ac2c515f98d6cdc8276b3dd502b --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de397b94948a36a4fd2bc2cef321764b69b5bac1b1e5393ec7056ae10fd92905 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-EURO-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7c9f3366a48a579ee87d733ce24672c80498a669 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h4-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/EURO + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EURO_6u_layers.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 + EURO: 1.0 + SHSA: 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: + - EURO + test_gfed_regions: + - EURO + 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: 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: 2 + 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-EURO-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..fe00f7a0a8100b80154d5f50c17b7b1dd12c47bf --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:814f693b9eca141377eeb6c3d63cfd6dc811dfc044e6ed7cbeabf9ab38f565b1 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-EURO-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..253909fd717e376bc380ec7212f122ad7d0fe3ab --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h8-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/EURO + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/EURO/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_EURO_6u_layers.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 + EURO: 1.0 + SHSA: 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: + - EURO + test_gfed_regions: + - EURO + 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: 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: 2 + 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-EURO-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..c733e255a2d0ec4617bc1b8679008f81ab6e9290 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-EURO-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dfac1c224d2230548505583e36c7702a1888e5ee1b42f254f66526abceada5e0 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e07787d6af278e833963c7019cecf21f69c141bd --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h1-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/MIDE + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_MIDE_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 + MIDE: 1.0 + EURO: 0.0 + SHSA: 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: + - MIDE + test_gfed_regions: + - MIDE + 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: 2 + 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-MIDE-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..728801fdf69f91cb6a0f3dfd4b89219bef7659af --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8986b3c8ea0ffcb7e192405c9d1adb3664ef01dba6778f34bb961dc23b5b4551 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2c28c3ccc38fd161d87d7223bd023ace69d2468c --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h16-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/MIDE + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_MIDE_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 + MIDE: 1.0 + EURO: 0.0 + SHSA: 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: + - MIDE + test_gfed_regions: + - MIDE + 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: 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: 2 + 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-MIDE-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..24086884f087e43e7bd95974047f394fce60d775 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1016e1877e6528440a0189c41b6557fb17c1642729ec428998197fcc40334485 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..21a9647a8759e979555e59c447585ac4b745e972 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h2-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/MIDE + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_MIDE_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 + MIDE: 1.0 + EURO: 0.0 + SHSA: 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: + - MIDE + test_gfed_regions: + - MIDE + 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: 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: 2 + 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-MIDE-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..182ee43aac126b9fc5d70e23f8ac223eaaccc4e5 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1109eb4440cc746d3f724d214a201317efb35b91e575c76f948dcf3b25f046f1 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..67276b607416277b34b501f6826ec06641725f8a --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h24-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/MIDE + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_MIDE_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 + MIDE: 1.0 + EURO: 0.0 + SHSA: 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: + - MIDE + test_gfed_regions: + - MIDE + 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: 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: 2 + 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-MIDE-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..3a034883aea1e0e5977904623223352a02666d90 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ced9fbfb4a046832fc8abb2963f7c036e201c437634ec6eab77323ab277d4895 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..131f50dcd8fc939e6ab3d8a986b346ef6136f18b --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h4-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/MIDE + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_MIDE_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 + MIDE: 1.0 + EURO: 0.0 + SHSA: 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: + - MIDE + test_gfed_regions: + - MIDE + 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: 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: 2 + 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-MIDE-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..b05fb083ae6d736a9b3b3f448961d994bdf791c6 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f7b788ae724e8866a4c0fd924ba1e1ba6526a8dfb9a543f82a1be224615efca +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f0eb3a4396376cb30085c38680f1681010111a66 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h8-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/MIDE + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/MIDE/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_MIDE_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 + MIDE: 1.0 + EURO: 0.0 + SHSA: 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: + - MIDE + test_gfed_regions: + - MIDE + 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: 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: 2 + 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-MIDE-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..db28395f4099c525e09fb2ed1c4860a4aac7c271 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-MIDE-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f2f2231fe31f34f85da67f8a1b03efc7da5948e200668c4374b22b6ebe5e416 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d25eedf322539e272eaa22fd2d91428e65ee8444 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h1-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/NHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHAF_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 + NHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + SHSA: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHAF + test_gfed_regions: + - NHAF + 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: 2 + 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-NHAF-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..a08915cb1febc0e9dd0ac64b7bda6ef675954304 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94af5d93f4f3d14a8d7828e13d19c872865e88011d78860acc6cad6c95e9288f +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..32c35e29b1beee899eb4396d7e870f8306a32066 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h16-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/NHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHAF_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 + NHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + SHSA: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHAF + test_gfed_regions: + - NHAF + 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: 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: 2 + 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-NHAF-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..a67ae728c4ffbb5d2198da29059a4768cf21ac5b --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:febaa70a8857d352f09f5be70da093ffd7c92ff7e2e51543a8b0449a2e9d002f +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4573e9311cd6dbd186a9456227b69a2b67169818 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h2-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/NHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHAF_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 + NHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + SHSA: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHAF + test_gfed_regions: + - NHAF + 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: 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: 2 + 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-NHAF-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..ab020678d6c2e169991896654bd1aafc10054361 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7eb3f6c6f61caed7cdd3cff3ff3f6d4bd8899e5d1a8ba4f35d5c244f9e6389d7 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..005e05e9db2f7700472370e1f91d5d14b504130f --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h24-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/NHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHAF_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 + NHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + SHSA: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHAF + test_gfed_regions: + - NHAF + 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: 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: 2 + 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-NHAF-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..fb659dc9df210496704513bf851cc464da6a89ff --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46f79e647bdedb76950d2a915dd5d7d769640b70e42158195e0d43ab79828c26 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..937da9bf69a640fc7153161d14b466ba3e9cf6b7 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h4-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/NHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHAF_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 + NHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + SHSA: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHAF + test_gfed_regions: + - NHAF + 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: 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: 2 + 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-NHAF-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..c1d9408f311e5a8265327fb2138260965e840bf9 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38f85e1fb7bbaae7c30b1d61570d3ad18d27746a00f689c87839800432c71198 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b6e9d990706de754fad52e51fe8527b3ada20763 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h8-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/NHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/NHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_NHAF_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 + NHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + SHSA: 0.0 + SHAF: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - NHAF + test_gfed_regions: + - NHAF + 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: 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: 2 + 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-NHAF-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..0c5077ae3e4feb5869f14af5bac44cc1a3622d68 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-NHAF-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0197388a2bedd47b262ac82ad06bab1839f48dd7571ecdfc1baf3d34632438be +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4b37a489a83272de16a283da0eb3e817b5515bff --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h1-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHAF_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 + SHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHSA: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SHAF + test_gfed_regions: + - SHAF + 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: 2 + 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-SHAF-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..0ad32b4aff5b58555cb1942c85d51e3c42725f6a --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc3458093bfcacf00010009a029d578b5b5b1e43c0dbce3c16c383b811161a1a +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2d804a568506462d729c5c22be5c40336992fdfd --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h16-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHAF_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 + SHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHSA: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SHAF + test_gfed_regions: + - SHAF + 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: 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: 2 + 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-SHAF-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..537b0f8fc8a6795a25f04a36c9226250c38c2e51 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54b5d1711580889b9f3ccd510c80c601d31c0df5cab604870e4cc6474873be87 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6b99ebc88279f2edc714bd34da1a7536a29906a0 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h2-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHAF_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 + SHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHSA: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SHAF + test_gfed_regions: + - SHAF + 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: 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: 2 + 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-SHAF-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..ccccd68f2d4f8d3162db41cedb948f4017dbbace --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa57b4a2147ae4ff22da491ca28e3e6e3c060e8cba74d276bf07acd207bf167b +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7eaa1172ed8f2f8e38476160799a7885177669cc --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h24-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHAF_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 + SHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHSA: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SHAF + test_gfed_regions: + - SHAF + 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: 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: 2 + 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-SHAF-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..e461089a8fc43185420f803e08f4c5adb48fad17 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c699091cfb0d45efe9e8ee588dbc76be501b318adf7a7295280ef49f95b0ba21 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6ad46a90e08d5b2681a54ec213a580b19468be97 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h4-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHAF_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 + SHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHSA: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SHAF + test_gfed_regions: + - SHAF + 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: 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: 2 + 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-SHAF-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..f9f3550ae5a49742e0d3b3e0ce7a74fbbccc21af --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15544c66ebd87ea2edc04bfe53916504f19e7ae008786be02c0ab24779ddb38a +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..22296da13a71e4a416fd7ba8c1062c3c92c33508 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h8-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHAF + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHAF/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHAF_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 + SHAF: 1.0 + EURO: 0.0 + MIDE: 0.0 + NHAF: 0.0 + SHSA: 0.0 + BOAS: 0.0 + CEAS: 0.0 + SEAS: 0.0 + EQAS: 0.0 + AUST: 0.0 + val_gfed_regions: + - SHAF + test_gfed_regions: + - SHAF + 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: 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: 2 + 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-SHAF-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..34762f596c2aea77e4b93d31816a05e69ebcb9f8 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHAF-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ffa79fcc4d14ee8f7f7de1a655cb2d36680a8da104713c93429dee50e28e065 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f121dbeb3adaf9aedba8d5e8f2d3189abf0a2bf6 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h1-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHSA + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHSA_7u_SHAF_2n.json + 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: 1.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: + - SHSA + test_gfed_regions: + - SHSA + 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: 2 + 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-SHSA-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..12e4e29d5b05fcd5522bb432f897be6175a214bf --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a0947c2391d4c67a85ea09d1837d2415d14e84e3c710682f92044821a97417a +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..66602cbfa70d0ccab32c639b419cf05edb8bf48f --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h16-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHSA + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHSA_7u_SHAF_2n.json + 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: 1.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: + - SHSA + test_gfed_regions: + - SHSA + 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: 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: 2 + 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-SHSA-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..53233ff3bbab3b4df05add115b866e911fccb057 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2039c6a9e5935dd5146fcc43ebb963f28c6c40f190db3a1bfbfa5ae141e2988 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7d823b817d6c041ddff2dac73aa414bfc3f741db --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h2-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHSA + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHSA_7u_SHAF_2n.json + 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: 1.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: + - SHSA + test_gfed_regions: + - SHSA + 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: 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: 2 + 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-SHSA-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..0704a597b9beeb49f0e68f9cb46db7ddee60e3e2 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:199da60b226ea97bebc3da66c13084a1a5e9fc036cb5cca772378d960bff549a +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cbcda65ff5d4103773ee209290a47967715701f9 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h24-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHSA + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHSA_7u_SHAF_2n.json + 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: 1.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: + - SHSA + test_gfed_regions: + - SHSA + 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: 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: 2 + 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-SHSA-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..2a6166b1a6e6e5b79699e2f5da6bfdfde950780f --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3acc06c29aa614ce457721841ed44d0ed254f66df744b27940f0599a6697925 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..152cb33c90e87d5fcc454e0ff5f01ee4bfd44dc9 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h4-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHSA + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHSA_7u_SHAF_2n.json + 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: 1.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: + - SHSA + test_gfed_regions: + - SHSA + 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: 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: 2 + 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-SHSA-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..8c4c1755f9fa2112cec0bb7a905d51638d26e9ff --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27978517b63e20e31a628f70baad8c20216c71d0db7756a45bcb4f42d2116ca2 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a66aa2a3c97e8b9b6d80110b98613122e1293531 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h8-config.yaml @@ -0,0 +1,191 @@ +# lightning.pytorch==2.2.1 +seed_everything: 17 +trainer: + accelerator: auto + strategy: auto + devices: auto + num_nodes: 1 + precision: null + default_root_dir: ./lightning_logs/local_firecastnet/SHSA + logger: + - class_path: lightning.pytorch.loggers.WandbLogger + init_args: + project: local_firecastnet + log_model: all + save_dir: ./lightning_logs + 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: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: last + save_last: true + save_top_k: 0 # we’re only using this one to keep track of last + - class_path: lightning.pytorch.callbacks.ModelCheckpoint + init_args: + dirpath: ./lightning_logs/local_firecastnet/SHSA/checkpoints + filename: '{epoch:03d}-{val_auprc:.4f}' + monitor: val_auprc + mode: max + save_top_k: 1 + - class_path: seasfire.callbacks.DGLGraphToDevice + fast_dev_run: false + max_epochs: 50 + min_epochs: null + max_steps: -1 + min_steps: null + limit_train_batches: null + max_time: 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 +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: icospheres-lam/icospheres/icosphere_s3_SHSA_7u_SHAF_2n.json + 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: 1.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: + - SHSA + test_gfed_regions: + - SHSA + 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: 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: 2 + 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-SHSA-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..26646dbc70adfa89877af992df10aad5f251dbf9 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-SHSA-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d04b122baac6b1e4c2957bd8ebaa70fd6d6878e516df50b222d9dcfb7e201a6 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h1-config.yaml b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h1-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1e9813d1b831a87e0c42dca2c7b9196fbeb66d79 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h1-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-TENA-ts24-h1 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_TENA_6u.json + 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.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 1.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: 0.0 + val_gfed_regions: + - TENA + test_gfed_regions: + - TENA + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-TENA-ts24-h1/version_11/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h1.ckpt b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h1.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..9478a2519f32b5c215cd2f3d58b98b10ae2de0d6 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h1.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15befa45c5a84ff74debffaee808d3dd0f948f353b3c7d85ae6ef6c49084c202 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h16-config.yaml b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h16-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..195c2190051bcdddadb72b66804e142c8b760fa6 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h16-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-TENA-ts24-h16 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_TENA_6u.json + 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.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 1.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: 0.0 + val_gfed_regions: + - TENA + test_gfed_regions: + - TENA + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-TENA-ts24-h16/version_5/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h16.ckpt b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h16.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..eeb93b5dbb6ca5a968c69d2d7d183621ca1440c2 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h16.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e0072e2892f5868748d7bb1e96cb57b06fcb246be40fc722c2318a8e7460288 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h2-config.yaml b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h2-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0c39f3cf79bc78b9dba2611adfb12397f8ed39b7 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h2-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-TENA-ts24-h2 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_TENA_6u.json + 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.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 1.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: 0.0 + val_gfed_regions: + - TENA + test_gfed_regions: + - TENA + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-TENA-ts24-h2/version_7/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h2.ckpt b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h2.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..97e81f4017eee0120b971293bca9f7cc007179b0 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h2.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed5907a0eb5da30a6d48879cbe0b4ddf72d5dbaa518def67669163a757f7ac1a +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h24-config.yaml b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h24-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..28c7a06bd5632c73d4072109d6948f3e9d14a98a --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h24-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-TENA-ts24-h24 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_TENA_6u.json + 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.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 1.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: 0.0 + val_gfed_regions: + - TENA + test_gfed_regions: + - TENA + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-TENA-ts24-h24/version_14/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h24.ckpt b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h24.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..156cddafdf20352a8205977743e3852b499b0eba --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h24.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1079abe524d47377cef6f9e59693e04886dbcd5c1de075439bff1c996a135cdc +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h4-config.yaml b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h4-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2d61c042943ed365368a65e0a9bbfa693f495755 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h4-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-TENA-ts24-h4 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_TENA_6u.json + 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.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 1.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: 0.0 + val_gfed_regions: + - TENA + test_gfed_regions: + - TENA + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-TENA-ts24-h4/version_6/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h4.ckpt b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h4.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..5eed39ca6809a653cce7b005f98a0f35438ce801 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h4.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1961c40fe9d9589151c00ff4f53633399c8e8f4e869712d406faf99899dea22 +size 114511767 diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h8-config.yaml b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h8-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0cc1cb5359644a480cbe8e42489e69a2ccfc53a4 --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h8-config.yaml @@ -0,0 +1,218 @@ +# lightning.pytorch==2.5.1.post0 +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: firecastnet-cls-TENA-ts24-h8 + 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: 40 + 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_registry: null +model: + class_path: seasfire.firecastnet_lit.FireCastNetLit + init_args: + icospheres_graph_path: final_icospheres/icosphere_s3_TENA_6u.json + 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.zarr + gfed_region_enable_loss_weighting: true + gfed_region_var_name: gfed_region + gfed_region_weights: + OCEAN: 0.0 + BONA: 0.0 + TENA: 1.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: 0.0 + val_gfed_regions: + - TENA + test_gfed_regions: + - TENA + 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 +data: + cube_path: cube.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: 2 + pin_memory: false + load_cube_in_memory: false + train_random_sample: null + mean_std_dict_prefix: cube +optimizer: null +lr_scheduler: null +ckpt_path: firecastnet-cls-TENA-ts24-h8/version_8/checkpoints/last.ckpt diff --git a/lam_model_ckpts/firecastnet-cls-TENA-ts24-h8.ckpt b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h8.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..3ede362d8bbbaf59aa6498153062586cd6ba733d --- /dev/null +++ b/lam_model_ckpts/firecastnet-cls-TENA-ts24-h8.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83e4ea20070a5289c4235becfe762fa4b0ee445f6eb94c604cc679ddc38f442c +size 114511767