зеркало из https://github.com/microsoft/DeepSpeed.git
Fix cupy install version detection (#3276)
* updated cupy install * do non-isolated pip install * Update action.yml
This commit is contained in:
Родитель
077e42e68a
Коммит
bcccee4d85
|
@ -45,7 +45,7 @@ jobs:
|
|||
|
||||
- name: Install deepspeed
|
||||
run: |
|
||||
pip install .[dev,1bit,autotuning]
|
||||
pip install .[dev,1bit,autotuning] --no-build-isolation
|
||||
ds_report
|
||||
|
||||
- name: Python environment
|
||||
|
|
|
@ -45,7 +45,7 @@ jobs:
|
|||
|
||||
- name: Install deepspeed
|
||||
run: |
|
||||
pip install .[dev,1bit,autotuning]
|
||||
pip install .[dev,1bit,autotuning] --no-build-isolation
|
||||
ds_report
|
||||
|
||||
- name: Python environment
|
||||
|
|
|
@ -15,6 +15,7 @@ runs:
|
|||
python -m venv unit-test-venv
|
||||
source ./unit-test-venv/bin/activate
|
||||
python -m pip install --upgrade pip
|
||||
pip install wheel # required after pip>=23.1
|
||||
echo PATH=$PATH >> $GITHUB_ENV # Make it so venv is inherited for other steps
|
||||
shell: bash
|
||||
- id: print-env
|
||||
|
|
7
setup.py
7
setup.py
|
@ -78,7 +78,12 @@ if torch_available and torch.cuda.is_available():
|
|||
if rocm_major <= 4:
|
||||
cupy = f"cupy-rocm-{rocm_major}-{rocm_minor}"
|
||||
else:
|
||||
cupy = f"cupy-cuda{''.join(map(str,installed_cuda_version()))}"
|
||||
cuda_major_ver, cuda_minor_ver = installed_cuda_version()
|
||||
if (cuda_major_ver < 11) or ((cuda_major_ver == 11) and (cuda_minor_ver < 3)):
|
||||
cupy = f"cupy-cuda{cuda_major_ver}{cuda_minor_ver}"
|
||||
else:
|
||||
cupy = f"cupy-cuda{cuda_major_ver}x"
|
||||
|
||||
if cupy:
|
||||
extras_require['1bit'].append(cupy)
|
||||
extras_require['1bit_mpi'].append(cupy)
|
||||
|
|
Загрузка…
Ссылка в новой задаче