Skip to content

Commit

Permalink
minor fixes (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshuaibii authored Jan 9, 2024
1 parent 7732461 commit f83c772
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 329 deletions.
131 changes: 0 additions & 131 deletions configs/is2re/example.yml

This file was deleted.

197 changes: 0 additions & 197 deletions configs/s2ef/example.yml

This file was deleted.

1 change: 0 additions & 1 deletion ocpmodels/trainers/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ def load_model(self) -> None:
if self.logger is not None:
self.logger.watch(self.model)

self.model.to(self.device)
if distutils.initialized() and not self.config["noddp"]:
self.model = DistributedDataParallel(
self.model, device_ids=[self.device]
Expand Down
4 changes: 4 additions & 0 deletions ocpmodels/trainers/ocp_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ class OCPTrainer(BaseTrainer):
Args:
task (dict): Task configuration.
model (dict): Model configuration.
outputs (dict): Output property configuration.
dataset (dict): Dataset configuration. The dataset needs to be a SinglePointLMDB dataset.
optimizer (dict): Optimizer configuration.
loss_fns (dict): Loss function configuration.
eval_metrics (dict): Evaluation metrics configuration.
identifier (str): Experiment identifier that is appended to log directory.
run_dir (str, optional): Path to the run directory where logs are to be saved.
(default: :obj:`None`)
Expand All @@ -60,6 +63,7 @@ class OCPTrainer(BaseTrainer):
(default: :obj:`False`)
slurm (dict): Slurm configuration. Currently just for keeping track.
(default: :obj:`{}`)
noddp (bool, optional): Run model without DDP.
"""

def __init__(
Expand Down

0 comments on commit f83c772

Please sign in to comment.