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

finetune之后的模型使用 #546

Closed xiaoToby closed 2 months ago

xiaoToby commented 3 months ago

提交前必须检查以下项目

问题类型

模型训练与精调

基础模型

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

操作系统

None

详细描述问题

# 请在此处粘贴运行代码(请粘贴在本代码块里)

使用finetune之后的模型(output/checkpoint-400),把finetune前的原始模型删掉后,运行失败。因为在adapter_config.json文件中有base_model_name_or_path,运行finetune之后的模型还是会读取这个路径,报OSError: Can't load the configuration of ‘xxx’错误。 我的问题是,因为想在容器环境内运行,不想让容器太辎重了,所以删掉了原始模型,我想问为什么还是会要读取原始模型?

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

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

运行日志或截图

# 请在此处粘贴运行日志(请粘贴在本代码块里)
iMountTai commented 3 months ago

finetune之后的模型(output/checkpoint-400)生成的是lora,需要和原始模型合并使用,你把原模型删了,肯定出错啊。

github-actions[bot] commented 3 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.