Skip to content

Commit

Permalink
Autoselect CUDA Device (#56)
Browse files Browse the repository at this point in the history
* sort by free ram

* debug value changed

* fix

* delete debug device
  • Loading branch information
vorozhkog authored Nov 7, 2024
1 parent 2fa5cf2 commit 375baf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train/src/ui/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def init_devices():
"free": free_mem,
}
devices.append(device_info)
return devices
return sorted(devices, key=lambda x: x["free"], reverse=True)


def init_chart(
Expand Down

0 comments on commit 375baf2

Please sign in to comment.