未验证 提交 bcccee4d 编写于 作者: M Michael Wyatt 提交者: GitHub

Fix cupy install version detection (#3276)

* updated cupy install

* do non-isolated pip install

* Update action.yml
上级 077e42e6
......@@ -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
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册