Update vision.py

This commit is contained in:
Daniel Han 2025-03-14 05:54:57 -07:00
commit 4ca856fefd

View file

@ -137,7 +137,7 @@ def unsloth_base_fast_generate(
try: kwargs["pixel_values"] = kwargs["pixel_values"].to(dtype)
except: pass
print(kwargs)
print(kwargs.keys())
# Mixed precision autocast
if os.environ.get("UNSLOTH_FORCE_FLOAT32", "0") == "1": dtype = torch.float32