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 Hand6ff188cec76
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex fe1587f56bd..c7858703069 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -308,7 +308,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):sampling_params = sampling_params[0]# Replace with our vLLM enginesampling_params = \- " "*8 + "self.llm = model.vllm_engine; " + \+ " "*8 + "self.llm = model.vllm_engine; self._last_loaded_step = 0; " + \sampling_params # Add spacesnew_vllm_part = f"\n if {args}.use_vllm:\n{sampling_params}\n else:\n"__init__ = __init__.replace(vllm_part, new_vllm_part)