7
description: 'DeepSpeed-MII Branch'
13
- '.github/workflows/nv-mii.yml'
16
- 'deepspeed/__init__.py'
17
- 'deepspeed/inference/**'
18
- '!deepspeed/inference/v2/**' # exclude v2 dir
25
group: ${{ github.workflow }}-${{ github.ref }}
26
cancel-in-progress: true
30
runs-on: [self-hosted, nvidia, cu116, v100]
33
- uses: actions/checkout@v3
36
uses: ./.github/workflows/setup-venv
38
- name: Install pytorch
40
pip3 install -U --cache-dir $TORCH_CACHE torch --index-url https://download.pytorch.org/whl/cu118
41
python -c "import torch; print('torch:', torch.__version__, torch)"
42
python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
44
- name: Install transformers
46
git clone https://github.com/huggingface/transformers
48
# if needed switch to the last known good SHA until transformers@master is fixed
49
# git checkout 1cc453d33
50
git rev-parse --short HEAD
53
- name: Install deepspeed
58
- name: Python environment
62
- name: MII unit tests
65
if [[ ! -z "${{ github.event.inputs.mii_branch }}" ]]; then
66
BRANCH="${{ github.event.inputs.mii_branch }}"
68
echo "Cloning DeepSpeed-MII branch: $BRANCH"
69
git clone -b $BRANCH --depth=1 https://github.com/microsoft/DeepSpeed-MII.git
72
unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
74
pytest $PYTEST_OPTS --forked -m "deepspeed" ./