Files
gpt-2/download_model.sh

14 lines
410 B
Bash
Raw Normal View History

2019-02-15 10:48:19 -08:00
if [ "$#" -ne 1 ]; then
echo "You must enter the model name as a parameter, e.g.: sh download_model.sh 117M"
exit 1
fi
2019-02-14 09:12:05 -08:00
model=$1
2019-02-14 11:36:43 -08:00
mkdir -p models/$model
2019-02-14 09:12:05 -08:00
# TODO: gsutil rsync -r gs://gpt-2/models/ models/
for filename in checkpoint encoder.json hparams.json model.ckpt.data-00000-of-00001 model.ckpt.index model.ckpt.meta vocab.bpe; do
2019-02-14 11:00:28 -08:00
gsutil cp gs://gpt-2/models/$model/$filename models/$model
2019-02-14 09:12:05 -08:00
done