diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py index 711476b759..58f5f4811c 100644 --- a/unsloth/models/loader.py +++ b/unsloth/models/loader.py @@ -106,6 +106,7 @@ "gemma3text", # Gemma3TextModel (EmbeddingGemma, standalone text-only Gemma3) "gemma3n", "gpt_oss", + "qwen3_5", # Qwen3.5 RMSNorm uses (1+w) pattern like Gemma3, overflows float16 ] global DISABLE_COMPILE_MODEL_NAMES diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py index 5aea471263..28c624c213 100644 --- a/unsloth/models/vision.py +++ b/unsloth/models/vision.py @@ -1054,6 +1054,7 @@ def from_pretrained( do_forced_float32 = do_forced_float32, correct_dtype = correct_dtype, ) + try: model, tokenizer = patch_tokenizer(model, tokenizer) except Exception as _patch_err: