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
Auto patching
Daniel Han2aa87bd8f144
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex a337472a3e2..c50f65e4bd9 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -2739,3 +2739,5 @@ class FastLlamaModel:passpass+from .rl import PatchFastRL+PatchFastRL(FastLanguageModel = FastLlamaModel)diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex e89e657fab8..31a745e0d14 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -453,5 +453,5 @@ passdef PatchFastRL(algorithm = "GRPO", FastLanguageModel = None):if FastLanguageModel is not None: PatchRL(FastLanguageModel)patch_trl_rl_trainers()- PatchRLStatistics(algorithm)+ if algorithm is nont None: PatchRLStatistics(algorithm)pass