xlnet-Pytorch icon indicating copy to clipboard operation
xlnet-Pytorch copied to clipboard

Model name 'bert-large-uncased' was not found in model name list (bert-base-uncased, bert-large-uncased, bert-base-cased, bert-large-cased, bert-base-multilingual-uncased, bert-base-multilingual-cased, bert-base-chinese).

Open 17764591637 opened this issue 6 years ago • 1 comments

can you help me ? D:\xlnet-Pytorch-master>python main.py Model name 'bert-large-uncased' was not found in model name list (bert-base-uncased, bert-large-uncased, bert-base-cased, bert-large-cased, bert-base-multilingual-uncased, bert-base-multilingual-cased, bert-base-chinese). We assumed 'https://s3.amazonaws.com/models.huggingface.co/bert/bert-large-uncased-vocab.txt' was a path or url but couldn't find any file associated to this path or url. Traceback (most recent call last): File "main.py", line 58, in model = xlnet.XLNet(n_token=len(sp.vocab), n_layer=6, n_head=4, d_head=8, AttributeError: 'NoneType' object has no attribute 'vocab'

17764591637 avatar Jul 29 '19 01:07 17764591637

you need to download the bert-base-uncased model , and then put it the a proper path and change the corresponding path in the code.

Dengdan-1999 avatar Nov 08 '24 13:11 Dengdan-1999