PreSumm icon indicating copy to clipboard operation
PreSumm copied to clipboard

https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased-pytorch_model.bin

Open niu1970 opened this issue 5 years ago • 3 comments

[2020-05-16 17:18:03,584 INFO] https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased-pytorch_model.bin not found in cache or force_download set to True, downloading to /tmp/tmpq67imxb7

I have downloaded this.bin file and put it in the tmp file,why doesn't it?

niu1970 avatar May 16 '20 09:05 niu1970

This is not an error. It is just informing you that it is downloading the model to "/tmp/tmpq67imxb7"

SebastianVeile avatar May 21 '20 09:05 SebastianVeile

Yes, but I would like to ask if I can download it offline. There may be some problems with my network, so I can't download it online. Thank you!

niu1970 avatar May 21 '20 10:05 niu1970

Yes, you can Download the model from offical BERT Repo and then us in the .from_pretrained function the Path to your Local BERT MODEL instead 'bert-base-uncased'. For more Information see https://huggingface.co/transformers/main_classes/model.html#transformers.PreTrainedModel.from_pretrained

mq003 avatar Oct 29 '20 14:10 mq003