Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

download_model.sh 491 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  1. #!/bin/sh
  2. if [ "$#" -ne 1 ]; then
  3. echo "You must enter the model name as a parameter, e.g.: sh download_model.sh 117M"
  4. exit 1
  5. fi
  6. model=$1
  7. mkdir -p models/$model
  8. # TODO: gsutil rsync -r gs://gpt-2/models/ models/
  9. for filename in checkpoint encoder.json hparams.json model.ckpt.data-00000-of-00001 model.ckpt.index model.ckpt.meta vocab.bpe; do
  10. fetch=$model/$filename
  11. echo "Fetching $fetch"
  12. curl --output models/$fetch https://storage.googleapis.com/gpt-2/models/$fetch
  13. done
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...