dmlc / gluon-nlp

NLP made easy
https://nlp.gluon.ai/
Apache License 2.0
2.55k stars 538 forks source link

Downloading problem of model weights #1522

Closed sxjscience closed 3 years ago

sxjscience commented 3 years ago

Description

I met the downloading error if the instance has not configured for S3:

Downloading /home/jovyan/.gluonnlp/models/google_electra_base/vocab-e6d2b21d.json from s3://gluonnlp-numpy-data/models/google_electra_base/vocab-e6d2b21d.json...
download failed due to ClientError('An error occurred (403) when calling the HeadObject operation: Forbidden'), retrying, 4 attempts left
Downloading /home/jovyan/.gluonnlp/models/google_electra_base/vocab-e6d2b21d.json from s3://gluonnlp-numpy-data/models/google_electra_base/vocab-e6d2b21d.json...
download failed due to ClientError('An error occurred (403) when calling the HeadObject operation: Forbidden'), retrying, 3 attempts left
Downloading /home/jovyan/.gluonnlp/models/google_electra_base/vocab-e6d2b21d.json from s3://gluonnlp-numpy-data/models/google_electra_base/vocab-e6d2b21d.json...
download failed due to ClientError('An error occurred (403) when calling the HeadObject operation: Forbidden'), retrying, 2 attempts left
Downloading /home/jovyan/.gluonnlp/models/google_electra_base/vocab-e6d2b21d.json from s3://gluonnlp-numpy-data/models/google_electra_base/vocab-e6d2b21d.json...
download failed due to ClientError('An error occurred (403) when calling the HeadObject operation: Forbidden'), retrying, 1 attempt left
Downloading /home/jovyan/.gluonnlp/models/google_electra_base/vocab-e6d2b21d.json from s3://gluonnlp-numpy-data/models/google_electra_base/vocab-e6d2b21d.json...

@leezu Would you have any idea about why's the case?

leezu commented 3 years ago

The error is due to misconfigured environment (no permission given to download from S3). Thanks for adding the fix