use fastmodel (#2987)
This commit is contained in:
parent
47c38c9aba
commit
c2ed0d8a99
1 changed files with 9 additions and 9 deletions
|
|
@ -320,15 +320,15 @@ class FastLanguageModel(FastLlamaModel):
|
|||
f"to obtain the latest transformers build, then restart this session."\
|
||||
)
|
||||
dispatch_model = FastQwen3Model if model_type == "qwen3" else FastQwen3MoeModel
|
||||
elif model_type == "falcon_h1":
|
||||
dispatch_model = FastFalconH1Model
|
||||
if not SUPPORTS_FALCON_H1:
|
||||
raise ImportError(
|
||||
f"Unsloth: Your transformers version of {transformers_version} does not support FalconH1.\n"\
|
||||
f"The minimum required version is 4.50.3.\n"\
|
||||
f'Try `pip install --upgrade "transformers>=4.50.3"`\n'\
|
||||
f"to obtain the latest transformers build, then restart this session."\
|
||||
)
|
||||
# elif model_type == "falcon_h1":
|
||||
# dispatch_model = FastFalconH1Model
|
||||
# if not SUPPORTS_FALCON_H1:
|
||||
# raise ImportError(
|
||||
# f"Unsloth: Your transformers version of {transformers_version} does not support FalconH1.\n"\
|
||||
# f"The minimum required version is 4.50.3.\n"\
|
||||
# f'Try `pip install --upgrade "transformers>=4.50.3"`\n'\
|
||||
# f"to obtain the latest transformers build, then restart this session."\
|
||||
# )
|
||||
# Temporary disable optimized Cohere until errors match
|
||||
# elif model_type == "cohere":
|
||||
# dispatch_model = FastCohereModel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue