CogVideo icon indicating copy to clipboard operation
CogVideo copied to clipboard

请问lora微调后模型的保存,以及使用方法可以做一个解释吗

Open SCHfighting opened this issue 1 year ago • 2 comments

System Info / 系統信息

1

Information / 问题信息

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

Reproduction / 复现过程

1

Expected behavior / 期待表现

1

SCHfighting avatar Aug 09 '24 07:08 SCHfighting

Model will be saved automatically according to save_interval you set. And to use new model, you only need to replace the load path with new one.

tengjiayan20 avatar Aug 09 '24 10:08 tengjiayan20

You need to modify the inference config: keep the network_config the same as sft config, i.e. add lora_config to the inference config. To avoid misunderstanding, we will update a new inference config for lora inference soon. WX20240812-140332

tengjiayan20 avatar Aug 12 '24 06:08 tengjiayan20