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 Han0651fe19ab03
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex fadae874dbc..048ec7bb027 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -566,8 +566,8 @@ passdef PatchFastRL(algorithm = None, FastLanguageModel = None):- return- # if FastLanguageModel is not None: PatchRL(FastLanguageModel)- # patch_trl_rl_trainers()- # if algorithm is not None: PatchRLStatistics(algorithm)+ if FastLanguageModel is not None: PatchRL(FastLanguageModel)+ patch_trl_rl_trainers()+ if type(algorithm) is str and algorithm.islower():+ PatchRLStatistics(algorithm)pass