Skip to content

Commit

Permalink
update inputs for examples (#109)
Browse files Browse the repository at this point in the history
* update inputs for example/silicon

* update checkpoint

* update chekcpoints

* replace invalid checkpoint link

* update notebook
  • Loading branch information
SharpLonde authored Apr 9, 2024
1 parent 410270d commit 88a5cd7
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 4 deletions.
9 changes: 8 additions & 1 deletion examples/silicon/inputs/2-3_1_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"train_options": {
"num_epoch": 1500,
"batch_size": 1,
"ref_batch_size": 1,
"optimizer": {
"lr": 0.01,
"type": "Adam"
Expand All @@ -19,7 +20,8 @@
"gamma": 0.999
},
"loss_options":{
"train": {"method": "eigvals"}
"train": {"method": "eigvals"},
"reference": {"method": "eigvals"}
},
"save_freq": 500,
"validation_freq": 10,
Expand All @@ -37,6 +39,11 @@
"root": "./data/",
"prefix": "kpathmd25",
"get_eigenvalues": true
},
"reference": {
"root": "./data/",
"prefix": "kpath_spk",
"get_eigenvalues": true
}
}
}
11 changes: 9 additions & 2 deletions examples/silicon/inputs/2-3_2_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"overlap": false
},
"train_options": {
"num_epoch": 500,
"num_epoch": 1500,
"batch_size": 1,
"ref_batch_size": 1,
"optimizer": {
"lr": 0.01,
"type": "Adam"
Expand All @@ -19,7 +20,8 @@
"gamma": 0.999
},
"loss_options":{
"train": {"method": "eigvals"}
"train": {"method": "eigvals"},
"reference": {"method": "eigvals"}
},
"save_freq": 500,
"validation_freq": 10,
Expand All @@ -37,6 +39,11 @@
"root": "./data/",
"prefix": "kpathmd100",
"get_eigenvalues": true
},
"reference": {
"root": "./data/",
"prefix": "kpath_spk",
"get_eigenvalues": true
}
}
}
101 changes: 101 additions & 0 deletions examples/silicon/ref_ckpts/dptb/train_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"common_options": {
"basis": {
"Si": [
"3s",
"3p",
"d*"
]
},
"device": "cpu",
"dtype": "float32",
"overlap": false,
"seed": 3982377700
},
"train_options": {
"num_epoch": 1500,
"batch_size": 1,
"optimizer": {
"lr": 0.001,
"type": "Adam",
"betas": [
0.9,
0.999
],
"eps": 1e-08,
"weight_decay": 0,
"amsgrad": false
},
"lr_scheduler": {
"type": "exp",
"gamma": 0.999
},
"loss_options": {
"train": {
"method": "eigvals",
"diff_on": false,
"eout_weight": 0.01,
"diff_weight": 0.01
}
},
"save_freq": 500,
"validation_freq": 10,
"display_freq": 100,
"ref_batch_size": 1,
"val_batch_size": 1,
"max_ckpt": 4
},
"model_options": {
"embedding": {
"method": "se2",
"rs": 2.5,
"rc": 5.0,
"radial_net": {
"neurons": [
10,
20,
30
],
"activation": "tanh",
"if_batch_normalized": false
},
"n_axis": null
},
"prediction": {
"method": "sktb",
"neurons": [
16,
16,
16
],
"activation": "tanh",
"if_batch_normalized": false
},
"nnsk": {
"onsite": {
"method": "strain",
"rs": 2.5,
"w": 0.3
},
"hopping": {
"method": "powerlaw",
"rs": 5.0,
"w": 0.1
},
"freeze": true,
"std": 0.01,
"push": false
}
},
"data_options": {
"train": {
"root": "./data/",
"prefix": "kpath_spk",
"get_eigenvalues": true,
"type": "DefaultDataset",
"get_Hamiltonian": false,
"get_overlap": false,
"get_DM": false
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/silicon/silicon.ipynb

Large diffs are not rendered by default.

0 comments on commit 88a5cd7

Please sign in to comment.