Skip to content

Commit d46947d

Browse files
Temporarily skip AIO tests due to an issue with runners (#7288)
Signed-off-by: Logan Adams <[email protected]> Signed-off-by: Olatunji Ruwase <[email protected]> Co-authored-by: Olatunji Ruwase <[email protected]>
1 parent 930ab46 commit d46947d

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/setup-venv/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ runs:
66
- id: update-env
77
run: |
88
sudo apt-get update
9-
sudo apt-get install -y libaio-dev
9+
# Temporary disable nvme UTs
10+
# sudo apt-get install -y libaio-dev
11+
sudo apt remove -y libaio-dev
1012
python -m pip install --user --upgrade pip
1113
python -m pip install --user --upgrade virtualenv
1214
shell: bash

tests/unit/inference/quantization/test_intX_quantization.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import pytest
1818
from collections import OrderedDict
1919
from typing import Dict
20+
from deepspeed.ops.aio import AsyncIOBuilder
2021

2122
device = get_accelerator().device_name() if get_accelerator().is_available() else 'cpu'
2223

@@ -57,6 +58,9 @@ def zero3_post_init_quantization_test_helper(cpu_offload: bool, nvme_offload: bo
5758
import deepspeed
5859
from transformers.integrations.deepspeed import HfDeepSpeedConfig
5960

61+
if nvme_offload and not deepspeed.ops.__compatible_ops__[AsyncIOBuilder.NAME]:
62+
pytest.skip('Skip tests since async-io is not compatible')
63+
6064
def get_zero3_ds_config(hf_config: OPTConfig, cpu_offload: bool, nvme_offload: bool, bits: int) -> Dict:
6165
GB = 1 << 30
6266

@@ -174,6 +178,9 @@ def zero3_quantized_initialization_test_helper(cpu_offload: bool, nvme_offload:
174178
import deepspeed
175179
from transformers.integrations.deepspeed import HfDeepSpeedConfig
176180

181+
if nvme_offload and not deepspeed.ops.__compatible_ops__[AsyncIOBuilder.NAME]:
182+
pytest.skip('Skip tests since async-io is not compatible')
183+
177184
def get_zero3_ds_config(hf_config: OPTConfig, cpu_offload: bool, nvme_offload: bool, bits: int) -> Dict:
178185
GB = 1 << 30
179186

tests/unit/runtime/compile/test_compile_zero.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from unit.runtime.compile.util import compare_loss
1414
from unit.common import DistributedTest
1515
from unit.util import bf16_required_version_check, skip_on_arch
16+
import deepspeed
17+
from deepspeed.ops.aio import AsyncIOBuilder
1618

1719
pytestmark = pytest.mark.skipif(not required_torch_version(min_version=2.1),
1820
reason="Compile tests requires Pytorch version 2.1 or above")
@@ -36,6 +38,8 @@ def test_compile_zero(self, tmpdir, zero_stage, dtype, offload_device):
3638
pytest.skip("CPU does not support this test yet")
3739

3840
if offload_device == OffloadDeviceEnum.nvme:
41+
if not deepspeed.ops.__compatible_ops__[AsyncIOBuilder.NAME]:
42+
pytest.skip('Skip tests since async-io is not compatible')
3943
if zero_stage != 3:
4044
pytest.skip(f"Nvme offload not supported for zero stage {zero_stage}")
4145

0 commit comments

Comments
 (0)