lmflow.utils.envs#
ref: pytorch/torchtune
Functions#
Return True if any environment variable name starts with |
|
|
Raise if GPU execution was requested but CUDA is not available. |
|
Bind this process to |
|
Get the device name based on the current machine. |
|
Return |
Module Contents#
- lmflow.utils.envs.is_accelerate_env()[source]#
Return True if any environment variable name starts with
ACCELERATE_.
- lmflow.utils.envs.require_cuda_for_gpu_mode() None[source]#
Raise if GPU execution was requested but CUDA is not available.