InternLM / Tutorial

LLM&VLM Tutorial
1.35k stars 979 forks source link

第4节XTuner多模态微调报错You are using an old version of the checkpointing format that is deprecated #743

Closed Wangy-2 closed 4 months ago

Wangy-2 commented 4 months ago

![Uploading Xtuner.png…]() You are using an old version of the checkpointing format that is deprecated (We will also silently ignore gradient_checkpointing_kwargs in case you passed it).Please update to the new format on your modeling file. To use the new format, you need to completely remove the definition of the method _set_gradient_checkpointing in your model.

Wangy-2 commented 4 months ago

重新开环境安装依赖包依然报错。 /root/xtuner0117/xtuner/requirements/runtime.txt里是transformers>=4.36.0,!=4.38.0,!=4.38.1,!=4.38.2,环境安装的是4.41.2。 考虑降版本pip install transformers==4.37.0,成功!