Skip to content

Commit

Permalink
Clean up gpu tests (mosaicml#2612)
Browse files Browse the repository at this point in the history
* clean up gpu tests

* lint

* fix docs

* lint
  • Loading branch information
mvpatel2000 authored Oct 6, 2023
1 parent 1baada9 commit 6acca4c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 601 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ jobs:
markers: 'daily and (remote or not remote) and not gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'daily-cpu-3.10-1.13-composer'
container: mosaicml/pytorch:1.13.1_cpu-python3.10-ubuntu20.04
markers: 'daily and (remote or not remote) and not gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'composer'
- name: 'daily-cpu-3.10-2.1'
container: mosaicml/pytorch:2.1.0_cpu-python3.10-ubuntu20.04
markers: 'daily and (remote or not remote) and not gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'daily-cpu-3.10-2.1-composer'
container: mosaicml/pytorch:2.1.0_cpu-python3.10-ubuntu20.04
markers: 'daily and (remote or not remote) and not gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'composer'
- name: 'daily-cpu-vision'
container: mosaicml/pytorch_vision:1.13.1_cpu-python3.10-ubuntu20.04
markers: 'daily and (remote or not remote) and not gpu and vision and not doctest'
Expand Down Expand Up @@ -111,22 +111,17 @@ jobs:
include:
- name: 'gpu-3.10-1.13'
container: mosaicml/pytorch:1.13.1_cu117-python3.10-ubuntu20.04
markers: '(daily or not daily) and (remote or not remote) and gpu and not vision and not doctest'
markers: '(daily or not daily) and (remote or not remote) and gpu and (doctest or not doctest)'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'gpu-3.10-2.0'
container: mosaicml/pytorch_vision:2.0.1_cu117-python3.10-ubuntu20.04
markers: '(daily or not daily) and (remote or not remote) and gpu and not vision and not doctest'
markers: '(daily or not daily) and (remote or not remote) and gpu and (doctest or not doctest)'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'gpu-3.10-1.13-composer'
container: mosaicml/pytorch:1.13.1_cu117-python3.10-ubuntu20.04
markers: '(daily or not daily) and (remote or not remote) and gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'composer'
- name: 'gpu-vision-doctest'
container: mosaicml/pytorch_vision:1.13.1_cu117-python3.10-ubuntu20.04
markers: '(daily or not daily) and (remote or not remote) and gpu and (vision or doctest)'
- name: 'gpu-3.10-2.1'
container: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04
markers: '(daily or not daily) and (remote or not remote) and gpu and (doctest or not doctest)'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
name: ${{ matrix.name }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
markers: 'not daily and not remote and not gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'cpu-3.10-1.13-composer'
container: mosaicml/pytorch:1.13.1_cpu-python3.10-ubuntu20.04
markers: 'not daily and not remote and not gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'composer'
- name: 'cpu-3.10-2.0'
container: mosaicml/pytorch:2.0.1_cpu-python3.10-ubuntu20.04
markers: 'not daily and not remote and not gpu and not vision and not doctest'
Expand All @@ -32,6 +27,11 @@ jobs:
markers: 'not daily and not remote and not gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'cpu-3.10-2.1-composer'
container: mosaicml/pytorch:2.1.0_cpu-python3.10-ubuntu20.04
markers: 'not daily and not remote and not gpu and not vision and not doctest'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'composer'
- name: 'cpu-vision'
container: mosaicml/pytorch_vision:1.13.1_cpu-python3.10-ubuntu20.04
markers: 'not daily and not remote and not gpu and vision and not doctest'
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/pr-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ jobs:
strategy:
matrix:
include:
- name: 'gpu-3.10-1.13-vision-doctest'
container: mosaicml/pytorch_vision:1.13.1_cu117-python3.10-ubuntu20.04
markers: 'not daily and not remote and gpu and (vision or not vision) and (doctest or not doctest)'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'gpu-3.10-2.0-vision-doctest'
container: mosaicml/pytorch_vision:2.0.1_cu117-python3.10-ubuntu20.04
markers: 'not daily and not remote and gpu and (vision or not vision) and (doctest or not doctest)'
- name: 'gpu-3.10-2.1'
container: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04
markers: 'not daily and not remote and gpu and (doctest or not doctest)'
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
name: ${{ matrix.name }}
Expand Down
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Composer is part of the broader Machine Learning community, and we welcome any c
examples/functional_api.ipynb
examples/medical_image_segmentation.ipynb
examples/custom_speedup_methods.ipynb
examples/ffcv_dataloaders.ipynb
examples/finetune_huggingface.ipynb
examples/pretrain_finetune_huggingface.ipynb
examples/migrate_from_ptl.ipynb
Expand Down
Loading

0 comments on commit 6acca4c

Please sign in to comment.