Closed kcm closed 1 year ago
Set CUDA_MEMORY_PCT between 0.0-1.0 inclusive to limit memory use in PyTorch. Defaults to 1.0.
This is useful, for example, in shared environments such as AWS's Virtual GPU device plugin.
Addresses #39
Tested on local Linux running PyTorch 1.13.0 with CUDA12. Should be similar in EKS et al.
Set CUDA_MEMORY_PCT between 0.0-1.0 inclusive to limit memory use in PyTorch. Defaults to 1.0.
This is useful, for example, in shared environments such as AWS's Virtual GPU device plugin.
Addresses #39