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

使用v2-1_768-ema-pruned.safetensors训练lora报错 #421

Open
too-difficult-to-study opened this issue Apr 28, 2024 · 2 comments
Open

Comments

@too-difficult-to-study
Copy link

请问大佬出现如下报错是为什么呀?
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for CLIPTextModel:
Unexpected key(s) in state_dict: "text_model.embeddings.position_ids".

@Elsa0333
Copy link

Elsa0333 commented May 8, 2024

我好像也是这样

@dmdomo
Copy link

dmdomo commented May 17, 2024

我也遇到同样的问题,通过降低transformers版本可以解决,
transformers==4.36.2
使用:
transformers==4.30.2

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

3 participants