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 Hanf41d01e74dd0
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex b60a10319cc..6098336e12d 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -78,7 +78,7 @@ def sft_trainer_prepare_dataset(function_name, function):" add_special_tokens = False if has_bos_token_already else add_special_tokens\n"check_text = check_text.split("\n")- check_text = "\n".join(" "*where + x for x in check_text)+ check_text = "\n".join(" "*4 + x for x in check_text)check_text = check_text.rstrip() + "\n"# .*? matches first match. .+? matches final match.