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 (#3990)
pluescluesc6de138e62be
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 8208dc922a0..410eee66e6d 100755--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -459,7 +459,7 @@ def grpo_trainer__generate_and_score_completions(function_name, function):function = function.replace(string_to_find, replacement_string)- if trl_version >= Version("0.25.0"):+ if trl_version >= Version("0.24.0"):# We replace the call using 'completions' with one using 'completions_text'string_to_find = " rewards_per_func = self._calculate_rewards(inputs, prompts, completions, completion_ids_list)"replacement_string = (