Files
Clover-Edition/generator/ctrl/download_model.sh
T
2019-09-19 11:12:35 -06:00

14 lines
283 B
Bash
Executable File

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
URL="gs://sf-ctrl/seqlen512_v1.ckpt/"
else
URL="gs://sf-ctrl/seqlen256_v1.ckpt/"
fi
gsutil -m cp -r "$URL" model