ymcui / Chinese-LLaMA-Alpaca-2

中文LLaMA-2 & Alpaca-2大模型二期项目 + 64K超长上下文模型 (Chinese LLaMA-2 & Alpaca-2 LLMs with 64K long context models)
Apache License 2.0
7.01k stars 571 forks source link

1.3B 模型没有包含 pytorch_model.bin.index.json ,如何在调优后进行合并? #454

Closed reterVision closed 7 months ago

reterVision commented 7 months ago

提交前必须检查以下项目

问题类型

模型转换和合并

基础模型

Chinese-Alpaca-2 (7B/13B)

操作系统

Linux

详细描述问题

  File "/mnt/ai/Chinese-LLaMA-Alpaca-2/scripts/merge_llama2_with_chinese_lora_low_mem.py", line 326, in <module>
    with open(os.path.join(base_model_path, config),'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '../chinese-alpaca-2-1.3b/pytorch_model.bin.index.json'
iMountTai commented 7 months ago

pull一下最新代码,已修复该问题。