peft_config before model_config (#3342)
This commit is contained in:
parent
2af3c9c4da
commit
1aa16a8fb7
1 changed files with 2 additions and 2 deletions
|
|
@ -213,7 +213,7 @@ class FastLanguageModel(FastLlamaModel):
|
|||
peft_error = str(error)
|
||||
is_peft = False
|
||||
pass
|
||||
model_types = get_transformers_model_type(model_config or peft_config)
|
||||
model_types = get_transformers_model_type(peft_config or model_config)
|
||||
if len(model_types) == 1:
|
||||
model_type = model_types[0]
|
||||
else:
|
||||
|
|
@ -626,7 +626,7 @@ class FastModel(FastBaseModel):
|
|||
peft_error = str(error)
|
||||
is_peft = False
|
||||
pass
|
||||
model_types = get_transformers_model_type(model_config or peft_config)
|
||||
model_types = get_transformers_model_type(peft_config or model_config)
|
||||
model_types_all = ",".join(model_types)
|
||||
|
||||
# Check versions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue