Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
AutoModelForImageTextToText
Daniel Hanb78f12cff835
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex 9c5f706e9e5..876deaec532 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -428,9 +428,15 @@ from ..kernels import ()from .vision import FastBaseModelfrom transformers import (- AutoModelForVision2Seq,AutoModelForCausalLM,)+try:+ from transformers import AutoModelForImageTextToText+ AutoModelForVision2Seq = AutoModelForImageTextToText+except:+ from transformers import AutoModelForVision2Seq+pass+class FastModel(FastBaseModel):@staticmethoddiff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 19aeabb35bc..25085dcd7a3 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -15,11 +15,16 @@import torchfrom transformers import (BitsAndBytesConfig,- AutoModelForVision2Seq,AutoProcessor,AutoTokenizer,AutoModelForCausalLM,)+try:+ from transformers import AutoModelForImageTextToText+ AutoModelForVision2Seq = AutoModelForImageTextToText+except:+ from transformers import AutoModelForVision2Seq+passfrom .llama import *from ..kernels import (post_patch_loss_function,