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
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]8c21f54b7452
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex d38018ee1bc..e0d8cbcf25c 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -3011,6 +3011,7 @@ class FastLlamaModel:output_embeddings = model.get_output_embeddings()if input_embeddings is not None and output_embeddings is not None:+def _retie_parameter(target_module, source_module):if not hasattr(source_module, "weight"):return@@ -3029,9 +3030,9 @@ class FastLlamaModel:if hasattr(input_embeddings, "modules_to_save") and hasattr(output_embeddings, "modules_to_save"):- if hasattr(input_embeddings.modules_to_save, "default") and hasattr(- output_embeddings.modules_to_save, "default"- ):+ if hasattr(+ input_embeddings.modules_to_save, "default"+ ) and hasattr(output_embeddings.modules_to_save, "default"):_retie_parameter(output_embeddings.modules_to_save.default,input_embeddings.modules_to_save.default,