shibing624 / MedicalGPT

MedicalGPT: Training Your Own Medical GPT Model with ChatGPT Training Pipeline. 训练医疗大模型,实现了包括增量预训练(PT)、有监督微调(SFT)、RLHF、DPO、ORPO。
Apache License 2.0
2.94k stars 452 forks source link

chatglm2-6b预训练合并权重后,推理加载,AttributeError: can't set attribute #332

Closed weedon666 closed 3 months ago

weedon666 commented 4 months ago

Describe the bug

Please provide a clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem, especially for visualization related problems. 【预训练及lora合并后模型文件目录】 image

【报错信息】 image

【版本】 transformers 4.37.2

shibing624 commented 4 months ago

看你报错里面用的chatglm3-6b-1

weedon666 commented 4 months ago

是的,目录见图1。chatglm3-6b-1是我预训练合并后的模型