Skip to content

Commit

Permalink
Updates docs in example yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
abhshkdz committed Jun 24, 2022
1 parent b65cc6c commit aa3fe33
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 22 deletions.
24 changes: 14 additions & 10 deletions configs/is2re/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
trainer: energy # 'energy' or 'forces'

task:
# The code currently only supports 'lmdb' for both IS2RE and S2EF.
# The code currently supports 'lmdb' and 'oc22_lmdb' for both IS2RE and S2EF.
#
# To train models on adsorption energy (as in OC20), use `lmdb`.
# To train models on total DFT energy, use `oc22_lmdb`.
#
# Can use 'single_point_lmdb' or 'trajectory_lmdb' for backward compatibility.
# 'single_point_lmdb' was for training IS2RE models, and 'trajectory_lmdb' for
# training S2EF models.
dataset: lmdb
# 'single_point_lmdb' was for training IS2RE models, and 'trajectory_lmdb' was
# for training S2EF models.
dataset: lmdb # 'lmdb' or 'oc22_lmdb'
# This is an optional parameter specifying the val metric to watch for
# improvement to decide when to save checkpoints.
# By default, this is:
Expand All @@ -28,13 +31,14 @@ dataset:
# These stats are for OC20 IS2RE.
target_mean: -1.525913953781128
target_std: 2.279365062713623
# If we want to train OC20 on total energy, a path to OC20 reference energies `oc20_ref`
# must be specificed to unreference existing OC20 data.
# If we want to train OC20 on total energy, a path to OC20 reference
# energies `oc20_ref` must be specificed to unreference existing OC20 data.
# OC22 by default trains on total energy, so this flag is not necessary.
total_energy: False
oc20_ref: False
# If we want to train on total energies and use a linear reference normalization scheme
# we must specify the path to the per-element coefficients in a `.npz` format.
total_energy: False # True or False
oc20_ref: False # True or False
# If we want to train on total energies and use a linear reference
# normalization scheme, we must specify the path to the per-element
# coefficients in a `.npz` format.
lin_ref: False
val:
# Path to val set LMDB
Expand Down
27 changes: 15 additions & 12 deletions configs/s2ef/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
trainer: forces # 'energy' or 'forces'

task:
# The code currently only supports 'lmdb' for both IS2RE and S2EF.
# The code currently supports 'lmdb' and 'oc22_lmdb' for both IS2RE and S2EF.
#
# To train models on adsorption energy (as in OC20), use `lmdb`.
# To train models on total DFT energy, use `oc22_lmdb`.
#
# Can use 'single_point_lmdb' or 'trajectory_lmdb' for backward compatibility.
# 'single_point_lmdb' was for training IS2RE models, and 'trajectory_lmdb' for
# training S2EF models.
# To train models on total energy use `oc22_lmdb`.
dataset: lmdb
# 'single_point_lmdb' was for training IS2RE models, and 'trajectory_lmdb' was
# for training S2EF models.
dataset: lmdb # 'lmdb' or 'oc22_lmdb'
# This is an optional parameter specifying the val metric to watch for
# improvement to decide when to save checkpoints.
# By default, this is:
Expand Down Expand Up @@ -63,14 +65,15 @@ dataset:
grad_target_mean: 0.0
grad_target_std: 2.887317180633545

# If we want to train OC20 on total energy, a path to OC20 reference energies `oc20_ref`
# must be specificed to unreference existing OC20 data.
# If we want to train OC20 on total energy, a path to OC20 reference
# energies `oc20_ref` must be specificed to unreference existing OC20 data.
# OC22 by default trains on total energy, so this flag is not necessary.
total_energy: False
oc20_ref: False
# If we want to train on total energies and use a linear reference normalization scheme
# we must specify the path to the per-element coefficients in a `.npz` format.
lin_ref: False
total_energy: False # True or False
oc20_ref: False # True or False
# If we want to train on total energies and use a linear reference
# normalization scheme, we must specify the path to the per-element
# coefficients in a `.npz` format.
lin_ref: False # True or False
val:
# Directory containing val set LMDBs
src: data/s2ef/all/val_id/
Expand Down

0 comments on commit aa3fe33

Please sign in to comment.