Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lbluque committed Aug 15, 2024
1 parent 8768dbb commit c7debdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions src/fairchem/core/common/relaxation/optimizers/lbfgs_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,6 @@ def step(self, iteration: int) -> None:
p = -z
dr = self.determine_step(p)

# if dr[self.optimizable.update_mask[self.optimizable.batch_indices]].isnan().any():
# breakpoint()

if torch.abs(dr).max() < 1e-7:
# Same configuration again (maybe a restart):
return
Expand Down
6 changes: 1 addition & 5 deletions tests/core/common/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
@pytest.fixture(scope="session")
def calculator(tmp_path_factory):
dir = tmp_path_factory.mktemp("checkpoints")
calc = OCPCalculator(
return OCPCalculator(
model_name="EquiformerV2-31M-S2EF-OC20-All+MD", local_cache=dir, seed=0
)
# TODO debug this
# removing amp so that we always get float32 predictions
calc.trainer.scaler = None
return calc


@pytest.fixture()
Expand Down

0 comments on commit c7debdb

Please sign in to comment.