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 Hana0ed33d99a9a
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 968f2b19fd8..5da57c44bfc 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -115,6 +115,7 @@ def sft_trainer_compute_loss(function_name, function):if function_name != "compute_loss": return functionfunction = inspect.getsource(_sft_trainer_compute_loss)+ function = function.replace("def _sft_trainer_compute_loss", "def compute_loss")return functionpassRL_FUNCTIONS["sft_trainer"].append(sft_trainer_compute_loss)