Skip to content

Commit

Permalink
fix: restrict lightning module to only use 1 GPU for predict v3
Browse files Browse the repository at this point in the history
  • Loading branch information
djaniak committed Nov 27, 2023
1 parent b7b3ed3 commit 7d9cf3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embeddings/model/lightning_module/lightning_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _predict_with_trainer(
return_predictions=True,
)
else:
raise RuntimeError("Got `False` for `trainer.is_global_zero` attribute!")
return

def on_train_epoch_end(self) -> None:
self._aggregate_and_log_metrics(self.train_metrics)
Expand Down

0 comments on commit 7d9cf3f

Please sign in to comment.