Merge pull request #347 from alex4321/peft-model-use-adapter-name
Use `adapter_name` for `get_gptq_peft_model` with `train_mode=True`
This commit is contained in:
commit
04db761eed
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ def get_gptq_peft_model(
|
|||
with hijack_peft_mappings():
|
||||
try:
|
||||
if train_mode:
|
||||
peft_model = get_peft_model(model.model, peft_config)
|
||||
peft_model = get_peft_model(model.model, peft_config, adapter_name=adapter_name)
|
||||
else:
|
||||
peft_model = PeftModel.from_pretrained(model.model, model_id, adapter_name)
|
||||
except:
|
||||
|
|
Loading…
Add table
Reference in a new issue