Skip to content

Commit

Permalink
sort by free ram
Browse files Browse the repository at this point in the history
  • Loading branch information
vorozhkog committed Nov 7, 2024
1 parent 2fa5cf2 commit 75fc397
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion train/src/ui/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,16 @@ def init_devices():
"free": free_mem,
}
devices.append(device_info)
return devices
# for debug, delete later
devices.append(
{
"value": 1,
"label": "DEBUG DEVICE",
"right_text": "some GB / some GB",
"free": 999999,
}
)
return sorted(devices, key=lambda x: x["free"], reverse=True)


def init_chart(
Expand Down

0 comments on commit 75fc397

Please sign in to comment.