lora-scripts icon indicating copy to clipboard operation
lora-scripts copied to clipboard

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

Open too-difficult-to-study opened this issue 1 year ago • 2 comments

请问大佬出现如下报错是为什么呀? 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".

too-difficult-to-study avatar Apr 28 '24 04:04 too-difficult-to-study

我好像也是这样

Elsa0333 avatar May 08 '24 12:05 Elsa0333

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

dmdomo avatar May 17 '24 13:05 dmdomo