mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-31 08:34:14 +00:00
update local version format (#909)
This commit is contained in:
4
setup.py
4
setup.py
@@ -96,8 +96,8 @@ def get_version():
|
||||
with open('version.txt') as f:
|
||||
version = f.read().strip()
|
||||
if build_cuda_ext:
|
||||
torch_version = ''.join(torch.__version__.split('.')[:2])
|
||||
cuda_version = ''.join(get_cuda_bare_metal_version(CUDA_HOME)[1:])
|
||||
torch_version = '.'.join(torch.__version__.split('.')[:2])
|
||||
cuda_version = '.'.join(get_cuda_bare_metal_version(CUDA_HOME)[1:])
|
||||
version += f'+torch{torch_version}cu{cuda_version}'
|
||||
return version
|
||||
|
||||
|
Reference in New Issue
Block a user