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

BertLMHeadModel.from_pretrained("bert-base-uncased", config=encoder_config) #47

Open
baipeng1 opened this issue Dec 25, 2024 · 0 comments

Comments

@baipeng1
Copy link

baipeng1 commented Dec 25, 2024

https://github.com/OpenMOSS/AnyGPT/blob/main/seed2/seed_qformer/blip2.py中的
Qformer = BertLMHeadModel.from_pretrained("bert-base-uncased", config=encoder_config)
加载预训练的bert时,由于服务器不能访问hugging face,所以自己提前下载了
https://huggingface.co/google-bert/bert-base-uncased/tree/main,
然后报错
Some weights of BertLMHeadModel were not initialized from the model checkpoint at 本地地址 and are newly initialized: xx
请问是我下载的bert-base-uncased不对吗?

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