From d7cd1cc8d624860b9811a5818a1d9cb1640668fb Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Fri, 25 Jan 2019 16:12:26 -0600 Subject: [PATCH] dlrs.rst: Updates DLRS tutorial MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Kubeflow and DLRS projects made upstream changes that should be reflected in the documentation. This commit introduces the following changes: * Kubeflow version 0.3.2 -> 0.4.1 * 'ks generate' now uses the --image flag so DLRS prototypes receive image names as parameters * Replacing ” with " * Installing the kubeflow/tf-training registry as it's required for deploying TFJobs * Replacing kubeflow/core with kubeflow/common Signed-off-by: Daniela Plascencia --- source/clear-linux/tutorials/dlrs.rst | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/source/clear-linux/tutorials/dlrs.rst b/source/clear-linux/tutorials/dlrs.rst index d44c8e9d..af828320 100644 --- a/source/clear-linux/tutorials/dlrs.rst +++ b/source/clear-linux/tutorials/dlrs.rst @@ -85,13 +85,13 @@ TensorFlow. .. code-block:: bash - docker exec -t bash -c ‘git clone http://github.com/tensorflow/benchmarks -b cnn_tf_v1.12_compatible’ + docker exec -t bash -c 'git clone http://github.com/tensorflow/benchmarks -b cnn_tf_v1.12_compatible' #. Next, execute the benchmark script to run the benchmark. .. code-block:: bash - docker exec -i bash -c ‘python benchmarks/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py --device=cpu --model=resnet50 --data_format=NHWC ’. + docker exec -i bash -c 'python benchmarks/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py --device=cpu --model=resnet50 --data_format=NHWC '. .. note:: @@ -164,16 +164,17 @@ following these instructions from their `quick start guide`_. .. code-block:: bash export KUBEFLOW_SRC=$HOME/kflow - export KUBEFLOW_TAG=”v0.3.2” - export KFAPP=”kflow_app” - export K8S_NAMESPACE=”kubeflow” + export KUBEFLOW_TAG="v0.4.1" + export KFAPP="kflow_app" + export K8S_NAMESPACE="kubeflow" mkdir ${KUBEFLOW_SRC} cd ${KUBEFLOW_SRC} ks init ${KFAPP} cd ${KFAPP} ks registry add kubeflow github.com/kubeflow/kubeflow/tree/${KUBEFLOW_TAG}/kubeflow - ks pkg install kubeflow/core + ks pkg install kubeflow/common + ks pkg install kubeflow/tf-training Now you have all the required kubeflow packages, and you can deploy the primary one for our purposes: tf-job-operator. @@ -200,13 +201,23 @@ Run a TFJob ks pkg install dlrs-tfjob/dlrs-bench +#. Export the image name you'd like to use for the deployment: + + .. code-block:: bash + + export DLRS_IMAGE= + + .. note:: + + Replace with the image name you specified in previous steps. + #. Next, generate Kubernetes manifests for the workloads and apply them to create and run them using these commands .. code-block:: bash - ks generate dlrs-resnet50 dlrsresnet50 --name=dlrsresnet50 - ks generate dlrs-alexnet dlrsalexnet --name=dlrsalexnet + ks generate dlrs-resnet50 dlrsresnet50 --name=dlrsresnet50 --image=${DLRS_IMAGE} + ks generate dlrs-alexnet dlrsalexnet --name=dlrsalexnet --image=${DLRS_IMAGE} ks apply default -c dlrsresnet50 ks apply default -c dlrsalexnet