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 Han57e6b9ddcc90
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex d53c9606d2b..ac1b836673d 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -535,8 +535,8 @@ def patch_functions(RLTrainer, trainer_file, RLTrainer_name, all_imports, importsampling_params # Add spacesnew_vllm_part = \f"\n{' '*8}if {args}.use_vllm:\n{sampling_params} "\- f"if getattr(args, 'sampling_params', None) is None else "\- f"getattr(args, 'sampling_params', None)\n{' '*8}else:\n"+ f"if getattr(args, 'vllm_sampling_params', None) is None else "\+ f"getattr(args, 'vllm_sampling_params', None)\n{' '*8}else:\n"init = init.replace(vllm_part, new_vllm_part)passpass