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 _utils.py
Daniel Hanb7131a069707
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 377db89cc07..a21fdd857c4 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -958,10 +958,10 @@ def _unsloth_get_batch_samples(self, epoch_iterator, num_batches):# Check if model allows **kwargsm = self.model- while hasattr(m, "model"):- # Stop at last model entry- if not hasattr(m, "model") or not hasattr(m, "forward"): break- m = m.model+ # while hasattr(m, "model"):+ # # Stop at last model entry+ # if not hasattr(m, "model") or not hasattr(m, "forward"): break+ # m = m.modelsignature = inspect.signature(m.forward).parameters.values()has_kwargs = tuple(signature)[-1].kind == inspect._VAR_KEYWORDprint(m.forward, signature, has_kwargs)