lmflow.utils.envs#
ref: https://github.com/pytorch/torchtune/blob/main/torchtune/utils/_device.py
Attributes#
Functions#
|
Get the device name based on the current machine. |
|
Return the corresponding torch attribute based on the device type string. |