Closed lyriccoder closed 2 years ago
Hi, you can download the tokenizer and model from here: https://huggingface.co/Salesforce/codet5-base-multi-sum/tree/main. For example, you can obtain the model checkpoint using wget https://huggingface.co/Salesforce/codet5-base-multi-sum/blob/main/pytorch_model.bin
.
Thanks for uploading the latest model for code summarization ( https://huggingface.co/Salesforce/codet5-base-multi-sum) I need to download the model (with wget) and then set it as a cache.
When I tried to use tokenizer by
tokenizer = RobertaTokenizer.from_pretrained('Salesforce/codet5-base-multi-sum')
, I get the following error:I cannot use that way since I have a proxy and I can use only
curl
orwget
. Each request inside python is blocked.Could you please tell me how is it possible to download and use a cached model and tokenizer?