diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index 90b5917b5f..ab53811f49 100644 --- a/unsloth/models/_utils.py +++ b/unsloth/models/_utils.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "2025.3.16" +__version__ = "2025.3.17" __all__ = [ "SUPPORTS_BFLOAT16", diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py index cd59e0365d..670e082580 100644 --- a/unsloth/models/loader.py +++ b/unsloth/models/loader.py @@ -646,7 +646,8 @@ def from_pretrained( # Set forced float32 env flag os.environ["UNSLOTH_FORCE_FLOAT32"] = "0" do_forced_float32 = False - model_type_arch = model_types[1] + for model_type_arch in model_types: + if model_type_arch != "siglip": break global FORCE_FLOAT32 for disable_name in FORCE_FLOAT32: if (disable_name.lower() == model_type_arch.lower() or \