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 Han79f345d48483
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex a216f4f3872..ecd394cea03 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -21,6 +21,7 @@ from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Unionimport inspectimport osimport re+import torchfrom unsloth_zoo.compiler import create_new_functionfrom unsloth_zoo.logging_utils import PatchRLStatisticsfrom .rl_replacements import (