Replies: 2 comments 1 reply
-
emm,哪个代码,给个复现,我们支持get_peft_model |
Beta Was this translation helpful? Give feedback.
-
我已解决数据传入为空问题,问题在于默认的remove_unused_columns=True上,这里引用我在别的项目上看到的回答:remove_unused_columns=True will remove the keys in the dataset that are not accepted by the models, which is decided by looking at the model forward signature. Your does not have any argument names (it takes ), that's why there is this bug. If you unpack that to use names like , , , the issue will disappear.RewardModelargsargslabelsinput_idsattention_mask,希望对看到这个问题的人有帮助。当然这个add_adapter我是借鉴别人的,别人也是遇到数据传入为空的问题,但是通过这个方法解决了,不过它的代码是微调llama的,所以这一方面还在研究。 |
Beta Was this translation helpful? Give feedback.
-
chatglm3不支持add_adapter的操作吗?我看llama可以,我使用get_peft_model来实现同样的功能,但是在之后的datacollator上我检查instances都是空的,但是上一步操作还是能看到打印出加载的数据的,有知道是怎么回事的请告诉我,谢谢!
Beta Was this translation helpful? Give feedback.
All reactions