参考:https://github.com/tloen/alpaca-lora/issues/609链接出的一个回答

https://github.com/slai-labs/get-beam/issues/94中将下段代码注释掉:

    model.state_dict = (
        lambda self, *_, **__: get_peft_model_state_dict(self, old_state_dict())
    ).__get__(model, type(model))
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐