8000 [Bug]: LoRA微调时报错:--deepspeed: invalid dict value · Issue #311 · OpenBMB/MiniCPM · GitHub
[go: up one dir, main page]

Skip to content

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

Open

Description

@yt7589

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

  • 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

Activity

  1. added
    bug
    on Jul 27, 2025
  2. LDLINGLINGLING commented on Aug 4, 2025

    @LDLINGLINGLING
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

0