Skip to content

Can't load my pretrained BERT. #29

@romasigo

Description

@romasigo

Hello.

I want to run your code using another pretrained BERT from https://huggingface.co/indobenchmark/indobert-large-p2. In ner.py, I have write the specific pretrained model path like this

model = BERT_BiLSTM_CRF.from_pretrained("/indobenchmark/indobert-large-p2", config=config, 
             need_birnn=args.need_birnn, rnn_dim=args.rnn_dim)

But I got error shown below:
error

Can't you suggest how to solve this issue?

Thanks before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions