google-research/text-to-text-transfer-transformer

t5 version 0.9.3 How to use local sentencepiece.model instead of online to download in some offline environment??

flyingwaters opened this issue · 0 comments

THE ISSUES SECTION IS ONLY FOR FILING BUGS. PLEASE ASK YOUR QUESTION ON THE DISCUSSION TAB.
I find the history answer ,
###########
--gin_param="tsv_dataset_fn.vocabulary = SentencePieceVocabulary()" \
--gin_param="SentencePieceVocabulary.sentencepiece_model_file = '/raid/yiptmp/huggingface-models/t5.1.1.lm100k.xxl'"
#################
It only work when t5 == 0.7.1 but the latest 0.9.3 don't work
It create some bugs . It seems to get some metadata from cloud which will not be met in offline environs.
#######the bugs content is below, ################
2022-03-08 22:34:21.413592: W tensorflow/core/platform/cloud/google_auth_provider.cc:184] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "NOT_FOUND: Could not locate the credentials file.". Retrieving token from GCE failed with "FAILED_PRECONDITION: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Could not resolve host: metadata".