Former-commit-id: 8f44dce08aa809bb7d4ea0bd5f48ca1c56436044
This commit is contained in:
hiyouga 2024-04-24 05:10:07 +08:00
parent 1f99c367b3
commit 612ba26c4c

View File

@ -73,7 +73,7 @@ def load_unsloth_peft_model(
""" """
from unsloth import FastLanguageModel 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: try:
model, _ = FastLanguageModel.from_pretrained(**unsloth_kwargs) model, _ = FastLanguageModel.from_pretrained(**unsloth_kwargs)
except NotImplementedError: except NotImplementedError: