Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove line addition since fixed upstream
  • Loading branch information
minimaxir committed Sep 17, 2019
1 parent 82e39db commit 5ef97f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install_gce.sh
Expand Up @@ -10,14 +10,14 @@ 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
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/"
Expand All @@ -26,4 +26,4 @@ else
fi

# Copy model
gsutil -m cp -r $URL .
gsutil -m cp -r "$URL" .

0 comments on commit 5ef97f9

Please sign in to comment.