Hello, everyone.
when using peft library,
Scenario
model = AutoModel.from_pretrained(“your_model”)
model = get_peft_model(model, lora_config)
model.save_pretrained(“my_dir”)
After executing the code above, let’s discuss the differences in the following approaches:
Approach 1
model = AutoModel.from_pretrained(“your_model”)
model = PeftModel.from_pretrained(model, “my_dir”)
Approach 2
model = AutoModel.from_pretrained(“your_model”)
model.load_adapter(“my_dir”)
what is different between the two approaches??