In the examples from PEFT source code, I found two ways to load the model:
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