Update vision.py
This commit is contained in:
parent
658f23f3f6
commit
2a6fb83630
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ def unsloth_base_fast_generate(
|
|||
except: pass
|
||||
|
||||
# Mixed precision autocast
|
||||
# if os.environ.get("UNSLOTH_FORCE_FLOAT32", "0") == "1": dtype = torch.float32
|
||||
if os.environ.get("UNSLOTH_FORCE_FLOAT32", "0") == "1": dtype = torch.float32
|
||||
with torch.inference_mode(), torch.autocast(device_type = "cuda", dtype = dtype):
|
||||
output = self._old_generate(*args, **kwargs)
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue