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
Bug fixes (#2807)
Daniel Han9746799feb6d
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex e03f50baa97..34a61e250d4 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -153,6 +153,8 @@ from transformers.training_args import logger as transformers_training_args_loggtransformers_training_args_logger.addFilter(HideLoggingMessage("The speedups"))# torch.distributed process group is initialized, but parallel_mode != ParallelMode.DISTRIBUTED.transformers_training_args_logger.addFilter(HideLoggingMessage("torch.distributed"))+# average_tokens_across_devices is set to True but it is invalid when world size is1+transformers_training_args_logger.addFilter(HideLoggingMessage("average_tokens_across_devices"))del transformers_training_args_logger# No label_names provided for model classdiff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex b0f485d90e5..8dca4837830 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -722,6 +722,8 @@ class FastBaseModel:pass# Must disable returning hidden states in the case for GRPOos.environ["UNSLOTH_RETURN_HIDDEN_STATES"] = "0"+ # Must enable returning logits+ os.environ["UNSLOTH_RETURN_LOGITS"] = "1"return modelpass@@ -760,6 +762,8 @@ class FastBaseModel:embeddings = model.get_output_embeddings()if hasattr(embeddings, "training"): embeddings.training = Truepass+ # Can re-enable not returning logits+ os.environ["UNSLOTH_RETURN_LOGITS"] = "0"return modelpasspass