Update loader.py
This commit is contained in:
parent
4f8027ad74
commit
0eba0ed5b3
1 changed files with 1 additions and 1 deletions
|
|
@ -543,7 +543,7 @@ class FastModel(FastBaseModel):
|
|||
raise RuntimeError("Unsloth: Granite Vision only works on transformers >= 4.50.0." + NIGHTLY)
|
||||
elif "csm-1b" in model_name.lower():
|
||||
os.environ["UNSLOTH_COMPILE_DISABLE"] = "0"
|
||||
os.environ["UNSLOTH_DISABLE_FAST_GENERATION"] = "1"
|
||||
os.environ["UNSLOTH_DISABLE_FAST_GENERATION"] = "0"
|
||||
os.environ["UNSLOTH_FORCE_CUSTOM_DTYPE"] = "torch.float16;if name.endswith(('_proj', 'fc1', 'fc2', 'codebook', 'head')): module.to(torch.float16)"
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue