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