mirror of
https://github.com/hanzo-ml/katib.git
synced 2026-10-30 14:46:14 +00:00
* [SDK] Fix empty list for env variables Signed-off-by: Andrey Velichkevich <[email protected]> * Fix numpy version in tests Signed-off-by: Andrey Velichkevich <[email protected]> --------- Signed-off-by: Andrey Velichkevich <[email protected]>
17 lines
471 B
Docker
17 lines
471 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV TARGET_DIR /opt/darts-cnn-cifar10
|
|
|
|
ADD examples/v1beta1/trial-images/darts-cnn-cifar10 ${TARGET_DIR}
|
|
|
|
WORKDIR ${TARGET_DIR}
|
|
|
|
# TODO (andreyvelich): This is required since torchvision==0.17.1 is incompatible with numpy 2.0
|
|
RUN pip install numpy==1.26.0
|
|
RUN pip install --prefer-binary --no-cache-dir torch==2.2.1 torchvision==0.17.1
|
|
|
|
RUN chgrp -R 0 ${TARGET_DIR} \
|
|
&& chmod -R g+rwX ${TARGET_DIR}
|
|
|
|
ENTRYPOINT ["python3", "-u", "run_trial.py"]
|