Skip to content

Commit 76d9c82

Browse files
author
Jaemin Choi
committed
Change RuntimeError to print
Signed-off-by: Jaemin Choi <[email protected]>
1 parent ad21c9a commit 76d9c82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nemo/core/optim/distributed_adam.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ def lock_with_timeout():
171171
self._lock.release()
172172
else:
173173
# Failed to acquire lock before timeout
174-
raise RuntimeError(
175-
f'MegatronDistributedFusedAdam: Failed to acquire lock within {lock_timeout} seconds.'
176-
)
174+
print(f'MegatronDistributedFusedAdam: Failed to acquire lock within {lock_timeout} seconds.')
177175

178176
self._lock_with_timeout = lock_with_timeout
179177

0 commit comments

Comments
 (0)