Skip to content

Commit 92ce0e3

Browse files
authored
fix rapids_sagemaker_hpo.ipynb (aws#3545)
1 parent 2db714c commit 92ce0e3

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

hyperparameter_tuning/rapids_bring_your_own/code/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ ENV CV_FOLDS="3"
88
# ensure printed output/log-messages retain correct order
99
ENV PYTHONUNBUFFERED=True
1010

11+
# delete expired nvidia keys and fetch new ones
12+
RUN apt-key del 7fa2af80
13+
RUN rm /etc/apt/sources.list.d/cuda.list
14+
RUN rm /etc/apt/sources.list.d/nvidia-ml.list
15+
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb && dpkg -i cuda-keyring_1.0-1_all.deb
16+
1117
# add sagemaker-training-toolkit [ requires build tools ], flask [ serving ], and dask-ml
1218
RUN apt-get update && apt-get install -y --no-install-recommends build-essential \
13-
&& source activate rapids && pip3 install sagemaker-training \
14-
&& conda install -c anaconda flask \
15-
&& conda install -c conda-forge dask-ml
19+
&& source activate rapids && pip3 install sagemaker-training dask-ml flask
1620

1721
# path where SageMaker looks for code when container runs in the cloud
18-
ENV CLOUD_PATH="/opt/ml/code"
22+
ENV CLOUD_PATH "/opt/ml/code"
1923

2024
# copy our latest [local] code into the container
2125
COPY . $CLOUD_PATH

hyperparameter_tuning/rapids_bring_your_own/rapids_sagemaker_hpo.ipynb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,14 +704,18 @@
704704
"# ensure printed output/log-messages retain correct order\n",
705705
"ENV PYTHONUNBUFFERED=True\n",
706706
"\n",
707+
"# delete expired nvidia keys and fetch new ones\n",
708+
"RUN apt-key del 7fa2af80\n",
709+
"RUN rm /etc/apt/sources.list.d/cuda.list\n",
710+
"RUN rm /etc/apt/sources.list.d/nvidia-ml.list\n",
711+
"RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb && dpkg -i cuda-keyring_1.0-1_all.deb \n",
712+
"\n",
707713
"# add sagemaker-training-toolkit [ requires build tools ], flask [ serving ], and dask-ml\n",
708714
"RUN apt-get update && apt-get install -y --no-install-recommends build-essential \\ \n",
709-
" && source activate rapids && pip3 install sagemaker-training \\\n",
710-
" && conda install -c anaconda flask \\\n",
711-
" && conda install -c conda-forge dask-ml\n",
715+
" && source activate rapids && pip3 install sagemaker-training dask-ml flask\n",
712716
"\n",
713717
"# path where SageMaker looks for code when container runs in the cloud\n",
714-
"ENV CLOUD_PATH=\"/opt/ml/code\"\n",
718+
"ENV CLOUD_PATH \"/opt/ml/code\"\n",
715719
"\n",
716720
"# copy our latest [local] code into the container \n",
717721
"COPY . $CLOUD_PATH\n",

0 commit comments

Comments
 (0)