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 trainer.py
Daniel Han022d5718357f
diff --git a/unsloth/trainer.py b/unsloth/trainer.pyindex 896db35ecda..25b89999593 100644--- a/unsloth/trainer.py+++ b/unsloth/trainer.py@@ -201,7 +201,10 @@ passdef _patch_trl_trainer():- if hasattr(trl, "__UNSLOTH_BACKWARDS_COMPATIBLE__"): return+ try:+ trl.__UNSLOTH_BACKWARDS_COMPATIBLE__+ return+ except: passif Version(trl.__version__) <= Version("0.11.0"): returnimport trl.trainer