Skip to content

Can't install sh_download_model.sh #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FatElmo opened this issue Feb 15, 2019 · 14 comments
Closed

Can't install sh_download_model.sh #22

FatElmo opened this issue Feb 15, 2019 · 14 comments

Comments

@FatElmo
Copy link

FatElmo commented Feb 15, 2019

Noob here (linguist, with rudimentary knowledge of computers) I've installed the gcloud sdk but I can't get the command: sh download_model.sh 117M to run. I get: 'sh' is not recognized as an internal or external command.
Any help would be greatly appreciated.

@dackdel
Copy link

dackdel commented Feb 15, 2019

what operating system are you running? https://www.youtube.com/watch?v=0AiqegwnskE

@FloridaPete
Copy link

FloridaPete commented Feb 15, 2019

I'm using Windows 10, 64x and had the exact same error when running: sh download_model.sh 117M
"sh is not recognized as an internal or external command."
I tried the linux path fix from dackdel, then received a different error when using the Google Cloud SDK shell: download_model.sh: download_model.sh: No such file or directory

Also tried:
gsutil cp -r dir gs://gpt-2/models/117M
gsutil cp -r dir gs://gpt-2/models/models
But get access denied to: storage.objects.list access to gpt-2.

@FatElmo
Copy link
Author

FatElmo commented Feb 15, 2019

what operating system are you running? https://www.youtube.com/watch?v=0AiqegwnskE

Sorry Win 7 64x

Thanks for the link dackdel, I'll watch it this afternoon

@sra4077
Copy link

sra4077 commented Feb 15, 2019

Hi,
I get "AccessDeniedException: 403 does not have storage.objects.list access to gpt-2." on each of the objects in the list.
I'm running gsutil on Mac OS X 10.14.2 (Mojave) via the gcloud command line install path suggested by the gsutil_install link quoted in READMEmd.
Can you move the objects to here? It might make life easier for those who don't need to use the gcloud cli. Alternatively, can you allow the required access permissions to gpt-2?
Thanks

@sra4077
Copy link

sra4077 commented Feb 15, 2019

Hi again,
While I was writing the above a notification came in with this in it:
"sh download_model.sh 117M"
adding the model name.

Thanks, that worked!

@FloridaPete
Copy link

Just to be clear, I was using exactly:
sh download_model.sh 117M
but still receive an error: download_model.sh: download_model.sh: No such file or directory

@xeb
Copy link

xeb commented Feb 16, 2019

For those who are receiving a 403, I re-ran gcloud init and that did it. Strange because I already had a gcloud configuration set.

@minkles
Copy link

minkles commented Feb 16, 2019

I'm getting "syntax error near unexpected token `do"

I'm running Mac OS X 10.14.2.

@loretoparisi
Copy link

loretoparisi commented Feb 16, 2019

There is not need to install the whole google-cloud-kit to download a file guys (it's 320MB!!!), you can just use this version that uses only curl and grep (macOS: pcregrep). It works on linux and macos for sure. If you are on Windows and you have grep it will work too. Unfortunately the PR was refused 😞

https://github.com/loretoparisi/gpt-2/blob/master/download_model.sh

@studiosi
Copy link

@loretoparisi apparently there is one on the queue that uses the publicly accesible storage API, #39

@WuTheFWasThat
Copy link
Contributor

script should be better now and doesn't have gsutil dependency!

@loretoparisi
Copy link

@WuTheFWasThat finally!

@wac81
Copy link

wac81 commented Feb 19, 2019

https://drive.google.com/uc?export=download&id=1Eskens0NNz4a6WvqDuIB2tP3QMQ186BY

you can direct download

@loretoparisi
Copy link

@wac81 yes exactly, this is the solution I have proposed since gdrive for a given id has a direct download link. By the way you cannot use curl in every case given the file size, but in any case it's very easy (see above).

jk2227 pushed a commit to jk2227/gpt-2 that referenced this issue Sep 13, 2019
jchwenger pushed a commit to jchwenger/gpt-2 that referenced this issue Jan 2, 2020
support run_name when calling generate via cli
jrl1373 pushed a commit to jrl1373/gpt-2 that referenced this issue Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants