Skip to content

Commit

Permalink
CUDA specific code again
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr committed Jan 2, 2025
1 parent 51a9294 commit fb4466c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/olmo_core/train/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,8 @@ def _fit_epoch(self):

if first_batch or self.global_step % self.metrics_collect_interval == 0:
self._log_metrics()
torch.cuda.set_sync_debug_mode("warn")
if torch.cuda.is_available():
torch.cuda.set_sync_debug_mode("warn")

first_batch = False

Expand Down

0 comments on commit fb4466c

Please sign in to comment.