Skip to content

OSError: Can't load tokenizer for 'bert-base-uncased' #39

Description

@orzgugu

Hello!
I ran python minigpt4_video_inference.py and reported an error File "/ home/pai/envs/goldfish/lib/python3.9 / site - packages/transformers/tokenization_utils_base. Py", line 2013, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for 'bert-base-uncased'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'bert-base-uncased' is the correct path to a directory containing all relevant files for a BertTokenizer tokenizer.
I refer to the methods on the Internet, and some say it is caused by the version of the transformers package, but I used the latest Transformers package or transformers==4.37.2 to solve this problem.
Looking forward to your reply and help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions