Update loader.py
This commit is contained in:
parent
a374ec8203
commit
3a28a496e0
1 changed files with 1 additions and 0 deletions
|
|
@ -546,6 +546,7 @@ class FastModel(FastBaseModel):
|
|||
elif "olmo-2" in model_name.lower() and transformers_version < Version("4.50.0.dev0"):
|
||||
raise RuntimeError("Unsloth: OLMo-2 only works on transformers >= 4.50.0." + NIGHTLY)
|
||||
elif "whisper" in model_name.lower():
|
||||
os.environ["UNSLOTH_COMPILE_DISABLE"] = "1" # Whisper fails
|
||||
os.environ["UNSLOTH_DISABLE_STATIC_GENERATION"] = "1" # Whisper fails
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue