Skip to content

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.

Colocate vLLM

Daniel Hana66f3f4cda37
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py
index 5d2270810c7..914d403f6bf 100644
--- a/unsloth/models/rl.py
+++ b/unsloth/models/rl.py
@@ -440,6 +440,9 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
"torch_empty_cache_steps" : 250,
"logging_steps" : 1,
"max_seq_length" : None,
+ "num_generations" : 8,
+ "top_k" : None,
+ "vllm_mode" : "colocate",
}
for k, v in replacements.items():
x = f"{k}( = [^,\n]{{1,}})?,\n"