-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump Python to 3.9 * modify script to build container image * fix example for enas * update scripts to modify image name in ci * review: change docker build command * review: use new tf-mnist-with-example in Ci for tfjob * review: refactor tf-mnist-with-summaries * review: remove Dockerfile.ppc64le for new-ui * review: update docs related tf-mnist-with-summaries * TFEventMetricsCollector supports TF>=2.0 and stop supporting TF <=1.x * review: add help command to scripts/v1beta1/build.sh Co-authored-by: Andrey Velichkevich <andrey.velichkevich@gmail.com> * fix unit test for tfevent-metricscollector * review: generate tf event files on CI * add test command to Makefile * update publish-trial-images * update update-images.sh * reduce batch size Co-authored-by: Andrey Velichkevich <andrey.velichkevich@gmail.com>
- Loading branch information
1 parent
7be1f0a
commit 2a0b12e
Showing
48 changed files
with
610 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
grpcio==1.23.0 | ||
protobuf==3.9.1 | ||
grpcio==1.41.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
kubernetes==11.0.0 | ||
cython>=0.29.24 |
28 changes: 23 additions & 5 deletions
28
cmd/metricscollector/v1beta1/tfevent-metricscollector/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
FROM tensorflow/tensorflow:1.11.0 | ||
RUN pip install rfc3339 grpcio googleapis-common-protos | ||
ADD . /usr/src/app/github.com/kubeflow/katib | ||
WORKDIR /usr/src/app/github.com/kubeflow/katib/cmd/metricscollector/v1beta1/tfevent-metricscollector/ | ||
FROM python:3.9 | ||
|
||
ENV TARGET_DIR /opt/katib | ||
ENV METRICS_COLLECTOR_DIR cmd/metricscollector/v1beta1/tfevent-metricscollector | ||
# tensorflow community build for aarch64 | ||
# https://github.com/tensorflow/build#tensorflow-builds | ||
ENV PIP_EXTRA_INDEX_URL https://snapshots.linaro.org/ldcg/python-cache/ | ||
|
||
ADD ./pkg/ ${TARGET_DIR}/pkg/ | ||
ADD ./${METRICS_COLLECTOR_DIR}/ ${TARGET_DIR}/${METRICS_COLLECTOR_DIR}/ | ||
WORKDIR ${TARGET_DIR}/${METRICS_COLLECTOR_DIR} | ||
|
||
RUN if [ "$(uname -m)" = "aarch64" ]; then \ | ||
pip install tensorflow-aarch64==2.7.0; \ | ||
else \ | ||
pip install tensorflow==2.7.0; \ | ||
fi; | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
ENV PYTHONPATH /usr/src/app/github.com/kubeflow/katib:/usr/src/app/github.com/kubeflow/katib/pkg/apis/manager/v1beta1/python:/usr/src/app/github.com/kubeflow/katib/pkg/metricscollector/v1beta1/tfevent-metricscollector/:/usr/src/app/github.com/kubeflow/katib/pkg/metricscollector/v1beta1/common/ | ||
|
||
RUN chgrp -R 0 ${TARGET_DIR} \ | ||
&& chmod -R g+rwX ${TARGET_DIR} | ||
|
||
ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python:${TARGET_DIR}/pkg/metricscollector/v1beta1/tfevent-metricscollector/::${TARGET_DIR}/pkg/metricscollector/v1beta1/common/ | ||
|
||
ENTRYPOINT ["python", "main.py"] |
28 changes: 0 additions & 28 deletions
28
cmd/metricscollector/v1beta1/tfevent-metricscollector/Dockerfile.aarch64
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
cmd/metricscollector/v1beta1/tfevent-metricscollector/Dockerfile.ppc64le
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
cmd/metricscollector/v1beta1/tfevent-metricscollector/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
psutil==5.6.6 | ||
psutil==5.8.0 | ||
rfc3339>=6.2 | ||
grpcio==1.41.1 | ||
googleapis-common-protos==1.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
grpcio==1.23.0 | ||
grpcio==1.41.1 | ||
cloudpickle==0.5.6 | ||
numpy>=1.13.3 | ||
scikit-learn>=0.19.0 | ||
scipy>=0.19.1 | ||
numpy>=1.20.0 | ||
scikit-learn>=0.24.0 | ||
scipy>=1.5.4 | ||
forestci==0.3 | ||
protobuf==3.9.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
SQLAlchemy==1.3.8 | ||
SQLAlchemy==1.4.26 | ||
git+https://github.com/AIworx-Labs/chocolate@master | ||
ghalton>=0.6 | ||
ghalton>=0.6.2 | ||
cython>=0.29.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
grpcio==1.23.0 | ||
grpcio==1.41.1 | ||
cloudpickle==0.5.6 | ||
numpy>=1.13.3 | ||
scikit-learn>=0.19.0 | ||
scipy>=0.19.1 | ||
numpy>=1.20.0 | ||
scikit-learn>=0.24.0 | ||
scipy>=1.5.4 | ||
forestci==0.3 | ||
protobuf==3.9.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
cython>=0.29.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
grpcio==1.23.0 | ||
grpcio==1.41.1 | ||
cloudpickle==0.5.6 | ||
numpy>=1.13.3 | ||
scikit-learn>=0.19.0 | ||
scipy>=0.19.1 | ||
numpy>=1.20.0 | ||
scikit-learn>=0.24.0 | ||
scipy>=1.5.4 | ||
forestci==0.3 | ||
protobuf==3.9.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
hyperopt==0.2.3 | ||
hyperopt==0.2.5 | ||
cython>=0.29.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
grpcio==1.23.0 | ||
protobuf==3.9.1 | ||
grpcio==1.41.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
cython>=0.29.24 |
Oops, something went wrong.