This commit is contained in:
Nick
2019-09-19 11:12:35 -06:00
parent f18f99b606
commit fa7104f2cf
3 changed files with 5 additions and 9 deletions
-2
View File
@@ -259,7 +259,5 @@ class CTRLGenerator():
result = tokens_generated_so_far[prompt_length:]
except:
print("Error in generation")
return result
+4
View File
@@ -1,3 +1,7 @@
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud init
# Download the 512-length model if specified, 256-length otherwise
if [ "$1" = "512" ]
then
+1 -7
View File
@@ -15,13 +15,7 @@ patch -b "$FILE" estimator.patch
git clone https://github.com/glample/fastBPE.git
cd fastBPE
python setup.py install
cd ..
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud init
export CUDA_VISIBLE_DEVICES=0
cd ..
cd ../..
# Download the 512-length model if specified, 256-length otherwise
#if [ "$1" = "512" ]