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 Han2dae012308a6
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 8ccdeba3536..f24b6b7e17e 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -2222,7 +2222,7 @@ class FastLlamaModel:bias = "none",layers_to_transform = None,layers_pattern = None,- use_gradient_checkpointing = True,+ use_gradient_checkpointing = "unsloth",random_state = 3407,max_seq_length = 2048, # not used anymoreuse_rslora = False,@@ -2679,7 +2679,7 @@ class FastLlamaModel:@staticmethoddef patch_peft_model(model,- use_gradient_checkpointing = True,+ use_gradient_checkpointing = "unsloth",):if os.environ.get("UNSLOTH_USE_NEW_MODEL", "0") == "1":return FastBaseModel.patch_peft_model(