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 Hancbfa7a20f903
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 4ffd790d1e9..4ea36519d94 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -817,8 +817,8 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):" memory_gb_left = psutil.virtual_memory().available / (1024**3)\n"" if memory_gb_left <= 4: dataset_num_proc = 1 # Too risky, so set to 1\n"" elif memory_gb_left <= 6: dataset_num_proc = min(2, dataset_num_proc)\n"- " elif memory_gb_left <= 8: dataset_num_proc = min(4, dataset_num_proc)\n"- " elif memory_gb_left <= 12: dataset_num_proc = min(6, dataset_num_proc)\n"+ " elif memory_gb_left <= 10: dataset_num_proc = min(4, dataset_num_proc)\n"+ " elif memory_gb_left <= 14: dataset_num_proc = min(6, dataset_num_proc)\n")extra_args += num_proc_check