`AttributeError: ‘PeftModelForCausalLM‘ object has no attribute ‘_unwrapped_old_generate‘` 发布时间:2026/10/9 1:24:19 在尝试跟视频做deepseek-8b做医疗模型的时候代码运行出现了这个问题实测在设置模型参数之前加一个FastLanguageModel.for_training(model) 就可以解决网上有的说更新unsloth ,我尝试之后是没有用处的。。。