Skip to content

Commit fbbc239

Browse files
committed
Update build script for PT container
- modified S3 path to pick up from PT folder - added parameter to enable installation of sagemaker_pytorch_container.whl into image
1 parent 65fb762 commit fbbc239

File tree

1 file changed

+5
-2
lines changed
  • bin/sagemaker-containers/pytorch/1.1.0

1 file changed

+5
-2
lines changed

bin/sagemaker-containers/pytorch/1.1.0/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,23 @@ popd
2323
cd bin/sagemaker-containers/pytorch/1.1.0/
2424
cp ~/sagemaker-pytorch-container/dist/sagemaker_pytorch_container-*.whl .
2525
cp -r ~/sagemaker-pytorch-container/lib .
26+
export SM_BINARY=`ls sagemaker_pytorch_container-*.whl`
2627

27-
export TORNASOLE_BINARY_PATH=s3://tornasole-binaries-use1/tornasole_mxnet/py3/latest
28+
export TORNASOLE_BINARY_PATH=s3://tornasole-binaries-use1/tornasole_pytorch/py3/latest
2829
aws s3 sync $TORNASOLE_BINARY_PATH tornasole-binary
2930
cp tornasole-binary/*.whl .
3031
export TORNASOLE_BINARY=`ls tornasole-*.whl`
3132

3233
export ECR_REPO_NAME=tornasole-preprod-pytorch-1.1.0-gpu
3334
docker build -t $ECR_REPO_NAME:$ECR_TAG_NAME --build-arg py_version=3 \
3435
--build-arg tornasole_framework_installable=$TORNASOLE_BINARY \
36+
--build-arg framework_support_installable=$SM_BINARY \
3537
-f Dockerfile.gpu .
3638
tag_and_push
3739

3840
export ECR_REPO_NAME=tornasole-preprod-pytorch-1.1.0-cpu
3941
docker build -t $ECR_REPO_NAME:$ECR_TAG_NAME --build-arg py_version=3 \
4042
--build-arg tornasole_framework_installable=$TORNASOLE_BINARY \
43+
--build-arg framework_support_installable=$SM_BINARY \
4144
-f Dockerfile.cpu .
42-
tag_and_push
45+
tag_and_push

0 commit comments

Comments
 (0)