Skip to content

Commit

Permalink
Fixed torch version in docker push_all.sh (#3300)
Browse files Browse the repository at this point in the history
* Updated pytorch version in CI and docker

* Fix docker tag

* Fix docker tag value removing +cu124 like words from torch version

* Fix version compare in test_image

* Fixed torch version in docker push_all.sh
  • Loading branch information
vfdev-5 authored Nov 7, 2024
1 parent 8a34587 commit 79f082d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions docker/push_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ echo $DOCKER_TOKEN | docker login --username=$DOCKER_USER --password-stdin

set -xeu


if [ ${push_selected_image} == "all" ]; then

image_name="base"
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__.split('+')[0] + \"-\" + ignite.__version__, end=\"\")"`

for image_name in "base" "vision" "nlp" "apex" "apex-vision" "apex-nlp"
do
Expand All @@ -40,9 +38,6 @@ if [ ${push_selected_image} == "all" ]; then

done

image_name="hvd-base"
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`

for image_name in "hvd-base" "hvd-vision" "hvd-nlp" "hvd-apex" "hvd-apex-vision" "hvd-apex-nlp"
do

Expand All @@ -52,9 +47,6 @@ if [ ${push_selected_image} == "all" ]; then
done

# DEPRECATED due to no activity
# image_name="msdp-apex"
# image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`

# for image_name in "msdp-apex" "msdp-apex-vision" "msdp-apex-nlp"
# do

Expand All @@ -66,7 +58,7 @@ if [ ${push_selected_image} == "all" ]; then
else

image_name=${push_selected_image}
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__.split('+')[0] + \"-\" + ignite.__version__, end=\"\")"`

docker push pytorchignite/${image_name}:latest
docker push pytorchignite/${image_name}:${image_tag}
Expand Down

0 comments on commit 79f082d

Please sign in to comment.