From 5ef97f9da474dc62b50f3c1e3b282a6bd16102bc Mon Sep 17 00:00:00 2001 From: Max Woolf Date: Mon, 16 Sep 2019 19:42:24 -0700 Subject: [PATCH] Remove line addition since fixed upstream --- install_gce.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_gce.sh b/install_gce.sh index 674888d..9e19148 100644 --- a/install_gce.sh +++ b/install_gce.sh @@ -10,7 +10,6 @@ sudo pip install Cython # Patch the TensorFlow estimator package FILE="/usr/local/lib/python2.7/dist-packages/tensorflow_estimator/python/estimator/keras.py" sudo patch -b "$FILE" estimator.patch -sudo awk 'NR==24{print "import tensorflow as tf"}7' "$FILE" > /tmp/out && sudo mv /tmp/out "$FILE" # Install fastBPE git clone https://github.com/glample/fastBPE.git @@ -18,6 +17,7 @@ cd fastBPE sudo python setup.py install cd .. +# Download the 512-length model if specified, 256-length otherwise if [ "$1" = "512" ] then URL="gs://sf-ctrl/seqlen512_v1.ckpt/" @@ -26,4 +26,4 @@ else fi # Copy model -gsutil -m cp -r $URL . +gsutil -m cp -r "$URL" .