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 rl_replacements.py (#1754)
Seth Weidmanc2938ccc832e
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 5fa4ec5a4f7..c8caa1b5855 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -268,7 +268,7 @@ def grpo_trainer_fix_batch_size(RLTrainer_source, RLConfig_source):check_batch_size = \"div = per_device_train_batch_size // num_generations\n"\"if div * num_generations != per_device_train_batch_size:\n"\- " print('Unsloth: We know expect `per_device_train_batch_size` to be a multiple of `num_generations`.\\n"\+ " print('Unsloth: We now expect `per_device_train_batch_size` to be a multiple of `num_generations`.\\n"\"We will change the batch size of ' + str(per_device_train_batch_size) + ' to the `num_generations` of ' + str(num_generations))\n"\" per_device_train_batch_size = num_generations\n"return check_batch_size