text: Title: 模型转换和合并:使用了merge_llama_with_chinese_lora.py合并时报错
  Body: *提示：将[ ]中填入x，表示打对钩。提问时删除这行。只保留符合的选项。*
  
  您好，有个问题想咨询一下：
  
  ### 详细描述问题
  合并模型7b
  完成第一步将原始llama转成hf格式
  在第二步合并时,命令:
  # python merge_llama_with_chinese_lora.py \
  #     --base_model /work/models/llama/llama-7b-combine/llama-7b-hf \
  #     --lora_model /work/models/llama/llama-7b-combine/chinese-llama-plus-lora-7b,
  #   /work/models/llama/llama-7b-combine/chinese-alpaca-plus-lora-7b \
  #     --output_type huggingface \
  #     --output_dir /work/models/llama/llama-7b-combine/llama-7b-merge
  错误如下：
  File ~/miniconda3/envs/chinese-llama/lib/python3.10/site-packages/peft/utils/save_and_load.py:123, in set_peft_model_state_dict(model, peft_model_state_dict, adapter_name)
      120 else:
      121     raise NotImplementedError
  --> 123 model.load_state_dict(peft_model_state_dict, strict=False)
      124 if isinstance(config, PromptLearningConfig):
      125     model.prompt_encoder[adapter_name].embedding.load_state_dict(
      126         {"weight": peft_model_state_dict["prompt_embeddings"]}, strict=True
      127     )
  
  File ~/miniconda3/envs/chinese-llama/lib/python3.10/site-packages/torch/nn/modules/module.py:1671, in Module.load_state_dict(self, state_dict, strict)
     1666         error_msgs.insert(
     1667             0, 'Missing key(s) in state_dict: {}. '.format(
     1668                 ', '.join('"{}"'.format(k) for k in missing_keys)))
     1670 if len(error_msgs) > 0:
  -> 1671     raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
     1672                        self.__class__.__name__, "\n\t".join(error_msgs)))
     1673 return _IncompatibleKeys(missing_keys, unexpected_keys)
  
  RuntimeError: Error(s) in loading state_dict for PeftModelForCausalLM:
  	size mismatch for base_model.model.model.embed_tokens.modules_to_save.default.weight: copying a param with shape torch.Size([49954, 4096]) from checkpoint, the shape in current model is torch.Size([49953, 4096]).
  	size mismatch for base_model.model.lm_head.modules_to_save.default.weight: copying a param with shape torch.Size([49954, 4096]) from checkpoint, the shape in current model is torch.Size([49953, 4096]).
  
  chinese-llama-plus-lora-7b 没问题
  chinese-alpaca-plus-lora-7b 报错
  
  模型于huggingface处下载
  
  阅读之前的问题：
  https://github.com/ymcui/Chinese-LLaMA-Alpaca/issues/12
  https://github.com/ymcui/Chinese-LLaMA-Alpaca/issues/281
  得知模型的size确实多一位，想问一下这里应该如何处理或参照哪片文章，合并后实际的size是否是[49954, 4096]
  
  *请尽量具体地描述您遇到的问题，**必要时给出运行命令**。这将有助于我们更快速地定位问题所在。*
  
  