baichuan-inc / Baichuan2

A series of large language models developed by Baichuan Intelligent Technology
https://huggingface.co/baichuan-inc
Apache License 2.0
4.03k stars 286 forks source link

baichuan2-7B-chat 微调使用TrainerCallback,报错 #402

Open JackMeiLong opened 2 months ago

JackMeiLong commented 2 months ago

baichuan2-7B-chat 微调使用TrainerCallback,报错 “ BaichuanForCausalLM object has no attribute 'save_checkpoint' ” 有知道如何应对的小伙伴吗?

zhyang2226 commented 22 hours ago

使用deepspeed或torchrun指令执行代码,不要直接用python