Update vision.py
This commit is contained in:
parent
15a3d91675
commit
ee75d8b552
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ def unsloth_base_fast_generate(
|
|||
except: pass
|
||||
|
||||
# Mixed precision autocast
|
||||
with torch.inference_mode():
|
||||
with torch.inference_mode(), torch.autocast(device_type = "cuda", dtype = dtype):
|
||||
try:
|
||||
output = self._old_generate(*args, **kwargs)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue