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 Hane27029455055
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 781f5984d43..aaa5b721420 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -153,10 +153,10 @@ def grpo_trainer__get_per_token_logps(function_name, function):if function_name != "_get_per_token_logps": return function# Set attention_mask to boolean- function = function.replace(- "attention_mask=attention_mask",- "attention_mask=attention_mask.to(torch.bool)"- )+ # function = function.replace(+ # "attention_mask=attention_mask",+ # "attention_mask=attention_mask.to(torch.bool)"+ # )return functionpassRL_FUNCTIONS["grpo_trainer"].append(grpo_trainer__get_per_token_logps)