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

CPT pretrain problem #66

Open
SunyanGu opened this issue Mar 15, 2023 · 3 comments
Open

CPT pretrain problem #66

SunyanGu opened this issue Mar 15, 2023 · 3 comments

Comments

@SunyanGu
Copy link

when I use roberta_zh to pretrain CPT model , raise error "Error(s) in loading state_dict for BertModel". So what pretrained model shoud i use? Roberta or BERT ?

@choosewhatulike
Copy link
Member

If you use roberta_zh with transformers, it would have the same architecture as BERT. And it should work.

@SunyanGu
Copy link
Author

I'm sure that I use transformers to load roberta_zh.But the model which I download have error parameter name. Can you give me a link to download right roberta_zh?

@choosewhatulike
Copy link
Member

This should work: https://huggingface.co/hfl/chinese-roberta-wwm-ext

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

2 participants