mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-14 23:58:11 +08:00
fix bug
Former-commit-id: 271c24d2c82d645fa9072e6de94ca38f20411537
This commit is contained in:
parent
c05027d14a
commit
ad24a2a0c9
@ -73,7 +73,7 @@ def load_unsloth_peft_model(
|
||||
"""
|
||||
from unsloth import FastLanguageModel
|
||||
|
||||
unsloth_kwargs = _get_unsloth_kwargs(config, model_args.adapter_name_or_path, model_args)
|
||||
unsloth_kwargs = _get_unsloth_kwargs(config, model_args.adapter_name_or_path[0], model_args)
|
||||
try:
|
||||
model, _ = FastLanguageModel.from_pretrained(**unsloth_kwargs)
|
||||
except NotImplementedError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user