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
Daniel Hane66792eb0565
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex a41ddc8f078..eca236cac97 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -237,7 +237,7 @@ RL_FUNCTIONS["grpo_trainer"].append(grpo_trainer__prepare_inputs)# Fix incorrect special tokens handling and truncation in older TRL versionsdef grpo_trainer__generate_and_score_completions(function_name, function):- if function_name != "_prepare_inputs": return function+ if function_name != "_generate_and_score_completions": return function# TRL 0.19.0 did skip_special_tokens = True which should be Falsefunction = function.replace(