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 Han7d669e8b18c0
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 55c2daa323f..7462d559443 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -79,7 +79,7 @@ def sft_trainer_prepare_dataset(function_name, function):function_name != "_prepare_dataset": return functionfast_sft_prepare_dataset = RL_REPLACEMENTS.get("sft_prepare_dataset", None)- if fast_sft_prepare_dataset is not None:+ if fast_sft_prepare_dataset is not None and "pack_examples" in function:params = inspect.signature(fast_sft_prepare_dataset).parameters.keys()params = ".*?".join(params)matched = re.match(