CogVideo icon indicating copy to clipboard operation
CogVideo copied to clipboard

Load LoRA in cli_demo.py doesn't work

Open Vicky0522 opened this issue 10 months ago • 4 comments

System Info / 系統信息

I used the train_ddp_i2v.sh script to finetune LoRA, then loaded the saved LoRA weights with the --load_lora argument in cli_demo.py. However, the outputs look exactly the same as those produced without LoRA, despite seeing correct results during validation in the training process. It appears that the --load_lora option isn’t functioning as intended.

Information / 问题信息

  • [x] The official example scripts / 官方的示例脚本
  • [ ] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

  1. use train_ddp_i2v.sh script to finetune LoRA
  2. load LoRA via cli_demo.py

Expected behavior / 期待表现

The results should be the same as the results during validation in the training process.

Vicky0522 avatar Feb 19 '25 14:02 Vicky0522

Thought I was going insane when I saw such a difference between wandb and locally! Can confirm that this is a bug for me aswell.

holma91 avatar Feb 24 '25 18:02 holma91

We are reviewing this pull request and will respond soon.

zRzRzRzRzRzRzR avatar Feb 28 '25 04:02 zRzRzRzRzRzRzR

Hi, were you able to fully reproduce the validation results with the fix? Even after applying the scale correctly, there are still some difference...

JuheonYi avatar Mar 13 '25 08:03 JuheonYi

这个问题解决了吗

schhaohao avatar Mar 27 '25 07:03 schhaohao