在 lora 微调后合并模型时出错
作者: GuoDragon创建于 2025年5月14日更新于 2025年5月14日
在进行 lora 微调合并模型时,使用 CUDA_VISIBLE_DEVICES=0 llamafactory-cli export --model_name_or_path ......../chatglm3-6b --adapter_name_or_path ....../lora/sft --template chatglm3 --trust_remote_code --finetuning_type lora --export_dir ......../lora/merged_model --export_size 1 --export_device cpu --export_legacy_format true 会报错 ValueError: Dict is not supported.
内容来源: zai-org/ChatGLM3