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 Han70775fa74080
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex a31a4856760..dd6d805ec47 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1384,10 +1384,10 @@ def _wrap_fast_inference(generate, device_type, dtype, model):internal_model._flag_for_generation = True# Must patch accelerate for Xformers- if accelerate_new_send_to_device is not None:- import accelerate.utils.operations- accelerate.utils.operations.send_to_device = accelerate_new_send_to_device- pass+ # if accelerate_new_send_to_device is not None:+ # import accelerate.utils.operations+ # accelerate.utils.operations.send_to_device = accelerate_new_send_to_device+ # pass# For newer HF# kwargs["cache_implementation"] = "dynamic"@@ -1411,8 +1411,6 @@ def _wrap_fast_inference(generate, device_type, dtype, model):# Autocastedwith torch.autocast(device_type = device_type, dtype = dtype):- print(args)- print(kwargs)output = generate(*args, **kwargs)pass