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 Hanb333b3064dc3
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 5c6cb0c643e..c98adfee86a 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(" "*4 + x for x in check_text)+ check_text = "\n".join(" "*8 + x for x in check_text)check_text = check_text.rstrip() + "\n"# .*? matches first match. .+? matches final match.