Skip to content

Commit

Permalink
take out ocpdataparallel from fit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
janiceblue committed Jan 4, 2024
1 parent d3d7e1c commit ddac40a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ocpmodels/modules/scaling/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import torch.nn as nn
from torch.nn.parallel.distributed import DistributedDataParallel

from ocpmodels.common.data_parallel import OCPDataParallel
from ocpmodels.common.flags import flags
from ocpmodels.common.utils import (
build_config,
Expand Down Expand Up @@ -78,7 +77,7 @@ def main(*, num_batches: int = 16) -> None:
# unwrap module from DP/DDP
unwrapped_model = model
while isinstance(
unwrapped_model, (DistributedDataParallel, OCPDataParallel)
unwrapped_model, DistributedDataParallel
):
unwrapped_model = unwrapped_model.module
assert isinstance(
Expand Down

0 comments on commit ddac40a

Please sign in to comment.