Skip to content

Commit

Permalink
fix: missing pbt->simple-pbt name changes, add simple-pbt to update-i…
Browse files Browse the repository at this point in the history
…mages.sh update yaml function (causing failing gha).
  • Loading branch information
a9p committed Jun 21, 2022
1 parent 6962ad7 commit 5cf08b3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/simple-pbt-e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: E2E Test with simple-pbt
on:
- pull_request

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
e2e:
runs-on: ubuntu-20.04
Expand Down
2 changes: 1 addition & 1 deletion examples/v1beta1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Experiments for the following algorithms:

- [HyperBand](./hp-tuning/hyperband.yaml)

- [PBT](./hp-tuning/pbt.yaml)
- [PBT](./hp-tuning/simple-pbt.yaml)

### Neural Architecture Search

Expand Down
1 change: 0 additions & 1 deletion examples/v1beta1/hp-tuning/simple-pbt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ spec:
containers:
- name: training-container
image: docker.io/kubeflowkatib/simple-pbt:latest
imagePullPolicy: Always
command:
- "python3"
- "/opt/pbt/pbt_test.py"
Expand Down
2 changes: 1 addition & 1 deletion scripts/v1beta1/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ else
docker build --platform linux/amd64 -t "${REGISTRY}/darts-cnn-cifar10-gpu:${TAG}" -f examples/${VERSION}/trial-images/darts-cnn-cifar10/Dockerfile.gpu .

echo -e "\nBuilding dynamic learning rate training container example for PBT...\n"
docker build --platform linux/amd64 -t "${REGISTRY}/simple-pbt:${TAG}" -f examples/${VERSION}/trial-images/pbt/Dockerfile .
docker build --platform linux/amd64 -t "${REGISTRY}/simple-pbt:${TAG}" -f examples/${VERSION}/trial-images/simple-pbt/Dockerfile .
fi

echo -e "\nBuilding Tensorflow with summaries mnist training container example...\n"
Expand Down
2 changes: 2 additions & 0 deletions scripts/v1beta1/update-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ ENAS_GPU="enas-cnn-cifar10-gpu"
ENAS_CPU="enas-cnn-cifar10-cpu"
DARTS_GPU="darts-cnn-cifar10-gpu"
DARTS_CPU="darts-cnn-cifar10-cpu"
SIMPLE_PBT="simple-pbt"

echo -e "Update Katib Trial training container images\n"
update_yaml_files "./" "${OLD_PREFIX}${MXNET_MNIST}:.*" "${NEW_PREFIX}${MXNET_MNIST}:${TAG}"
Expand All @@ -98,5 +99,6 @@ update_yaml_files "./" "${OLD_PREFIX}${ENAS_GPU}:.*" "${NEW_PREFIX}${ENAS_GPU}:$
update_yaml_files "./" "${OLD_PREFIX}${ENAS_CPU}:.*" "${NEW_PREFIX}${ENAS_CPU}:${TAG}"
update_yaml_files "./" "${OLD_PREFIX}${DARTS_GPU}:.*" "${NEW_PREFIX}${DARTS_GPU}:${TAG}"
update_yaml_files "./" "${OLD_PREFIX}${DARTS_CPU}:.*" "${NEW_PREFIX}${DARTS_CPU}:${TAG}"
update_yaml_files "./" "${OLD_PREFIX}${SIMPLE_PBT}:.*" "${NEW_PREFIX}${SIMPLE_PBT}:${TAG}"

echo "Katib images have been updated"
2 changes: 1 addition & 1 deletion test/e2e/v1beta1/hack/aws/argo_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"multivariate-tpe": "examples/v1beta1/hp-tuning/multivariate-tpe.yaml",
"cmaes": "examples/v1beta1/hp-tuning/cma-es.yaml",
"hyperband": "examples/v1beta1/hp-tuning/hyperband.yaml",
"pbt": "examples/v1beta1/hp-tuning/pbt.yaml",
"pbt": "examples/v1beta1/hp-tuning/simple-pbt.yaml",
"enas": "examples/v1beta1/nas/enas-cpu.yaml",
"darts": "examples/v1beta1/nas/darts-cpu.yaml",
"pytorchjob": "examples/v1beta1/kubeflow-training-operator/pytorchjob-mnist.yaml",
Expand Down

0 comments on commit 5cf08b3

Please sign in to comment.