Skip to content

Commit

Permalink
Change RuntimeError to print
Browse files Browse the repository at this point in the history
Signed-off-by: Jaemin Choi <[email protected]>
  • Loading branch information
Jaemin Choi committed May 2, 2024
1 parent ad21c9a commit 76d9c82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nemo/core/optim/distributed_adam.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ def lock_with_timeout():
self._lock.release()
else:
# Failed to acquire lock before timeout
raise RuntimeError(
f'MegatronDistributedFusedAdam: Failed to acquire lock within {lock_timeout} seconds.'
)
print(f'MegatronDistributedFusedAdam: Failed to acquire lock within {lock_timeout} seconds.')

self._lock_with_timeout = lock_with_timeout

Expand Down

0 comments on commit 76d9c82

Please sign in to comment.