Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump torch to 2.1.1 version #2717

Merged
merged 13 commits into from
Nov 30, 2023
6 changes: 3 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ To install composer, once inside the image, run `pip install mosaicml`.
| Linux Distro | Flavor | PyTorch Version | CUDA Version | Python Version | Docker Tags |
|----------------|----------|-------------------|---------------------|------------------|------------------------------------------------------------------------------------------|
| Ubuntu 20.04 | Base | 2.2.0 | 12.1.0 (Infiniband) | 3.10 | `mosaicml/pytorch:2.2.0_cu121-nightly20231024-python3.10-ubuntu20.04` |
| Ubuntu 20.04 | Base | 2.1.0 | 12.1.0 (Infiniband) | 3.10 | `mosaicml/pytorch:latest`, `mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04` |
| Ubuntu 20.04 | Base | 2.1.0 | 12.1.0 (EFA) | 3.10 | `mosaicml/pytorch:latest-aws`, `mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04-aws` |
| Ubuntu 20.04 | Base | 2.1.0 | cpu | 3.10 | `mosaicml/pytorch:latest_cpu`, `mosaicml/pytorch:2.1.0_cpu-python3.10-ubuntu20.04` |
| Ubuntu 20.04 | Base | 2.1.1 | 12.1.0 (Infiniband) | 3.10 | `mosaicml/pytorch:latest`, `mosaicml/pytorch:2.1.1_cu121-python3.10-ubuntu20.04` |
| Ubuntu 20.04 | Base | 2.1.1 | 12.1.0 (EFA) | 3.10 | `mosaicml/pytorch:latest-aws`, `mosaicml/pytorch:2.1.1_cu121-python3.10-ubuntu20.04-aws` |
| Ubuntu 20.04 | Base | 2.1.1 | cpu | 3.10 | `mosaicml/pytorch:latest_cpu`, `mosaicml/pytorch:2.1.1_cpu-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
22 changes: 11 additions & 11 deletions docker/build_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,42 @@
- AWS_OFI_NCCL_VERSION: ''
BASE_IMAGE: nvidia/cuda:12.1.0-cudnn8-devel-ubuntu20.04
CUDA_VERSION: 12.1.0
IMAGE_NAME: torch-2-1-0-cu121
IMAGE_NAME: torch-2-1-1-cu121
MOFED_VERSION: 5.5-1.0.3.2
PYTHON_VERSION: '3.10'
PYTORCH_NIGHTLY_URL: ''
PYTORCH_NIGHTLY_VERSION: ''
PYTORCH_VERSION: 2.1.0
PYTORCH_VERSION: 2.1.1
TAGS:
- mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04
- mosaicml/pytorch:2.1.1_cu121-python3.10-ubuntu20.04
- mosaicml/pytorch:latest
TARGET: pytorch_stage
TORCHVISION_VERSION: 0.16.0
- AWS_OFI_NCCL_VERSION: v1.7.3-aws
BASE_IMAGE: nvidia/cuda:12.1.0-cudnn8-devel-ubuntu20.04
CUDA_VERSION: 12.1.0
IMAGE_NAME: torch-2-1-0-cu121-aws
IMAGE_NAME: torch-2-1-1-cu121-aws
MOFED_VERSION: ''
PYTHON_VERSION: '3.10'
PYTORCH_NIGHTLY_URL: ''
PYTORCH_NIGHTLY_VERSION: ''
PYTORCH_VERSION: 2.1.0
PYTORCH_VERSION: 2.1.1
TAGS:
- mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04-aws
- mosaicml/pytorch:2.1.1_cu121-python3.10-ubuntu20.04-aws
- mosaicml/pytorch:latest-aws
TARGET: pytorch_stage
TORCHVISION_VERSION: 0.16.0
- AWS_OFI_NCCL_VERSION: ''
BASE_IMAGE: ubuntu:20.04
CUDA_VERSION: ''
IMAGE_NAME: torch-2-1-0-cpu
IMAGE_NAME: torch-2-1-1-cpu
MOFED_VERSION: ''
PYTHON_VERSION: '3.10'
PYTORCH_NIGHTLY_URL: ''
PYTORCH_NIGHTLY_VERSION: ''
PYTORCH_VERSION: 2.1.0
PYTORCH_VERSION: 2.1.1
TAGS:
- mosaicml/pytorch:2.1.0_cpu-python3.10-ubuntu20.04
- mosaicml/pytorch:2.1.1_cpu-python3.10-ubuntu20.04
- mosaicml/pytorch:latest_cpu
TARGET: pytorch_stage
TORCHVISION_VERSION: 0.16.0
Expand Down Expand Up @@ -141,7 +141,7 @@
PYTHON_VERSION: '3.10'
PYTORCH_NIGHTLY_URL: ''
PYTORCH_NIGHTLY_VERSION: ''
PYTORCH_VERSION: 2.1.0
PYTORCH_VERSION: 2.1.1
TAGS:
- mosaicml/composer:0.17.0
- mosaicml/composer:latest
Expand All @@ -156,7 +156,7 @@
PYTHON_VERSION: '3.10'
PYTORCH_NIGHTLY_URL: ''
PYTORCH_NIGHTLY_VERSION: ''
PYTORCH_VERSION: 2.1.0
PYTORCH_VERSION: 2.1.1
TAGS:
- mosaicml/composer:0.17.0_cpu
- mosaicml/composer:latest_cpu
Expand Down
8 changes: 4 additions & 4 deletions docker/generate_build_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
import yaml

LATEST_PYTHON_VERSION = '3.10'
PRODUCTION_PYTORCH_VERSION = '2.1.0'
PRODUCTION_PYTORCH_VERSION = '2.1.1'


def _get_torchvision_version(pytorch_version: str):
if pytorch_version == '2.1.0':
if pytorch_version == '2.1.1':
return '0.16.0'
if pytorch_version == '2.0.1':
return '0.15.2'
Expand All @@ -41,7 +41,7 @@ def _get_base_image(cuda_version: str):
def _get_cuda_version(pytorch_version: str, use_cuda: bool):
if not use_cuda:
return ''
if pytorch_version == '2.1.0':
if pytorch_version == '2.1.1':
return '12.1.0'
if pytorch_version == '2.0.1':
return '11.8.0'
Expand Down Expand Up @@ -124,7 +124,7 @@ def _write_table(table_tag: str, table_contents: str):

def _main():
python_versions = ['3.10']
pytorch_versions = ['2.1.0', '2.0.1', '1.13.1']
pytorch_versions = ['2.1.1', '2.0.1', '1.13.1']
cuda_options = [True, False]
stages = ['pytorch_stage']
interconnects = ['mellanox', 'EFA'] # mellanox is default, EFA needed for AWS
Expand Down
Loading