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 Han56d3ea2a7af0
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex f3d5039a6ed..65138feb13d 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -110,7 +110,7 @@ def sft_trainer_compute_loss(function_name, function):)if len(replacer) != 0:replacer = replacer[0]- returner = " "*8 + "return (loss, outputs) if return_outputs else loss"+ returner = "\n" + " "*8 + "return (loss, outputs) if return_outputs else loss"function = function.replace(replacer, replacer + returner)passreturn function