You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to continue training from this checkpoint, so I need to instantiate a PeftModel and load the weights of the Lora adapter into it. However, my adapter weight file is in a subfolder of the checkpoint, so I use the following method.
System Info
peft 0.4.0.dev0
Who can help?
No response
Information
Tasks
examples
folderReproduction
Given a checkpoint folder as shown below.
LoraAdapter is the name I specified for the Lora adapter, which is a folder here containing the weight files and configuration files of the adapter.
I want to continue training from this checkpoint, so I need to instantiate a PeftModel and load the weights of the Lora adapter into it. However, my adapter weight file is in a subfolder of the checkpoint, so I use the following method.
But it cannot correctly find my Lora adapter weight file.
I think the problem is here.
peft/src/peft/peft_model.py
Lines 484 to 502 in 029f416
This method will put the 'subfolder' keyword argument into 'hf_hub_download_kwargs'.
So here
peft/src/peft/peft_model.py
Lines 519 to 522 in 029f416
The 'subfolder' parameter is not present in kwargs anymore.
Expected behavior
please fix
The text was updated successfully, but these errors were encountered: