baichuan-inc / Baichuan2

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

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

Open JackMeiLong opened 7 months ago

JackMeiLong commented 7 months ago

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

zhyang2226 commented 4 months ago

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