Safetensors
patchtst
File size: 13,482 Bytes
f38d112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
{
    "model_config": {
        "mode": "predict",
        "context_length": 512,
        "prediction_length": 128,
        "distribution_output": null,
        "loss": "mse",
        "huber_delta": 1.0,
        "patch_length": 16,
        "patch_stride": 16,
        "num_hidden_layers": 8,
        "d_model": 512,
        "num_attention_heads": 8,
        "channel_attention": true,
        "ffn_dim": 512,
        "norm_type": "rmsnorm",
        "norm_eps": 1e-05,
        "attention_dropout": 0.0,
        "positional_dropout": 0.0,
        "path_dropout": 0.0,
        "ff_dropout": 0.0,
        "bias": true,
        "activation_function": "gelu",
        "pre_norm": true,
        "use_cls_token": false,
        "init_std": 0.02,
        "scaling": "std",
        "do_mask_input": null,
        "mask_type": "random",
        "random_mask_ratio": 0.5,
        "num_forecast_mask_patches": 3,
        "channel_consistent_masking": false,
        "unmasked_channel_indices": null,
        "mask_value": 0,
        "pooling_type": "mean",
        "head_dropout": 0.0,
        "num_parallel_samples": 100,
        "channel_rope": false,
        "max_wavelength": 500,
        "rope_percent": 0.75,
        "pretrained_encoder_path": null,
        "use_dynamics_embedding": true,
        "num_poly_feats": 120,
        "poly_degrees": 2,
        "rff_trainable": false,
        "rff_scale": 1.0,
        "num_rff": 256
    },
    "train_config": {
        "seed": 99,
        "max_steps": 100000,
        "save_steps": 50000,
        "log_steps": 1000,
        "per_device_train_batch_size": 1024,
        "gradient_accumulation_steps": 1,
        "max_grad_norm": 1.0,
        "dataloader_num_workers": 16,
        "dataloader_prefetch_factor": 2,
        "tf32": false,
        "torch_compile": true,
        "optim": "adamw_torch_fused",
        "learning_rate": 0.001,
        "lr_scheduler_type": "cosine",
        "warmup_ratio": 0.1,
        "weight_decay": 0.0,
        "output_dir": "/stor/work/AMDG_Gilpin_Summer2024/checkpoints/",
        "ddp_backend": "nccl",
        "ddp_find_unused_parameters": false,
        "remove_unused_columns": false
    },
    "all_config": {
        "run_name": "pft_chattn_emb_w_poly",
        "wandb": {
            "log": true,
            "project_name": "dystformer",
            "entity": "gilpinlab",
            "group_name": "fine-tuning",
            "resume": false,
            "tags": null
        },
        "patchtst": {
            "mode": "predict",
            "context_length": 512,
            "prediction_length": 128,
            "distribution_output": null,
            "loss": "mse",
            "huber_delta": 1.0,
            "patch_length": 16,
            "patch_stride": 16,
            "num_hidden_layers": 8,
            "d_model": 512,
            "num_attention_heads": 8,
            "channel_attention": true,
            "ffn_dim": 512,
            "norm_type": "rmsnorm",
            "norm_eps": 1e-05,
            "attention_dropout": 0.0,
            "positional_dropout": 0.0,
            "path_dropout": 0.0,
            "ff_dropout": 0.0,
            "bias": true,
            "activation_function": "gelu",
            "pre_norm": true,
            "use_cls_token": false,
            "init_std": 0.02,
            "scaling": "std",
            "do_mask_input": null,
            "mask_type": "random",
            "random_mask_ratio": 0.5,
            "num_forecast_mask_patches": 3,
            "channel_consistent_masking": false,
            "unmasked_channel_indices": null,
            "mask_value": 0,
            "pooling_type": "mean",
            "head_dropout": 0.0,
            "num_parallel_samples": 100,
            "channel_rope": false,
            "max_wavelength": 500,
            "rope_percent": 0.75,
            "pretrained_encoder_path": null,
            "use_dynamics_embedding": true,
            "num_poly_feats": 120,
            "poly_degrees": 2,
            "rff_trainable": false,
            "rff_scale": 1.0,
            "num_rff": 256
        },
        "chronos": {
            "model_id": "amazon/chronos-t5-mini",
            "model_type": "seq2seq",
            "random_init": false,
            "tie_embeddings": true,
            "context_length": 512,
            "prediction_length": 64,
            "num_samples": 20,
            "n_tokens": 4096,
            "n_special_tokens": 2,
            "pad_token_id": 0,
            "eos_token_id": 1,
            "use_eos_token": true,
            "tokenizer_class": "MeanScaleUniformBins",
            "tokenizer_kwargs": {
                "low_limit": -15.0,
                "high_limit": 15.0
            },
            "temperature": 1.0,
            "top_k": 50,
            "top_p": 1.0
        },
        "train": {
            "seed": 99,
            "max_steps": 100000,
            "save_steps": 50000,
            "log_steps": 1000,
            "per_device_train_batch_size": 1024,
            "gradient_accumulation_steps": 1,
            "max_grad_norm": 1.0,
            "dataloader_num_workers": 16,
            "dataloader_prefetch_factor": 2,
            "tf32": false,
            "torch_compile": true,
            "optim": "adamw_torch_fused",
            "learning_rate": 0.001,
            "lr_scheduler_type": "cosine",
            "warmup_ratio": 0.1,
            "weight_decay": 0.0,
            "output_dir": "/stor/work/AMDG_Gilpin_Summer2024/checkpoints/",
            "ddp_backend": "nccl",
            "ddp_find_unused_parameters": false,
            "remove_unused_columns": false
        },
        "scheduler": {
            "enabled": false,
            "schedule_value_name": "noise_scale",
            "schedule_name": "cosine",
            "epoch_stop": 0.5,
            "init_value": 1.0,
            "final_value": 0.0,
            "eps": 0.008,
            "num_steps": 4,
            "decay_rate": 8.0
        },
        "eval": {
            "mode": "predict",
            "data_path": "/stor/work/AMDG_Gilpin_Summer2024/data/test/",
            "checkpoint_path": "/stor/work/AMDG_Gilpin_Summer2024/checkpoints",
            "device": "cuda:7",
            "torch_dtype": "float32",
            "batch_size": 32,
            "num_systems": 10,
            "sliding_context": false,
            "metric_names": [
                "mse",
                "mae",
                "smape",
                "r2_score",
                "spearman"
            ],
            "forecast_save_dir": "/stor/work/AMDG_Gilpin_Summer2024/data/eval/forecasts",
            "labels_save_dir": "/stor/work/AMDG_Gilpin_Summer2024/data/eval/labels",
            "completions_save_dir": "/stor/work/AMDG_Gilpin_Summer2024/data/eval/completions",
            "patch_input_save_dir": "/stor/work/AMDG_Gilpin_Summer2024/data/eval/patch_input",
            "timestep_masks_save_dir": "/stor/work/AMDG_Gilpin_Summer2024/data/eval/timestep_masks",
            "metrics_save_dir": "/stor/work/AMDG_Gilpin_Summer2024/data/eval/metrics",
            "metrics_fname": "metrics.json",
            "overwrite": false,
            "seed": 42,
            "parallel_sample_reduction": "mean",
            "limit_prediction_length": true,
            "prediction_length": 64,
            "num_test_instances": 1,
            "window_style": "sampled",
            "window_stride": 1,
            "split_coords": false,
            "verbose": false,
            "use_channel_sampler": false,
            "channel_sampler": {
                "num_channels": 3,
                "num_samples": 2
            }
        },
        "run_metrics": {
            "wandb_run_id": null,
            "plot_dir": "figs",
            "save_dir": "/stor/work/AMDG_Gilpin_Summer2024/data/eval/run_metrics",
            "save_fname": "metrics.json"
        },
        "train_data_dirs": [
            "/stor/work/AMDG_Gilpin_Summer2024/data/final_skew40/train",
            "/stor/work/AMDG_Gilpin_Summer2024/data/final_skew40/train_z5_z10",
            "/stor/work/AMDG_Gilpin_Summer2024/data/final_base40/train",
            "/stor/work/AMDG_Gilpin_Summer2024/data/final_base40/train_z5_z10"
        ],
        "extra_train_data_paths": null,
        "probability": null,
        "shuffle_buffer_length": 100000,
        "min_past": 60,
        "max_missing_prop": 0.9,
        "fixed_dim": 3,
        "augmentations": {
            "augmentation_rate": 0.2,
            "probabilities": [
                0.3333333333333333,
                0.3333333333333333,
                0.3333333333333333,
                0.0,
                0.0
            ],
            "dim_range": [
                3,
                8
            ],
            "lag_range": [
                1,
                10
            ],
            "phase_surrogate_cutoff": 1.0,
            "mode_range": [
                5,
                15
            ],
            "max_wavenumber": 10.0,
            "max_amp": 10.0
        },
        "sampling": {
            "data_dir": "/stor/work/AMDG_Gilpin_Summer2024/data/",
            "sys_class": "continuous_no_delay",
            "test_split": 0.3,
            "split_prefix": null,
            "rseed": 999,
            "ic_rseed": 888,
            "num_points": 4096,
            "num_periods": 40,
            "num_periods_min": 20,
            "num_periods_max": 60,
            "num_ics": 1,
            "num_param_perturbations": 4,
            "param_scale": 0.5,
            "split_coords": false,
            "standardize": false,
            "verbose": false,
            "multiprocessing": true,
            "debug_system": null,
            "silence_integration_errors": false,
            "save_params": true,
            "save_traj_stats": false,
            "ignore_probability": 0.0,
            "sign_match_probability": 0.5,
            "atol": 1e-10,
            "rtol": 1e-09,
            "reference_traj": {
                "length": 4096,
                "transient": 0.5,
                "n_periods": 40,
                "atol": 1e-07,
                "rtol": 1e-06
            }
        },
        "validator": {
            "enable": true,
            "verbose": false,
            "transient_time_frac": 0.05,
            "plot_save_dir": null,
            "save_failed_trajs": false,
            "attractor_tests": [
                "check_not_linear",
                "check_boundedness",
                "check_not_fixed_point",
                "check_zero_one_test",
                "check_power_spectrum",
                "check_stationarity"
            ]
        },
        "events": {
            "max_duration": 300,
            "instability_threshold": 10000.0,
            "min_step": 1e-10,
            "verbose": true
        },
        "skew": {
            "num_pairs": 5000,
            "pairs_rseed": 123,
            "sys_idx_low": 0,
            "sys_idx_high": null,
            "normalization_strategy": "flow_rms",
            "randomize_driver_indices": true,
            "transform_scales": true,
            "train_nonskew_path": null,
            "test_nonskew_path": null,
            "coupling_map_type": "additive",
            "coupling_map": {
                "transform_scales": false,
                "randomize_driver_indices": true,
                "normalization_strategy": "flow_rms",
                "random_seed": 0
            }
        },
        "analysis": {
            "data_dir": "/stor/work/AMDG_Gilpin_Summer2024/data",
            "split": "copy/final_skew40/train",
            "num_samples": 1,
            "one_dim_target": false,
            "save_dir": "outputs",
            "plots_dir": "figures",
            "compute_quantile_limits": false,
            "compute_max_lyapunov_exponents": false,
            "filter_ensemble": true,
            "filter_json_fname": "failed_samples",
            "verbose": true,
            "attractor_tests": [
                "check_zero_one_test"
            ],
            "check_not_transient": {
                "max_transient_prop": 0.2,
                "atol": 0.001
            },
            "check_stationarity": {
                "p_value": 0.05
            },
            "check_boundedness": {
                "threshold": 10000.0,
                "max_zscore": 5,
                "eps": 1e-10
            },
            "check_zero_one_test": {
                "threshold": 0.2,
                "strategy": "score"
            }
        }
    },
    "job_info": {
        "cuda_available": true,
        "device_count": 4,
        "device_names": {
            "0": "AMD Instinct MI100",
            "1": "AMD Instinct MI100",
            "2": "AMD Instinct MI100",
            "3": "AMD Instinct MI100"
        },
        "mem_info": {
            "0": [
                4438360064,
                34342961152
            ],
            "1": [
                4429185024,
                34342961152
            ],
            "2": [
                4456448000,
                34342961152
            ],
            "3": [
                4462739456,
                34342961152
            ]
        },
        "torchelastic_launched": true,
        "world_size": 4,
        "python_version": "3.11.9 (main, Apr 19 2024, 16:48:06) [GCC 11.2.0]",
        "torch_version": "2.2.2+rocm5.7",
        "numpy_version": "1.26.4",
        "gluonts_version": "0.15.1",
        "transformers_version": "4.40.1",
        "accelerate_version": "0.34.2"
    }
}