Update vision.py
This commit is contained in:
parent
f45bddbdae
commit
23875a899a
1 changed files with 0 additions and 1 deletions
|
|
@ -185,7 +185,6 @@ class FastBaseModel:
|
|||
os.environ["UNSLOTH_FORCE_FLOAT32"] = "0"
|
||||
bnb_compute_dtype = dtype
|
||||
for disable_name in FORCE_FLOAT32:
|
||||
print(disable_name, model_type_arch)
|
||||
if disable_name.lower() == model_type_arch.lower() and dtype == torch.float16:
|
||||
print(f"Unsloth: Using float16 precision for {model_type_arch} won't work! Using float32.")
|
||||
os.environ["UNSLOTH_FORCE_FLOAT32"] = "1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue