Skip to content

Commit

Permalink
don't worry about log_gpu_memory_usage since it calls another annotat…
Browse files Browse the repository at this point in the history
…ed fn
  • Loading branch information
winglian committed Sep 21, 2023
1 parent b1f1f44 commit 07c9436
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/axolotl/utils/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ def gpu_memory_usage_smi(device=0):


def log_gpu_memory_usage(log, msg, device):
if not torch.cuda.is_available() or device == "auto":
return (0, 0, 0)

usage, cache, misc = gpu_memory_usage_all(device)
extras = []
if cache > 0:
Expand Down

0 comments on commit 07c9436

Please sign in to comment.