Facico / Chinese-Vicuna

Chinese-Vicuna: A Chinese Instruction-following LLaMA-based Model —— 一个中文低资源的llama+lora方案,结构参考alpaca
https://github.com/Facico/Chinese-Vicuna
Apache License 2.0
4.15k stars 420 forks source link

peft模型无法加载 #199

Open lucasjinreal opened 1 year ago

lucasjinreal commented 1 year ago
───────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: Error(s) in loading state_dict for PeftModelForCausalLM:
        Missing key(s) in state_dict: "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.q_proj.lora_A.default.weight", 
RuntimeError: Error(s) in loading state_dict for PeftModelForCausalLM:
        Missing key(s) in state_dict: "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.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.0.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.0.self_attn.k_proj.weight", "base_model.model.model.layers.0.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.0.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.0.self_attn.v_proj.weight", "base_model.model.model.layers.0.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.0.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.0.self_attn.o_proj.weight", "base_model.model.model.layers.0.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.0.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.0.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.0.mlp.gate_proj.weight", 
"base_model.model.model.layers.0.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.0.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.0.mlp.down_proj.weight", 
"base_model.model.model.layers.0.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.0.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.0.mlp.up_proj.weight", 
"base_model.model.model.layers.0.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.0.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.0.input_layernorm.weight", 
"base_model.model.model.layers.0.post_attention_layernorm.weight", "base_model.model.model.layers.1.self_attn.q_proj.weight", "base_model.model.model.layers.1.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.1.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.1.self_attn.k_proj.weight", "base_model.model.model.layers.1.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.1.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.1.self_attn.v_proj.weight", "base_model.model.model.layers.1.self_attn.v_proj.lora_A.default.weight", 
"el.model.layers.3.self_attn.o_proj.weight", "base_model.model.model.layers.3.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.3.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.3.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.3.mlp.gate_proj.weight", 
"base_model.model.model.layers.3.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.3.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.3.mlp.down_proj.weight", 
"base_model.model.model.layers.3.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.3.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.3.mlp.up_proj.weight", 
"base_model.model.model.layers.3.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.3.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.3.input_layernorm.weight", 
"base_model.model.model.layers.3.post_attention_layernorm.weight", "base_model.model.model.layers.4.self_attn.q_proj.weight", "base_model.model.model.layers.4.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.4.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.4.self_attn.k_proj.weight", "base_model.model.model.layers.4.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.4.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.4.self_attn.v_proj.weight", "base_model.model.model.layers.4.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.4.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.4.self_attn.o_proj.weight", "base_model.model.model.layers.4.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.4.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.4.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.4.mlp.gate_proj.weight", 
"base_model.model.model.layers.4.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.4.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.4.mlp.down_proj.weight", 
"base_model.model.model.layers.4.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.4.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.4.mlp.up_proj.weight", 
"base_model.model.model.layers.4.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.4.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.4.input_layernorm.weight", 
"base_model.model.model.layers.4.post_attention_layernorm.weight", "base_model.model.model.layers.5.self_attn.q_proj.weight", "base_model.model.model.layers.5.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.5.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.5.self_attn.k_proj.weight", "base_model.model.model.layers.5.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.5.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.5.self_attn.v_proj.weight", "base_model.model.model.layers.5.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.5.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.5.self_attn.o_proj.weight", "base_model.model.model.layers.5.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.5.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.5.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.5.mlp.gate_proj.weight", 
"base_model.model.model.layers.5.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.5.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.5.mlp.down_proj.weight", 
"base_model.model.model.layers.5.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.5.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.5.mlp.up_proj.weight", 
"base_model.model.model.layers.5.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.5.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.5.input_layernorm.weight", 
"base_model.model.model.layers.5.post_attention_layernorm.weight", "base_model.model.model.layers.6.self_attn.q_proj.weight", "base_model.model.model.layers.6.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.6.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.6.self_attn.k_proj.weight", "base_model.model.model.layers.6.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.7.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.7.input_layernorm.weight", 
"base_model.model.model.layers.7.post_attention_layernorm.weight", "base_model.model.model.layers.8.self_attn.q_proj.weight", "base_model.model.model.layers.8.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.8.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.8.self_attn.k_proj.weight", "base_model.model.model.layers.8.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.8.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.8.self_attn.v_proj.weight", "base_model.model.model.layers.8.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.8.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.8.self_attn.o_proj.weight", "base_model.model.model.layers.8.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.8.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.8.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.8.mlp.gate_proj.weight", 
"base_model.model.model.layers.8.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.8.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.8.mlp.down_proj.weight", 
"base_model.model.model.layers.8.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.8.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.8.mlp.up_proj.weight", 
"base_model.model.model.layers.8.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.8.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.8.input_layernorm.weight", 
"base_model.model.model.layers.8.post_attention_layernorm.weight", "base_model.model.model.layers.9.self_attn.q_proj.weight", "base_model.model.model.layers.9.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.9.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.9.self_attn.k_proj.weight", "base_model.model.model.layers.9.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.9.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.9.self_attn.v_proj.weight", "base_model.model.model.layers.9.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.9.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.9.self_attn.o_proj.weight", "base_model.model.model.layers.9.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.9.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.9.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.9.mlp.gate_proj.weight", 
"base_model.model.model.layers.9.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.9.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.9.mlp.down_proj.weight", 
"base_model.model.model.layers.9.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.9.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.9.mlp.up_proj.weight", 
"base_model.model.model.layers.9.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.9.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.9.input_layernorm.weight", 
"base_model.model.model.layers.9.post_attention_layernorm.weight", "base_model.model.model.layers.10.self_attn.q_proj.weight", "base_model.model.model.layers.10.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.10.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.10.self_attn.k_proj.weight", "base_model.model.model.layers.10.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.10.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.10.self_attn.v_proj.weight", "base_model.model.model.layers.10.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.10.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.10.self_attn.o_proj.weight", "base_model.model.model.layers.10.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.10.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.10.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.10.mlp.gate_proj.weight", 
"base_model.model.model.layers.10.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.10.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.10.mlp.down_proj.weight", 
"base_model.model.model.layers.10.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.10.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.10.mlp.up_proj.weight", 
"base_model.model.model.layers.10.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.10.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.10.input_layernorm.weight", 
"base_model.model.model.layers.10.post_attention_layernorm.weight", "base_model.model.model.layers.11.self_attn.q_proj.weight", "base_model.model.model.layers.11.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.11.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.11.self_attn.k_proj.weight", "base_model.model.model.layers.11.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.11.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.11.self_attn.v_proj.weight", "base_model.model.model.layers.11.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.11.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.11.self_attn.o_proj.weight", "base_model.model.model.layers.11.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.11.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.11.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.11.mlp.gate_proj.weight", 
"base_model.model.model.layers.11.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.11.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.11.mlp.down_proj.weight", 
"base_model.model.model.layers.11.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.11.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.11.mlp.up_proj.weight", 
"base_model.model.model.layers.11.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.11.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.11.input_layernorm.weight", 
"base_model.model.model.layers.11.post_attention_layernorm.weight", "base_model.model.model.layers.12.self_attn.q_proj.weight", "base_model.model.model.layers.12.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.12.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.12.self_attn.k_proj.weight", "base_model.model.model.layers.12.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.12.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.12.self_attn.v_proj.weight", "base_model.model.model.layers.12.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.12.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.12.self_attn.o_proj.weight", "base_model.model.model.layers.12.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.12.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.12.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.12.mlp.gate_proj.weight", 
"base_model.model.model.layers.12.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.12.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.12.mlp.down_proj.weight", 
"base_model.model.model.layers.12.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.12.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.12.mlp.up_proj.weight", 
"base_model.model.model.layers.12.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.12.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.12.input_layernorm.weight", 
"base_model.model.model.layers.12.post_attention_layernorm.weight", "base_model.model.model.layers.13.self_attn.q_proj.weight", "base_model.model.model.layers.13.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.13.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.13.self_attn.k_proj.weight", "base_model.model.model.layers.13.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.13.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.13.self_attn.v_proj.weight", "base_model.model.model.layers.13.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.13.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.13.self_attn.o_proj.weight", "base_model.model.model.layers.13.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.13.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.13.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.13.mlp.gate_proj.weight", 
"base_model.model.model.layers.13.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.13.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.13.mlp.down_proj.weight", 
"base_model.model.model.layers.13.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.13.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.13.mlp.up_proj.weight", 
"base_model.model.model.layers.13.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.13.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.13.input_layernorm.weight", 
"base_model.model.model.layers.13.post_attention_layernorm.weight", "base_model.model.model.layers.14.self_attn.q_proj.weight", "base_model.model.model.layers.14.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.14.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.14.self_attn.k_proj.weight", "base_model.model.model.layers.14.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.14.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.14.self_attn.v_proj.weight", "base_model.model.model.layers.14.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.14.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.14.self_attn.o_proj.weight", "base_model.model.model.layers.14.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.14.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.14.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.14.mlp.gate_proj.weight", 
"base_model.model.model.layers.14.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.14.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.14.mlp.down_proj.weight", 
"base_model.model.model.layers.14.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.14.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.14.mlp.up_proj.weight", 
"base_model.model.model.layers.14.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.14.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.14.input_layernorm.weight", 
"base_model.model.model.layers.14.post_attention_layernorm.weight", "base_model.model.model.layers.15.self_attn.q_proj.weight", "base_model.model.model.layers.15.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.15.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.15.self_attn.k_proj.weight", "base_model.model.model.layers.15.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.15.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.15.self_attn.v_proj.weight", "base_model.model.model.layers.15.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.15.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.15.self_attn.o_proj.weight", "base_model.model.model.layers.15.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.15.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.15.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.15.mlp.gate_proj.weight", 
"base_model.model.model.layers.15.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.15.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.15.mlp.down_proj.weight", 
"base_model.model.model.layers.15.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.15.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.15.mlp.up_proj.weight", 
"base_model.model.model.layers.15.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.15.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.15.input_layernorm.weight", 
"base_model.model.model.layers.15.post_attention_layernorm.weight", "base_model.model.model.layers.16.self_attn.q_proj.weight", "base_model.model.model.layers.16.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.16.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.16.self_attn.k_proj.weight", "base_model.model.model.layers.16.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.16.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.16.self_attn.v_proj.weight", "base_model.model.model.layers.16.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.16.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.16.self_attn.o_proj.weight", "base_model.model.model.layers.16.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.16.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.16.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.16.mlp.gate_proj.weight", 
"base_model.model.model.layers.16.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.16.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.16.mlp.down_proj.weight", 
"base_model.model.model.layers.16.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.16.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.16.mlp.up_proj.weight", 
"base_model.model.model.layers.16.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.16.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.16.input_layernorm.weight", 
"base_model.model.model.layers.16.post_attention_layernorm.weight", "base_model.model.model.layers.17.self_attn.q_proj.weight", "base_model.model.model.layers.17.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.17.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.17.self_attn.k_proj.weight", "base_model.model.model.layers.17.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.17.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.17.self_attn.v_proj.weight", "base_model."base_model.model.model.layers.21.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.21.mlp.down_proj.weight", 
"base_model.model.model.layers.21.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.21.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.21.mlp.up_proj.weight", 
"base_model.model.model.layers.21.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.21.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.21.input_layernorm.weight", 
"base_model.model.model.layers.21.post_attention_layernorm.weight", "base_model.model.model.layers.22.self_attn.q_proj.weight", "base_model.model.model.layers.22.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.22.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.22.self_attn.k_proj.weight", "base_model.model.model.layers.22.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.22.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.22.self_attn.v_proj.weight", "base_model.model.model.layers.22.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.22.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.22.self_attn.o_proj.weight", "base_model.model.model.layers.22.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.22.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.22.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.22.mlp.gate_proj.weight", 
"base_model.model.model.layers.22.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.22.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.22.mlp.down_proj.weight", 
"base_model.model.model.layers.22.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.22.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.22.mlp.up_proj.weight", 
"base_model.model.model.layers.22.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.22.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.22.input_layernorm.weight", 
"base_model.model.model.layers.22.post_attention_layernorm.weight", "base_model.model.model.layers.23.self_attn.q_proj.weight", "base_model.model.model.layers.23.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.23.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.23.self_attn.k_proj.weight", "base_model.model.model.layers.23.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.23.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.23.self_attn.v_proj.weight", "base_model.model.model.layers.23.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.23.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.23.self_attn.o_proj.weight", "base_model.model.model.layers.23.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.23.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.23.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.23.mlp.gate_proj.weight", 
"base_model.model.model.layers.23.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.23.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.23.mlp.down_proj.weight", 
"base_model.model.model.layers.23.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.23.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.23.mlp.up_proj.weight", 
"base_model.model.model.layers.23.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.23.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.23.input_layernorm.weight", 
"base_model.model.model.layers.23.post_attention_layernorm.weight", "base_model.model.model.layers.24.self_attn.q_proj.weight", "base_model.model.model.layers.24.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.24.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.24.self_attn.k_proj.weight", "base_model.model.model.layers.24.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.24.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.24.self_attn.v_proj.weight", "base_model.model.model.layers.24.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.24.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.24.self_attn.o_proj.weight", "base_model.model.model.layers.24.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.24.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.24.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.24.mlp.gate_proj.weight", 
"base_model.model.model.layers.24.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.24.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.24.mlp.down_proj.weight", 
"base_model.model.model.layers.24.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.24.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.24.mlp.up_proj.weight", 
"base_model.model.model.layers.24.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.24.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.24.input_layernorm.weight", 
"base_model.model.model.layers.24.post_attention_layernorm.weight", "base_model.model.model.layers.25.self_attn.q_proj.weight", "base_model.model.model.layers.25.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.25.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.25.self_attn.k_proj.weight", "base_model.model.model.layers.25.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.25.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.25.self_attn.v_proj.weight", "base_model.model.model.layers.25.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.25.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.25.self_attn.o_proj.weight", "base_model.model.model.layers.25.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.25.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.25.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.25.mlp.gate_proj.weight", 
"base_model.model.model.layers.25.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.25.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.25.mlp.down_proj.weight", 
"base_model.model.model.layers.25.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.25.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.25.mlp.up_proj.weight", 
"base_model.model.model.layers.25.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.25.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.25.input_layernorm.weight", 
"base_model.model.model.layers.25.post_attention_layernorm.weight", "base_model.model.model.layers.26.self_attn.q_proj.weight", "base_model.model.model.layers.26.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.26.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.26.self_attn.k_proj.weight", "base_model.model.model.layers.26.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.26.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.26.self_attn.v_proj.weight", "base_model.model.model.layers.26.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.26.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.26.self_attn.o_proj.weight", "base_model.model.model.layers.26.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.26.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.26.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.26.mlp.gate_proj.weight", 
"base_model.model.model.layers.26.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.26.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.26.mlp.down_proj.weight", 
"base_model.model.model.layers.26.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.26.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.26.mlp.up_proj.weight", 
"base_model.model.model.layers.26.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.26.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.26.input_layernorm.weight", 
"base_model.model.model.layers.26.post_attention_layernorm.weight", "base_model.model.model.layers.27.self_attn.q_proj.weight", "base_model.model.model.layers.27.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.27.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.27.self_attn.k_proj.weight", "base_model.model.model.layers.27.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.27.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.27.self_attn.v_proj.weight", "base_model.model.model.layers.27.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.27.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.27.self_attn.o_proj.weight", "base_model.model.model.layers.27.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.27.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.27.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.27.mlp.gate_proj.weight", 
"base_model.model.model.layers.27.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.27.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.27.mlp.down_proj.weight", 
"base_model.model.model.layers.27.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.27.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.27.mlp.up_proj.weight", 
"base_model.model.model.layers.27.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.27.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.27.input_layernorm.weight", 
"base_model.model.model.layers.27.post_attention_layernorm.weight", "base_model.model.model.layers.28.self_attn.q_proj.weight", "base_model.model.model.layers.28.self_attn.q_proj.lora_A.default.weight", 
"base_model.model.model.layers.28.self_attn.q_proj.lora_B.default.weight", "base_model.model.model.layers.28.self_attn.k_proj.weight", "base_model.model.model.layers.28.self_attn.k_proj.lora_A.default.weight", 
"base_model.model.model.layers.28.self_attn.k_proj.lora_B.default.weight", "base_model.model.model.layers.28.self_attn.v_proj.weight", "base_model.model.model.layers.28.self_attn.v_proj.lora_A.default.weight", 
"base_model.model.model.layers.28.self_attn.v_proj.lora_B.default.weight", "base_model.model.model.layers.28.self_attn.o_proj.weight", "base_model.model.model.layers.28.self_attn.o_proj.lora_A.default.weight", 
"base_model.model.model.layers.28.self_attn.o_proj.lora_B.default.weight", "base_model.model.model.layers.28.self_attn.rotary_emb.inv_freq", "base_model.model.model.layers.28.mlp.gate_proj.weight", 
"base_model.model.model.layers.28.mlp.gate_proj.lora_A.default.weight", "base_model.model.model.layers.28.mlp.gate_proj.lora_B.default.weight", "base_model.model.model.layers.28.mlp.down_proj.weight", 
"base_model.model.model.layers.28.mlp.down_proj.lora_A.default.weight", "base_model.model.model.layers.28.mlp.down_proj.lora_B.default.weight", "base_model.model.model.layers.28.mlp.up_proj.weight", 
"base_model.model.model.layers.28.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.28.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.28.input_layernorm.weight", 
"base_model.model.model.layers.28.post_attention_layernorm.weight", "base_model.model.model.layers.29.self_attn.q_proj.weight", "e_model.model.model.layers.31.mlp.up_proj.weight", 
"base_model.model.model.layers.31.mlp.up_proj.lora_A.default.weight", "base_model.model.model.layers.31.mlp.up_proj.lora_B.default.weight", "base_model.model.model.layers.31.input_layernorm.weight", 
"base_model.model.model.layers.31.post_attention_layernorm.weight", "base_model.model.model.norm.weight", "base_model.model.lm_head.weight". 
        Unexpected key(s) in state_dict: "base_model.model.model.layers.0.self_attn.q_proj.lora_A.weight", "base_model.model.model.layers.0.self_attn.q_proj.lora_B.weight", 
"base_model.model.model.layers.0.self_attn.k_proj.lora_A.weight", "base_model.model.model.layers.0.self_attn.k_proj.lora_B.weight", "base_model.model.model.layers.0.self_attn.v_proj.lora_A.weight", 
"base_model.model.model.layers.0.self_attn.v_proj.lora_B.weight", "base_model.model.model.layers.0.self_attn.o_proj.lora_A.weight", "base_model.model.model.layers.0.self_attn.o_proj.lora_B.weight", 
"base_model.model.model.layers.0.mlp.gate_proj.lora_A.weight", "base_model.model.model.layers.0.mlp.gate_proj.lora_B.weight", "base_model.model.model.layers.0.mlp.down_proj.lora_A.weight", 
"base_model.model.model.layers.0.mlp.down_proj.lora_B.weight", "base_model.model.model.layers.0.mlp.up_proj.lora_A.weight", "base_model.model.model.layers.0.mlp.up_proj.lora_B.weight", 
"base_model.model.model.layers.1.self_attn.q_proj.lora_A.weight", "base_model.model.model.layers.1.self_attn.q_proj.lora_B.weight", "base_model.model.model.layers.1.self_attn.k_proj.lora_A.weight", 
"base_model.model.model.layers.1.self_attn.k_proj.lora_B.weight", "base_model.model.model.layers.1.self_attn.v_proj.lora_A.weight", "base_model.model.model.layers.1.self_attn.v_proj.lora_B.weight", 
"base_model.model.model.layers.1.self_attn.o_proj.lora_A.weight", "base_model.model.model.layers.1.self_attn.o_proj.lora_B.weight", "base_model.model.model.layers.1.mlp.gate_proj.lora_A.weight", 
"base_model.model.model.layers.1.mlp.gate_proj.lora_B.weight", "base_model.model.model.layers.1.mlp.down_proj.lora_A.weight", "base_model.model.model.layers.1.mlp.down_proj.lora_B.weight", 
"base_model.model.model.layers.1.mlp.up_proj.lora_A.weight", "base_model.model.model.layers.1.mlp.up_proj.lora_B.weight", "base_model.model.model.layers.2.self_attn.q_proj.lora_A.weight", 
"base_model.model.model.layers.2.self_attn.q_proj.lora_B.weight", "base_model.model.model.layers.2.self_attn.k_proj.lora_A.weight", "base_model.model.model.layers.2.self_attn.k_proj.lora_B.weight", 
"base_model
"base_model.model.model.layers.23.self_attn.v_proj.lora_A.weight", "base_model.model.model.layers.23.self_attn.v_proj.lora_B.weight", "base_model.model.model.layers.23.self_attn.o_proj.lora_A.weight", 
"base_model.model.model.layers.23.self_attn.o_proj.lora_B.weight", "base_model.model.model.layers.23.mlp.gate_proj.lora_A.weight", "base_model.model.model.layers.23.mlp.gate_proj.lora_B.weight", 
"base_model.model.model.layers.23.mlp.down_proj.lora_A.weight", "base_model.model.model.layers.23.mlp.down_proj.lora_B.weight", "base_model.model.model.layers.23.mlp.up_proj.lora_A.weight", 
"base_model.model.model.layers.23.mlp.up_proj.lora_B.weight", "base_model.model.model.layers.24.self_attn.q_proj.lora_A.weight", "base_model.model.model.layers.24.self_attn.q_proj.lora_B.weight", 
"base_model.model.model.layers.24.self_attn.k_proj.lora_A.weight", "base_model.model.model.layers.24.self_attn.k_proj.lora_B.weight", "base_model.model.model.layers.24.self_attn.v_proj.lora_A.weight", 
"base_model.model.model.layers.24.self_attn.v_proj.lora_B.weight", "base_model.model.model.layers.24.self_attn.o_proj.lora_A.weight", "base_model.model.model.layers.24.self_attn.o_proj.lora_B.weight", 
"base_model.model.model.layers.24.mlp.gate_proj.lora_A.weight", "base_model.model.model.layers.24.mlp.gate_proj.lora_B.weight", "base_model.model.model.layers.24.mlp.down_proj.lora_A.weight", 
"base_model.model.model.layers.24.mlp.down_proj.lora_B.weight", "base_model.model.model.layers.24.mlp.up_proj.lora_A.weight", "base_model.model.model.layers.24.mlp.up_proj.lora_B.weight", 
"base_model.model.model.layers.25.self_attn.q_proj.lora_A.weight", "base_model.model.model.layers.25.self_attn.q_proj.lora_B.weight", "base_model.model.model.layers.25.self_attn.k_proj.lora_A.weight", 
"base_model.model.model.layers.25.self_attn.k_proj.lora_B.weight", "base_model.model.model.layers.25.self_attn.v_proj.lora_A.weight", "base_model.model.model.layers.25.self_attn.v_proj.lora_B.weight", 
"base_model.model.model.layers.25.self_attn.o_proj.lora_A.weight", "base_model.model.model.layers.25.self_attn.o_proj.lora_B.weight", "base_model.model.model.layers.25.mlp.gate_proj.lora_A.weight", 
"base_model.model.model.layers.25.mlp.gate_proj.lora_B.weight", "base_model.model.model.layers.25.mlp.down_proj.lora_A.weight", "base_model.model.model.layers.25.mlp.down_proj.lora_B.weight", 
"base_model.model.model.layers.25.mlp.up_proj.lora_A.weight", "base_model.model.model.layers.25.mlp.up_proj.lora_B.weight", "base_model.model.model.layers.26.self_attn.q_proj.lora_A.weight", 
"base_model.model.model.layers.26.self_attn.q_proj.lora_B.weight", "base_model.model.model.layers.26.self_attn.k_proj.lora_A.weight", "base_model.model.model.layers.26.self_attn.k_proj.lora_B.weight", 
"base_model.model.model.layers.26.self_attn.v_proj.lora_A.weight", "base_model.model.model.layers.26.self_attn.v_proj.lora_B.weight", "base_model.model.model.layers.26.self_attn.o_proj.lora_A.weight", 
"base_model.model.model.layers.26.self_attn.o_proj.lora_B.weight", "base_model.model.model.layers.26.mlp.gate_proj.lora_A.weight", "base_model.model.model.layers.26.mlp.gate_proj.lora_B.weight", 
"base_model.model.model.layers.26.mlp.down_proj.lora_A.weight", "base_model.model.model.layers.26.mlp.down_proj.lora_B.weight", "base_model.model.model.layers.26.mlp.up_proj.lora_A.weight", 
"base_model.model.model.layers.26.mlp.up_proj.lora_B.weight", "base_model.model.model.layers.27.self_attn.q_proj.lora_A.weight", "base_model.model.model.layers.27.self_attn.q_proj.lora_B.weight", 
"base_model.model.model.layers.27.self_attn.k_proj.lora_A.weight", "base_model.model.model.layers.27.self_attn.k_proj.lora_B.weight", "base_model.model.model.layers.27.self_attn.v_proj.lora_A.weight", 
"base_model.modeattn.q_proj.lora_B.weight", "base_model.model.model.layers.31.self_attn.k_proj.lora_A.weight", 
"base_model.model.model.layers.31.self_attn.k_proj.lora_B.weight", "base_model.model.model.layers.31.self_attn.v_proj.lora_A.weight", "base_model.model.model.layers.31.self_attn.v_proj.lora_B.weight", 
"base_model.model.model.layers.31.self_attn.o_proj.lora_A.weight", "base_model.model.model.layers.31.self_attn.o_proj.lora_B.weight", "base_model.model.model.layers.31.mlp.gate_proj.lora_A.weight", 
"base_model.model.model.layers.31.mlp.gate_proj.lora_B.weight", "base_model.model.model.layers.31.mlp.down_proj.lora_A.weight", "base_model.model.model.layers.31.mlp.down_proj.lora_B.weight", 
"base_model.model.model.layers.31.mlp.up_proj.lora_A.weight", "base_model.model.model.layers.31.mlp.up_proj.lora_B.weight". 
LZY-the-boys commented 1 year ago

这是因为peft的版本不一致,peft0.3.0之后lora添加了一个名字(default), 你改低下版本应该就行,我们的requirements.txt里边有提供对应版本

lucasjinreal commented 1 year ago

@LZY-the-boys 是 peft 没有对齐,还是dpeespeed没有对齐,我目前用的的确是 0.3.0,但是按照理论上来讲,最起码transformers保存的全中,peft升级了也得能加载,我是自己训的,不是老版本保存的lora