Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG FIX]:fix get torch.version.cuda error when cuda is None in rocm (#…
…6909) HI, I found some error when using deepspeed with rocm-torch ``` torch_cuda_version = ".".join(torch.version.cuda.split('.')[:2]) ``` will raise an AttributeError when torch.version.cuda is None. This occurs because the CUDA version in rocm-torch/version.py is set to always be None, leading to potential runtime errors in environments where ROCm is being used. --------- Co-authored-by: Logan Adams <[email protected]>
- Loading branch information