fix version

This commit is contained in:
hiyouga 2023-12-29 04:53:36 +08:00
parent 65c5b0477c
commit 47da742fc9
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def load_model_and_tokenizer(
model = None model = None
if is_trainable and model_args.use_unsloth: if is_trainable and model_args.use_unsloth:
require_version("unsloth==2023.12", "Follow the instructions at: https://github.com/unslothai/unsloth") require_version("unsloth", "Follow the instructions at: https://github.com/unslothai/unsloth")
from unsloth import FastLlamaModel, FastMistralModel # type: ignore from unsloth import FastLlamaModel, FastMistralModel # type: ignore
unsloth_kwargs = { unsloth_kwargs = {
"model_name": model_args.model_name_or_path, "model_name": model_args.model_name_or_path,