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 Han8c5be02e29d3
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 5aabf15134c..88494df3d23 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -2665,13 +2665,6 @@ class FastLlamaModel:model.load_lora = functools.partial(load_lora, model)pass- # Patch generate- if model.generate.__name__ != "unsloth_fast_generate":- model._old_generate = model.generate- unsloth_fast_generate.__doc__ = model._old_generate.__doc__- model.generate = types.MethodType(unsloth_fast_generate, model)- pass-# Add for_inference and for_trainingmodel.for_training = functools.partial(FastLlamaModel.for_training, model)model.for_inference = functools.partial(FastLlamaModel.for_inference, model)