MiniCPM icon indicating copy to clipboard operation
MiniCPM copied to clipboard

[Bug]: LoRA微调时报错:--deepspeed: invalid dict value

Open yt7589 opened this issue 5 months ago • 1 comments

Is there an existing issue ? / 是否已有相关的 issue ?

  • [x] I have searched, and there is no existing issue. / 我已经搜索过了,没有相关的 issue。

Describe the bug / 描述这个 bug

我运行LoRA微调命令:bash ./lora_finetune_ocnli.sh,报错: finetune.py: error: argument --deepspeed: invalid dict value: 'configs/ds_config_zero3_offload.json'

To Reproduce / 如何复现

复现步骤:

cd MiniCPM/finetune
conda activate cpm # cpm是我为MiniCPM创建的虚拟环境
# 我已经运行此目录下pip install -r requirements.txt
bash ./lora_finetune_ocnli.sh

报如下错误:

finetune.py: error: argument --deepspeed: invalid dict value: 'configs/ds_config_zero3_offload.json'

注:我看了funetune.py文件,里面没有定义--deepspeed命令行参数。

Expected behavior / 期望的结果

可以正确启动LoRA微调过程

Screenshots / 截图

Image

Environment / 环境

- OS: [Ubuntu 22.04]
- Pytorch: [torch 2.7.1-cu126]
- CUDA: [CUDA 12.4]
- Device: [ A100 40G 4块]

Additional context / 其他信息

No response

yt7589 avatar Jul 27 '25 05:07 yt7589

您好,请先cd到MiniCPM/finetune的文件夹下

LDLINGLINGLING avatar Aug 04 '25 06:08 LDLINGLINGLING