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
Update llama.py
Daniel Han91bdf2772936
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex d18dd4ce9fe..048ba69193a 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1628,7 +1628,7 @@ class FastLlamaModel:# Torch.compile fails on embedding matrix??# Workaround randomnly fixes it for torch versions < 2.- # model.set_input_embeddings(torch.nn.Embedding.from_pretrained(model.get_input_embeddings().weight))+ model.set_input_embeddings(torch.nn.Embedding.from_pretrained(model.get_input_embeddings().weight))model.config.update({"unsloth_version" : __version__})# We also do this for the lm_head