Update loader.py
This commit is contained in:
parent
fd22687155
commit
ccf00d22b8
1 changed files with 1 additions and 0 deletions
|
|
@ -545,6 +545,7 @@ class FastModel(FastBaseModel):
|
|||
elif "olmo-2" in lowered_model_name and transformers_version < Version("4.50.0.dev0"):
|
||||
raise RuntimeError("Unsloth: OLMo-2 only works on transformers >= 4.50.0." + NIGHTLY)
|
||||
elif "gemma-3n" in lowered_model_name and transformers_version < Version("4.53.0"):
|
||||
os.environ["UNSLOTH_DISABLE_STATIC_GENERATION"] = "1"
|
||||
raise RuntimeError("Unsloth: Gemma 3N only works on transformers >= 4.53.0" + LATEST)
|
||||
else:
|
||||
for check_model_name in DISABLE_COMPILE_MODEL_NAMES:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue