Skip to content

Commit

Permalink
Upgrade torch docker version and github workflow tests (mosaicml#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
j316chuck authored Aug 29, 2023
1 parent c79c8db commit 276205b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'cpu-3.10-2.1'
container: mosaicml/pytorch:2.1.0_cu121-nightly20230818-python3.10-ubuntu20.04
container: mosaicml/pytorch:2.1.0_cu121-nightly20230827-python3.10-ubuntu20.04
markers: 'not 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'
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
pytest_command: 'coverage run -m pytest'
composer_package_name: 'composer'
- name: 'daily-cpu-3.10-2.1'
container: mosaicml/pytorch:2.1.0_cu121-nightly20230818-python3.10-ubuntu20.04
container: mosaicml/pytorch:2.1.0_cu121-nightly20230827-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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
pytest_command: 'coverage run -m pytest'
composer_package_name: 'mosaicml'
- name: 'cpu-3.10-2.1'
container: mosaicml/pytorch:2.1.0_cu121-nightly20230818-python3.10-ubuntu20.04
container: mosaicml/pytorch:2.1.0_cu121-nightly20230827-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: 'mosaicml'
Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To install composer, once inside the image, run `pip install mosaicml`.
<!-- BEGIN_PYTORCH_BUILD_MATRIX -->
| Linux Distro | Flavor | PyTorch Version | CUDA Version | Python Version | Docker Tags |
|----------------|----------|-------------------|---------------------|------------------|---------------------------------------------------------------------------------------------------|
| Ubuntu 20.04 | Base | 2.1.0 | 12.1.0 (Infiniband) | 3.10 | `mosaicml/pytorch:2.1.0_cu121-nightly20230823-python3.10-ubuntu20.04` |
| Ubuntu 20.04 | Base | 2.1.0 | 12.1.0 (Infiniband) | 3.10 | `mosaicml/pytorch:2.1.0_cu121-nightly20230827-python3.10-ubuntu20.04` |
| Ubuntu 20.04 | Base | 2.0.1 | 11.8.0 (Infiniband) | 3.10 | `mosaicml/pytorch:2.0.1_cu118-python3.10-ubuntu20.04` |
| Ubuntu 20.04 | Base | 2.0.1 | 11.8.0 (EFA) | 3.10 | `mosaicml/pytorch:2.0.1_cu118-python3.10-ubuntu20.04-aws` |
| Ubuntu 20.04 | Base | 2.0.1 | cpu | 3.10 | `mosaicml/pytorch:2.0.1_cpu-python3.10-ubuntu20.04` |
Expand Down
6 changes: 3 additions & 3 deletions docker/build_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@
- AWS_OFI_NCCL_VERSION: ''
BASE_IMAGE: nvidia/cuda:12.1.0-cudnn8-devel-ubuntu20.04
CUDA_VERSION: 12.1.0
IMAGE_NAME: torch-nightly-2-1-0-20230823-cu121
IMAGE_NAME: torch-nightly-2-1-0-20230827-cu121
MOFED_VERSION: 5.5-1.0.3.2
PYTHON_VERSION: '3.10'
PYTORCH_NIGHTLY_URL: https://download.pytorch.org/whl/nightly/cu121
PYTORCH_NIGHTLY_VERSION: dev20230823+cu121
PYTORCH_NIGHTLY_VERSION: dev20230827+cu121
PYTORCH_VERSION: 2.1.0
TAGS:
- mosaicml/pytorch:2.1.0_cu121-nightly20230823-python3.10-ubuntu20.04
- mosaicml/pytorch:2.1.0_cu121-nightly20230827-python3.10-ubuntu20.04
TARGET: pytorch_stage
TORCHTEXT_VERSION: 0.16.0
TORCHVISION_VERSION: 0.16.0
Expand Down
6 changes: 3 additions & 3 deletions docker/generate_build_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ def _main():
'AWS_OFI_NCCL_VERSION': '',
'BASE_IMAGE': 'nvidia/cuda:12.1.0-cudnn8-devel-ubuntu20.04',
'CUDA_VERSION': '12.1.0',
'IMAGE_NAME': 'torch-nightly-2-1-0-20230823-cu121',
'IMAGE_NAME': 'torch-nightly-2-1-0-20230827-cu121',
'MOFED_VERSION': '5.5-1.0.3.2',
'PYTHON_VERSION': '3.10',
'PYTORCH_VERSION': '2.1.0',
'PYTORCH_NIGHTLY_URL': 'https://download.pytorch.org/whl/nightly/cu121',
'PYTORCH_NIGHTLY_VERSION': 'dev20230823+cu121',
'TAGS': ['mosaicml/pytorch:2.1.0_cu121-nightly20230823-python3.10-ubuntu20.04'],
'PYTORCH_NIGHTLY_VERSION': 'dev20230827+cu121',
'TAGS': ['mosaicml/pytorch:2.1.0_cu121-nightly20230827-python3.10-ubuntu20.04'],
'TARGET': 'pytorch_stage',
'TORCHTEXT_VERSION': '0.16.0',
'TORCHVISION_VERSION': '0.16.0'
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ filterwarnings = [
'''ignore:'has_mps' is deprecated, please use 'torch.backends.mps.is_built():UserWarning''',
# Ignore has_mkldnn is deprecated warning please use torch.backends.mkldnn.is_available
'''ignore:'has_mkldnn' is deprecated, please use 'torch.backends.mkldnn.is_available():UserWarning''',
# Ignore torch distributed deprecated warnings
'''ignore:torch.distributed.reduce_op is deprecated, please use torch.distributed.ReduceOp instead:UserWarning''',
]

# Coverage
Expand Down

0 comments on commit 276205b

Please sign in to comment.