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 Hand437235d150f
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex e5101662b83..515c6587f7a 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -47,8 +47,8 @@ def PatchRL(FastLanguageModel):from contextlib import contextmanager@contextmanager- def unsloth_unwrap_model_for_generation(model, accelerator):- with unwrap_model_for_generation(model, accelerator) as unwrapped_model:+ def unsloth_unwrap_model_for_generation(model, *args, **kwargs):+ with unwrap_model_for_generation(model, *args, **kwargs) as unwrapped_model:# Put the model in inference mode.FastLanguageModel.for_inference(unwrapped_model)