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 Hana6f919f60cfb
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 26c73a7b141..6603346fd04 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -39,6 +39,7 @@ def PatchRL(FastLanguageModel):@contextmanagerdef unsloth_unwrap_model_for_generation(model, *args, **kwargs):# Must use for_inference to allow inference in Unsloth+ print("$$$$$$$$$$$$$$")FastLanguageModel.for_inference(model)try:with unwrap_model_for_generation(model, *args, **kwargs) as unwrapped_model:@@ -46,6 +47,7 @@ def PatchRL(FastLanguageModel):finally:# Finally return back trainingFastLanguageModel.for_training(model)+ print("###############")passpass