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 Hanf1b158bddac3
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 7d46ea21b62..55c2daa323f 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -90,6 +90,8 @@ def sft_trainer_prepare_dataset(function_name, function):if matched:# Use fast version!function = inspect.getsource(fast_sft_prepare_dataset)+ function = function.split("\n")+ function = "\n".join(" "*4 + x for x in function)function = function.replace("def sft_prepare_dataset", "def _prepare_dataset")return functionpass