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
Fix missing code and support inputs_embeds only input. (#3623)
Mercury13b3e7e6a813
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex dde1ff98dfe..6e61b08c932 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -766,7 +766,7 @@ __DTYPE_MAP = {# https://github.com/huggingface/transformers/blob/main/src/transformers/models/llama/modeling_llama.py#L825def LlamaModel_fast_forward(self,- input_ids: torch.LongTensor,+ input_ids: Optional[torch.LongTensor] = None,causal_mask: Optional[BlockDiagonalCausalMask] = None,attention_mask: Optional[torch.Tensor] = None,position_ids: Optional[torch.LongTensor] = None,