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 Han6f6a544b5c07
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 28352b415e1..30786ab6cf7 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -340,6 +340,7 @@ def patch_vllm(RLTrainer, trainer_file, RLTrainer_name, all_imports, imports):r"args.use_vllm = True\n\2",init, 1,)+ print(init)vllm_part = re.findall(r"(\n[\s]{8}"\@@ -354,6 +355,7 @@ def patch_vllm(RLTrainer, trainer_file, RLTrainer_name, all_imports, imports):vllm_part, args = vllm_part[0][0], vllm_part[0][1]# Strip all commentsnew_vllm_part = re.sub(r"\#[^\n]{1,}\n", "", vllm_part)+ print(new_vllm_part)# Get SamplingParamssampling_params = re.findall(@@ -363,6 +365,7 @@ def patch_vllm(RLTrainer, trainer_file, RLTrainer_name, all_imports, imports):flags = re.MULTILINE | re.DOTALL,)if len(sampling_params) != 1: return None+ print(sampling_params)sampling_params = sampling_params[0]# Replace with our vLLM engine