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 Handd364f3b80db
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 584214e8014..7d46ea21b62 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -89,7 +89,10 @@ def sft_trainer_prepare_dataset(function_name, function):)if matched:# Use fast version!- return inspect.getsource(fast_sft_prepare_dataset)+ function = inspect.getsource(fast_sft_prepare_dataset)+ function = function.replace("def sft_prepare_dataset", "def _prepare_dataset")+ return function+ passpasscheck_text = \