Hi,
This is a bug report for the Flaubert tokenizer.
The tokenizer_config.json of all models of the Flaubert model repo, for example: here has the wrong option name:
{
  "do_lower_case": true
}

while it should read do_lowercase, as expected by the FlaubertTokenizer. This results in all Flaubert models having case-sensitive tokenizers.
In my project (flaubert-base-uncased model) the bug first manifested itself in transformers v.4.4.0. Previous versions of transformers didn’t download this file, and I noticed it during the version upgrade. It may be related to Pull Request #10624, but I’m not at all sure here and it probably doesn’t really matter.
Thanks for correcting the bug and many thanks for the great library.

Environment info


transformers version: 4.4.0
Platform: Linux-5.4.0-80-generic-x86_64-with-glibc2.10
Python version: 3.8.8
PyTorch version (GPU?): 1.9.0a0+df837d0 (True)
Tensorflow version (GPU?): not installed (NA)
Using GPU in script?: Yes
Using distributed or parallel set-up in script?: No


Who can help
@thomwolf @patrickvonplaten