fix downloading
This commit is contained in:
@ -10,12 +10,12 @@ See more details in our [blog post](https://blog.openai.com/better-language-mode
|
|||||||
|
|
||||||
Download the model data (needs [gsutil](https://cloud.google.com/storage/docs/gsutil_install)):
|
Download the model data (needs [gsutil](https://cloud.google.com/storage/docs/gsutil_install)):
|
||||||
```
|
```
|
||||||
mkdir models && gsutil rsync -r gs://gpt-2/models/ models/
|
sh download_model.sh 117M
|
||||||
```
|
```
|
||||||
|
|
||||||
Install python packages:
|
Install python packages:
|
||||||
```
|
```
|
||||||
pip install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
## Sample generation
|
## Sample generation
|
||||||
|
8
download_model.sh
Normal file
8
download_model.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
model=$1
|
||||||
|
|
||||||
|
mkdir models/$model
|
||||||
|
|
||||||
|
# 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
|
||||||
|
gsutil cp gs://gpt-2/models/$model/$filename models/$model/
|
||||||
|
done
|
Reference in New Issue
Block a user