There were missing keys in the checkpoint model loaded: ['base_model.model.model.embed_tokens.weight', 'base_model.model.model.layers.0.self_attn.q_proj.weight', 'base_model.model.model.layers.0.self_attn.k_proj.weight', 'base_model.model.model.layers.0.self_attn.v_proj.weight', ....]
程序在训练完成后,需要加载模型参数进行预测时会报错,如上:
我看了下您的代码,好像模型只会加载 LoRA的参数,而不加载LLaMa的参数,所以才会出现这样的问题。
请问一下,我这该怎么处理
There were missing keys in the checkpoint model loaded: ['base_model.model.model.embed_tokens.weight', 'base_model.model.model.layers.0.self_attn.q_proj.weight', 'base_model.model.model.layers.0.self_attn.k_proj.weight', 'base_model.model.model.layers.0.self_attn.v_proj.weight', ....] 程序在训练完成后,需要加载模型参数进行预测时会报错,如上: 我看了下您的代码,好像模型只会加载 LoRA的参数,而不加载LLaMa的参数,所以才会出现这样的问题。 请问一下,我这该怎么处理