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 Han-Chen9714bf74382d
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex e4b5118e629..1f0046ec06b 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -614,7 +614,7 @@ class FastLlamaModel:rope_scaling = None,):SUPPORTS_BFLOAT16 = torch.cuda.is_bf16_supported()- print_unsloth_message("Mistral")+ print_unsloth_message("Llama")FastLlamaModel.pre_patch()if dtype is None:@@ -734,6 +734,7 @@ class FastLlamaModel:use_gradient_checkpointing = True,random_state = 3407,max_seq_length = 2048,+ **kwargs,):assert(max_seq_length <= model.max_seq_length)@@ -759,6 +760,7 @@ class FastLlamaModel:bias = "none",task_type = TaskType.CAUSAL_LM,layers_to_transform = layers_to_transform,+ **kwargs,)model = prepare_model_for_kbit_training(