Skip to content

Commit

Permalink
Update CI workflows (#392)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Wyatt <michaelwyatt@microsoft.com>
  • Loading branch information
loadams and mrwyattii authored Jan 26, 2024
1 parent e7e7375 commit 7bc17c2
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 21 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: Formatting

on:
push:
branches:
- 'master'
- 'staging**'
workflow_dispatch:
pull_request:
branches:
'**'
schedule:
- cron: "0 0 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -20,7 +19,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: environment
run: |
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/nv-a6000-fastgen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: nv-a6000-fastgen

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
pull_request:
paths-ignore:
- 'mii/legacy/**'
- 'tests/legacy/**'
- '.github/workflows/nv-torch-latest-v100.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
unit-tests:
runs-on: [self-hosted, nvidia, a6000]
container:
image: nvcr.io/nvidia/pytorch:23.03-py3
ports:
- 80
options: --gpus all --shm-size "8G"

steps:
- uses: actions/checkout@v4

- name: Check container state
run: |
ldd --version
nvcc --version
nvidia-smi
python -c "import torch; print('torch:', torch.__version__, torch)"
python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
- name: Install transformers
run: |
git clone --depth=1 https://github.com/huggingface/transformers
cd transformers
git rev-parse --short HEAD
python -m pip install .
- name: Install deepspeed
run: |
git clone --depth=1 https://github.com/microsoft/DeepSpeed
cd DeepSpeed
python -m pip install .
ds_report
- name: Install MII
run: |
pip install .[dev]
- name: Python environment
run: |
python -m pip list
- name: Unit tests
run: |
unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
cd tests
python -m pytest --color=yes --durations=0 --verbose -rF ./
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
name: nv-torch-latest-v100
name: nv-v100-legacy

on:
push:
branches:
- 'master'
- 'staging**'
paths:
- 'mii/__init__.py'
- 'mii/legacy/**'
- 'tests/legacy/**'
- '.github/workflows/nv-torch-latest-v100.yml'
- 'requirements/**'
- 'setup.py'
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- 'mii/__init__.py'
Expand All @@ -30,7 +22,7 @@ jobs:
runs-on: [self-hosted, nvidia, cu116, v100]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- id: setup-venv
uses: ./.github/workflows/setup-venv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
environment: release-env

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: "main"
- name: Get release version from tag
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!-- [![Build Status](https://github.com/microsoft/deepspeed-mii/workflows/Build/badge.svg)](https://github.com/microsoft/DeepSpeed-MII/actions) -->
[![Formatting](https://github.com/microsoft/DeepSpeed-MII/actions/workflows/formatting.yml/badge.svg)](https://github.com/microsoft/DeepSpeed-MII/actions/workflows/formatting.yml)
[![Formatting](https://github.com/microsoft/DeepSpeed-MII/actions/workflows/formatting.yml/badge.svg?branch=main)](https://github.com/microsoft/DeepSpeed-MII/actions/workflows/formatting.yml)
[![nv-v100-legacy](https://github.com/microsoft/DeepSpeed-MII/actions/workflows/nv-v100-legacy.yml/badge.svg?branch=main)](https://github.com/microsoft/DeepSpeed-MII/actions/workflows/nv-v100-legacy.yml)
[![nv-a6000-fastgen](https://github.com/microsoft/DeepSpeed-MII/actions/workflows/nv-a6000-fastgen.yml/badge.svg?branch=main)](https://github.com/microsoft/DeepSpeed-MII/actions/workflows/nv-a6000-fastgen.yml)
[![License Apache 2.0](https://badgen.net/badge/license/apache2.0/blue)](https://github.com/Microsoft/DeepSpeed/blob/master/LICENSE)
[![PyPI version](https://badge.fury.io/py/deepspeed-mii.svg)](https://pypi.org/project/deepspeed-mii/)
<!-- [![Documentation Status](https://readthedocs.org/projects/deepspeed/badge/?version=latest)](https://deepspeed.readthedocs.io/en/latest/?badge=latest) -->
Expand Down

0 comments on commit 7bc17c2

Please sign in to comment.