Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load my pretrained BERT. #29

Open
romasigo opened this issue Jul 11, 2023 · 0 comments
Open

Can't load my pretrained BERT. #29

romasigo opened this issue Jul 11, 2023 · 0 comments

Comments

@romasigo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant