From e5bc745d2a55f071c5a05c3fb0626f9600c44821 Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Fri, 23 Feb 2024 13:41:33 -0700 Subject: [PATCH] chore(pytorch): Rename to pytorch-cuda12 (#2271) --- images/{pytorch => pytorch-cuda12}/README.md | 10 +++++----- images/{pytorch => pytorch-cuda12}/TESTING.md | 0 images/{pytorch => pytorch-cuda12}/config/main.tf | 0 images/{pytorch => pytorch-cuda12}/main.tf | 0 images/{pytorch => pytorch-cuda12}/metadata.yaml | 4 ++-- images/{pytorch => pytorch-cuda12}/tests/main.tf | 0 .../tests/pytorch-helm-install.sh | 0 images/{pytorch => pytorch-cuda12}/tests/quickstart.py | 0 .../{pytorch => pytorch-cuda12}/tests/torch_optim.py | 0 main.tf | 6 +++--- withdrawn-images.txt | 2 ++ 11 files changed, 12 insertions(+), 10 deletions(-) rename images/{pytorch => pytorch-cuda12}/README.md (86%) rename images/{pytorch => pytorch-cuda12}/TESTING.md (100%) rename images/{pytorch => pytorch-cuda12}/config/main.tf (100%) rename images/{pytorch => pytorch-cuda12}/main.tf (100%) rename images/{pytorch => pytorch-cuda12}/metadata.yaml (88%) rename images/{pytorch => pytorch-cuda12}/tests/main.tf (100%) rename images/{pytorch => pytorch-cuda12}/tests/pytorch-helm-install.sh (100%) rename images/{pytorch => pytorch-cuda12}/tests/quickstart.py (100%) rename images/{pytorch => pytorch-cuda12}/tests/torch_optim.py (100%) diff --git a/images/pytorch/README.md b/images/pytorch-cuda12/README.md similarity index 86% rename from images/pytorch/README.md rename to images/pytorch-cuda12/README.md index de0fc2f48a..fd29a99584 100644 --- a/images/pytorch/README.md +++ b/images/pytorch-cuda12/README.md @@ -1,11 +1,11 @@ -# pytorch +# pytorch-cuda12 | | | | - | - | -| **OCI Reference** | `cgr.dev/chainguard/pytorch` | +| **OCI Reference** | `cgr.dev/chainguard/pytorch-cuda12` | -* [View Image in Chainguard Academy](https://edu.chainguard.dev/chainguard/chainguard-images/reference/pytorch/overview/) +* [View Image in Chainguard Academy](https://edu.chainguard.dev/chainguard/chainguard-images/reference/pytorch-cuda12/overview/) * [View Image Catalog](https://console.enforce.dev/images/catalog) for a full list of available tags. * [Contact Chainguard](https://www.chainguard.dev/chainguard-images) for enterprise support, SLAs, and access to older tags.* @@ -22,13 +22,13 @@ A minimal, [wolfi](https://github.com/wolfi-dev)-based image for pytorch, a Pyth The image is available on `cgr.dev`: ``` -docker pull cgr.dev/chainguard/pytorch:latest +docker pull cgr.dev/chainguard/pytorch-cuda12:latest ``` -## Running pytorch +## Running pytorch-cuda12 Pytorch has some pre-requisites which need to be configured in the environment prior to running. For examples, please refer to [TESTING.md](https://github.com/chainguard-images/images/blob/main/images/pytorch/TESTING.md). diff --git a/images/pytorch/TESTING.md b/images/pytorch-cuda12/TESTING.md similarity index 100% rename from images/pytorch/TESTING.md rename to images/pytorch-cuda12/TESTING.md diff --git a/images/pytorch/config/main.tf b/images/pytorch-cuda12/config/main.tf similarity index 100% rename from images/pytorch/config/main.tf rename to images/pytorch-cuda12/config/main.tf diff --git a/images/pytorch/main.tf b/images/pytorch-cuda12/main.tf similarity index 100% rename from images/pytorch/main.tf rename to images/pytorch-cuda12/main.tf diff --git a/images/pytorch/metadata.yaml b/images/pytorch-cuda12/metadata.yaml similarity index 88% rename from images/pytorch/metadata.yaml rename to images/pytorch-cuda12/metadata.yaml index 8e58ba049b..6a05b666cf 100644 --- a/images/pytorch/metadata.yaml +++ b/images/pytorch-cuda12/metadata.yaml @@ -1,5 +1,5 @@ -name: pytorch -image: cgr.dev/chainguard/pytorch +name: pytorch-cuda12 +image: cgr.dev/chainguard/pytorch-cuda12 logo: https://storage.googleapis.com/chainguard-academy/logos/pytorch.svg endoflife: "" console_summary: "" diff --git a/images/pytorch/tests/main.tf b/images/pytorch-cuda12/tests/main.tf similarity index 100% rename from images/pytorch/tests/main.tf rename to images/pytorch-cuda12/tests/main.tf diff --git a/images/pytorch/tests/pytorch-helm-install.sh b/images/pytorch-cuda12/tests/pytorch-helm-install.sh similarity index 100% rename from images/pytorch/tests/pytorch-helm-install.sh rename to images/pytorch-cuda12/tests/pytorch-helm-install.sh diff --git a/images/pytorch/tests/quickstart.py b/images/pytorch-cuda12/tests/quickstart.py similarity index 100% rename from images/pytorch/tests/quickstart.py rename to images/pytorch-cuda12/tests/quickstart.py diff --git a/images/pytorch/tests/torch_optim.py b/images/pytorch-cuda12/tests/torch_optim.py similarity index 100% rename from images/pytorch/tests/torch_optim.py rename to images/pytorch-cuda12/tests/torch_optim.py diff --git a/main.tf b/main.tf index dc1fabb00e..8cb31ce7d8 100644 --- a/main.tf +++ b/main.tf @@ -1088,9 +1088,9 @@ module "pulumi" { target_repository = "${var.target_repository}/pulumi" } -module "pytorch" { - source = "./images/pytorch" - target_repository = "${var.target_repository}/pytorch" +module "pytorch-cuda12" { + source = "./images/pytorch-cuda12" + target_repository = "${var.target_repository}/pytorch-cuda12" } module "python" { diff --git a/withdrawn-images.txt b/withdrawn-images.txt index b1f197e163..71e8a48a5d 100644 --- a/withdrawn-images.txt +++ b/withdrawn-images.txt @@ -1,2 +1,4 @@ cgr.dev/chainguard/crossplane-xfn:latest cgr.dev/chainguard/crossplane-xfn:latest-dev +cgr.dev/chainguard/pytorch:latest +cgr.dev/chainguard/pytorch:latest-dev