gpt4 book ai didi

What's the difference between PeftModel.from_pretrained & get_peft_model in initiating a peft model?(在启动PEFT模型方面,PeftModel.from_PreTraded和Get_PEFT_Model有什么不同?)

转载 作者:bug小助手 更新时间:2023-10-24 19:33:58 28 4
gpt4 key购买 nike



In the examples from PEFT source code, I found two ways to load the model:

在PEFT源代码中的示例中,我发现了两种加载模型的方法:


model = PeftModel.from_pretrained(model, peft_model_id, device_map="auto", max_memory=max_memory)

model = get_peft_model(model, peft_config)

Is there any difference between them?

它们之间有什么不同吗?


Im expecting someone gonna help me to understand this

我期待着有人能帮我理解这一点


更多回答
优秀答案推荐
更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com