[model] add kimi vl 2506 (#8432)

This commit is contained in:
Yaowei Zheng
2025-06-23 17:56:48 +08:00
committed by GitHub
parent 4e0efdb48b
commit 477bed6f89
4 changed files with 36 additions and 30 deletions

View File

@@ -80,7 +80,10 @@ def get_unsloth_peft_model(
def load_unsloth_peft_model(
config: "PretrainedConfig", model_args: "ModelArguments", finetuning_args: "FinetuningArguments", is_trainable: bool
config: "PretrainedConfig",
model_args: "ModelArguments",
finetuning_args: "FinetuningArguments",
is_trainable: bool,
) -> "PreTrainedModel":
r"""Load peft model with unsloth. Used in both training and inference."""
from unsloth import FastLanguageModel # type: ignore