Skip to content

Commit d42a231

Browse files
committed
add extra confs
1 parent a9a9cfa commit d42a231

File tree

6 files changed

+119
-6
lines changed

6 files changed

+119
-6
lines changed

benchmark.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ ispath(compdir) || mkpath(compdir)
1818

1919
# List configurations files
2020
using Glob
21-
exclude_patterns = ["att", "cno", "cnn_ins", "_1"]
21+
#exclude_patterns = ["att", "cno", "cnn_ins", "_1", "nopr"]
22+
exclude_patterns = ["att", "cno", "int", "back", "rk4"]
2223
@warn "Excluding configurations with patterns: $(exclude_patterns)"
2324
all_confs = glob("*.yaml", confdir)
2425
list_confs = filter(conf -> all(!occursin(pat, conf) for pat in exclude_patterns), all_confs)

configs/snellius/cnn_gauss.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
docreatedata: true
2+
docomp: true
3+
ntrajectory: 8
4+
T: "Float32"
5+
dataproj: false
6+
params:
7+
D: 2
8+
lims: [0.0, 1.0]
9+
Re: 6000.0
10+
tburn: 0.5
11+
tsim: 5.0
12+
savefreq: 50
13+
ndns: 4096
14+
nles: [64]
15+
filters: ["FaceAverage()"]
16+
icfunc: "(setup, psolver, rng) -> random_field(setup, T(0); kp=20, psolver, rng)"
17+
method: "RKMethods.Wray3(; T)"
18+
bodyforce: "(dim, x, y, t) -> (dim == 1) * 5 * sinpi(8 * y)"
19+
issteadybodyforce: true
20+
processors: "(; log = timelogger(; nupdate=100))"
21+
Δt: 0.00005
22+
seeds:
23+
dns: 123456
24+
θ_start: 234
25+
prior: 345
26+
post: 456
27+
closure:
28+
name: "cnn_gauss"
29+
type: cnn
30+
radii: [2, 2, 2, 2, 2]
31+
channels: [24, 24, 24, 24, 2]
32+
activations: ["tanh", "tanh", "tanh", "tanh", "identity"]
33+
use_bias: [true, true, true, true, false]
34+
rng: "Xoshiro(seeds.θ_start)"
35+
priori:
36+
reuse: "cnn_noproj"
37+
dotrain: true
38+
nepoch: 50000
39+
batchsize: 64
40+
opt: "OptimiserChain(Adam(T(1.0e-3)), ClipGrad(0.1))"
41+
do_plot: false
42+
plot_train: false
43+
posteriori:
44+
dotrain: true
45+
projectorders: "(ProjectOrder.Last, )"
46+
nepoch: 1500
47+
opt: "OptimiserChain(Adam(T(1.0e-4)), ClipGrad(0.01))"
48+
nunroll: 5
49+
nunroll_valid: 10
50+
nsamples: 1
51+
dt: 0.0001
52+
do_plot: false
53+
plot_train: false
54+
sensealg: "GaussAdjoint()"
55+
sciml_solver: "Tsit5()"

configs/snellius/cnn_ins.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ seeds:
2525
prior: 345
2626
post: 456
2727
closure:
28-
name: "cnn_noproj"
28+
name: "NoProjection"
2929
type: cnn
3030
radii: [2, 2, 2, 2, 2]
3131
channels: [24, 24, 24, 24, 2]
@@ -42,12 +42,12 @@ priori:
4242
posteriori:
4343
dotrain: true
4444
projectorders: "(ProjectOrder.Last, )"
45-
nepoch: 1500
46-
opt: "OptimiserChain(Adam(T(1.0e-3)), ClipGrad(0.1))"
45+
nepoch: 3000
46+
opt: "Adam(T(1.0e-4))"
4747
nunroll: 5
4848
nunroll_valid: 10
4949
dt: 0.0001
5050
do_plot: false
5151
plot_train: false
52-
nsamples: 1
52+
nsamples: 5
5353
sciml_solver: "Tsit5()"

configs/snellius/cnn_proj.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
docreatedata: true
2+
docomp: true
3+
ntrajectory: 8
4+
T: "Float32"
5+
dataproj: true
6+
params:
7+
D: 2
8+
lims: [0.0, 1.0]
9+
Re: 6000.0
10+
tburn: 0.5
11+
tsim: 5.0
12+
savefreq: 50
13+
ndns: 4096
14+
nles: [64]
15+
filters: ["FaceAverage()"]
16+
icfunc: "(setup, psolver, rng) -> random_field(setup, T(0); kp=20, psolver, rng)"
17+
method: "RKMethods.Wray3(; T)"
18+
bodyforce: "(dim, x, y, t) -> (dim == 1) * 5 * sinpi(8 * y)"
19+
issteadybodyforce: true
20+
processors: "(; log = timelogger(; nupdate=100))"
21+
Δt: 0.00005
22+
seeds:
23+
dns: 123456
24+
θ_start: 234
25+
prior: 345
26+
post: 456
27+
closure:
28+
name: "Project"
29+
type: cnn
30+
radii: [2, 2, 2, 2, 2]
31+
channels: [24, 24, 24, 24, 2]
32+
activations: ["tanh", "tanh", "tanh", "tanh", "identity"]
33+
use_bias: [true, true, true, true, false]
34+
rng: "Xoshiro(seeds.θ_start)"
35+
priori:
36+
dotrain: true
37+
nepoch: 50000
38+
batchsize: 64
39+
opt: "OptimiserChain(Adam(T(1.0e-3)), ClipGrad(0.1))"
40+
do_plot: false
41+
plot_train: false
42+
posteriori:
43+
dotrain: true
44+
projectorders: "(ProjectOrder.Last, )"
45+
nepoch: 3000
46+
opt: "Adam(T(1.0e-4))"
47+
nunroll: 5
48+
nunroll_valid: 10
49+
nsamples: 5
50+
dt: 0.0001
51+
do_plot: false
52+
plot_train: false
53+
sciml_solver: "Tsit5()"

configs/snellius/cnn_rk4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ seeds:
2525
prior: 345
2626
post: 456
2727
closure:
28-
name: "cnn_noproj"
28+
name: "cnn_rk4"
2929
type: cnn
3030
radii: [2, 2, 2, 2, 2]
3131
channels: [24, 24, 24, 24, 2]

multisub.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#sbatch -J CNO job_a100_extra.sh configs/snellius/cno_1.yaml
22
sbatch -J ATT job_a100_extra.sh configs/snellius/att_1.yaml
33
sbatch -J CNN job_a100.sh configs/snellius/cnn_1.yaml
4+
5+
sbatch -J backsol job_a100.sh configs/snellius/cnn_backsol.yaml
6+
sbatch -J interp job_a100.sh configs/snellius/cnn_interp.yaml
7+
sbatch -J rk4 job_a100.sh configs/snellius/cnn_rk4.yaml

0 commit comments

Comments
 (0)