File tree Expand file tree Collapse file tree 1 file changed +97
-0
lines changed Expand file tree Collapse file tree 1 file changed +97
-0
lines changed Original file line number Diff line number Diff line change
1
+ hydra :
2
+ run :
3
+ # dynamic output directory according to running time and override name
4
+ dir : outputs_allen_cahn_default/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
5
+ job :
6
+ name : ${mode} # name of logfile
7
+ chdir : false # keep current working direcotry unchaned
8
+ config :
9
+ override_dirname :
10
+ exclude_keys :
11
+ - TRAIN.checkpoint_path
12
+ - TRAIN.pretrained_model_path
13
+ - EVAL.pretrained_model_path
14
+ - INFER.pretrained_model_path
15
+ - mode
16
+ - output_dir
17
+ - log_freq
18
+ callbacks :
19
+ init_callback :
20
+ _target_ : ppsci.utils.callbacks.InitCallback
21
+ sweep :
22
+ # output directory for multirun
23
+ dir : ${hydra.run.dir}
24
+ subdir : ./
25
+
26
+ # general settings
27
+ mode : train # running mode: train/eval
28
+ seed : 42
29
+ output_dir : ${hydra:run.dir}
30
+ log_freq : 100
31
+ use_tbd : true
32
+
33
+ DATA_PATH : ./dataset/allen_cahn.mat
34
+
35
+ # model settings
36
+ MODEL :
37
+ input_keys : [t, x]
38
+ output_keys : [u]
39
+ num_layers : 4
40
+ hidden_size : 256
41
+ activation : tanh
42
+ periods :
43
+ x : [2.0, False]
44
+ fourier :
45
+ dim : 256
46
+ scale : 1.0
47
+ random_weight :
48
+ mean : 0.5
49
+ std : 0.1
50
+
51
+ # training settings
52
+ TRAIN :
53
+ epochs : 200
54
+ iters_per_epoch : 1000
55
+ save_freq : 10
56
+ eval_during_train : true
57
+ eval_freq : 1
58
+ lr_scheduler :
59
+ epochs : ${TRAIN.epochs}
60
+ iters_per_epoch : ${TRAIN.iters_per_epoch}
61
+ learning_rate : 1.0e-3
62
+ gamma : 0.9
63
+ decay_steps : 2000
64
+ by_epoch : false
65
+ batch_size : 4096
66
+ pretrained_model_path : null
67
+ checkpoint_path : null
68
+ causal :
69
+ n_chunks : 32
70
+ tol : 1.0
71
+ grad_norm :
72
+ update_freq : 1000
73
+ momentum : 0.9
74
+
75
+ # evaluation settings
76
+ EVAL :
77
+ pretrained_model_path : null
78
+ eval_with_no_grad : true
79
+ batch_size : 4096
80
+
81
+ # inference settings
82
+ INFER :
83
+ pretrained_model_path : https://paddle-org.bj.bcebos.com/paddlescience/models/AllenCahn/allen_cahn_plain_pretrained.pdparams
84
+ export_path : ./inference/allen_cahn
85
+ pdmodel_path : ${INFER.export_path}.pdmodel
86
+ pdpiparams_path : ${INFER.export_path}.pdiparams
87
+ onnx_path : ${INFER.export_path}.onnx
88
+ device : gpu
89
+ engine : native
90
+ precision : fp32
91
+ ir_optim : true
92
+ min_subgraph_size : 5
93
+ gpu_mem : 2000
94
+ gpu_id : 0
95
+ max_batch_size : 1024
96
+ num_cpu_threads : 10
97
+ batch_size : 1024
You can’t perform that action at this time.
0 commit comments