Skip to content

Commit

Permalink
Don't log gpu metrics to mlfoundry metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragjn committed Dec 28, 2023
1 parent 79dad36 commit d1f44f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mlfoundry_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def on_log(self, args, state, control, logs, model=None, **kwargs):

metrics = {}
for k, v in logs.items():
if k.startswith("system/gpu"):
continue
if isinstance(v, (int, float, np.integer, np.floating)) and math.isfinite(v):
metrics[k] = v
else:
Expand Down

0 comments on commit d1f44f5

Please sign in to comment.