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
Lower default weight_decay in RL config from 0.01 to 0.001 (#5747)
Daniel Han56e9046b2ffd
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 7b7c3ac1a49..c82c8364b34 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -1312,7 +1312,9 @@ def _patch_trl_rl_trainers_impl(trainer_file = "grpo_trainer"):"logging_nan_inf_filter": False,"per_device_train_batch_size": 4,"gradient_accumulation_steps": 2,- "weight_decay": 0.01,+ # LoRA decays A and B toward 0 so effective W = W_init + (alpha/r) * B @ A is pulled toward W_init, not 0 as in full FT.+ # 0.001 keeps a small Frobenius prior |A|_F^2 + |B|_F^2 without measurably dragging the merged adapter back to base.+ "weight_decay": 0.001,"seed": 3407,"optim": "adamw_8bit","learning_rate": 5e-05,