Skip to content

Commit

Permalink
fix non prediction bug
Browse files Browse the repository at this point in the history
  • Loading branch information
floatingCatty committed Jan 5, 2025
1 parent cb1d865 commit af1032a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dptb/entrypoints/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def train(
# build model will handle the init model cases where the model options provided is not equals to the ones in checkpoint.
checkpoint = init_model if init_model else None
model = build_model(checkpoint=checkpoint, model_options=jdata["model_options"], common_options=jdata["common_options"])
train_datasets.E3statistics(model=model, decay=jdata["model_options"]["prediction"]["decay"])
decay = jdata["model_options"].get("prediction", {}).get("decay", False)
train_datasets.E3statistics(model=model, decay=decay)
trainer = Trainer(
train_options=jdata["train_options"],
common_options=jdata["common_options"],
Expand Down

0 comments on commit af1032a

Please sign in to comment.