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 Hanbbe37dcc51c4
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex c9ca3eb1e5d..5fa6b5de522 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1009,6 +1009,7 @@ def _unsloth_get_batch_samples(self, epoch_iterator, num_batches):except StopIteration:break+ print("NUM_ITMES = ", num_items_in_batch)if len(batch_samples) > 0 and "labels" in batch_samples[0]:try:num_items_in_batch = sum([(batch["labels"].ne(-100)).sum() for batch in batch_samples])