'It looks like the config file at 'bert-base-uncased' is not a valid JSON file?
Working fine for months, then I interrupted a "bert-large-cased"
download and the following code returns the error in the title:
from transformers import BertModel
BertModel.from_pretrained('bert-base-uncased')
I've tried:
- deleting .cache/transformers/...
- pip uninstall/reinstall transformers
- conda remove/install transformers
- completely reinstalling anaconda and my environment from scratch
Solution 1:[1]
You need to write AutoModel.from_pretrained('bert-base-cased')
.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | programming_demon |