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.py
Daniel Han09d8c9b2caa1
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 85b66e3f809..48f04412fe2 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -519,7 +519,7 @@ def patch_functions(RLTrainer, trainer_file, RLTrainer_name, all_imports, importreplacer = replacer[0]vllm_setter = "\n" + " "*8 + \"if hasattr(model, 'vllm_engine') and "\- "hasattr(self.args, 'use_vllm') and (getattr(self.args, 'use_vllm', False) == False): "\+ "hasattr(args, 'use_vllm') and (getattr(args, 'use_vllm', False) == False): "\"args.use_vllm = True\n"init = init.replace(replacer, replacer + vllm_setter)pass