Skip to content

Commit

Permalink
Fix gpu memory info
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Sep 12, 2023
1 parent fc9be2b commit 9d2525a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def get_server_stats():

if torch.cuda.is_available():
gpu_name = torch.cuda.get_device_name(0)
gpu_memory = torch.cuda.memory_summary()
gpu_memory = calc_megabytes(torch.cuda.get_device_properties(0).total_memory)
else:
gpu_name = ""
gpu_memory = ""
Expand Down

0 comments on commit 9d2525a

Please sign in to comment.