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
7k stars 570 forks source link

指令精调 #550

Closed dongziyu1016 closed 2 months ago

dongziyu1016 commented 3 months ago

提交前必须检查以下项目

问题类型

模型转换和合并

基础模型

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

操作系统

Linux

详细描述问题

# 请在此处粘贴运行代码(请粘贴在本代码块里)
对chinese-alpaca-2 7B 进行指令精调训练全新的lora权重 ,之后,将llama2-7B 和 chinese-alpaca-2的lora和训练得到的lora合并。
在合并模型时报错:不能识别第二个lora参数

python scripts/merge_llama2_with_chinese_lora_low_mem.py --base_model llama2 --lora_model (lora, scripts/training/output_dir/sft_lora_model) --output_type huggingface --output_dir new_model

依赖情况(代码类问题务必提供)

# 请在此处粘贴依赖情况(请粘贴在本代码块里)

运行日志或截图

# 请在此处粘贴运行日志(请粘贴在本代码块里)
<img width="707" alt="Snipaste_2024-03-25_20-21-01" src="https://github.com/ymcui/Chinese-LLaMA-Alpaca-2/assets/136042459/df4dc245-3b29-46d8-9642-a39fcba8303e">
iMountTai commented 3 months ago

应该是chinese-alpaca-2和训练得到的lora合并

dongziyu1016 commented 3 months ago

好的,非常感谢!

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.

github-actions[bot] commented 2 months ago

Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.