From 14c6cd63a2c8a48c8dc60aa811558373486bdf7e Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Mon, 30 Jun 2025 06:53:28 -0700 Subject: [PATCH] Update vision.py --- unsloth/models/vision.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py index bff27a6d16..f0b0bdff1e 100644 --- a/unsloth/models/vision.py +++ b/unsloth/models/vision.py @@ -364,8 +364,8 @@ class FastBaseModel: correct_dtype = bnb_compute_dtype custom_datatype = _custom_datatype # Execute code as well - print(execute_code) - exec(execute_code) + if len(execute_code.strip()) != 0: + exec(execute_code) pass pass