MiniCPM-V icon indicating copy to clipboard operation
MiniCPM-V copied to clipboard

[BUG] resampler frozen while LoRA finetuning

Open Fr0do opened this issue 1 year ago • 0 comments

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • [X] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • [X] 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

With default config resampler is neither a LoRA module nor unfrozen for full finetuning. Seems to be the fixable by adding modules_to_save=['resampler'], to LoraConfig.

期望行为 | Expected Behavior

Resampler is finetuned during LoRA training.

复现方法 | Steps To Reproduce

run finetune_lora.sh

运行环境 | Environment

requirements.txt

备注 | Anything else?

No response

Fr0do avatar Jun 07 '24 11:06 Fr0do