Skip to content

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.

Update rl.py

Daniel Hanb7bd548779e8
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py
index 21ade011e39..0253fca7af2 100644
--- a/unsloth/models/rl.py
+++ b/unsloth/models/rl.py
@@ -37,7 +37,7 @@ def PatchRL(FastLanguageModel):
from contextlib import contextmanager
@contextmanager
- def unsloth_unwrap_model_for_generation(model, *args, **kwargs):
+ def unsloth_unwrap_model_for_generation(model, accelerator):
with unwrap_model_for_generation(model, accelerator) as unwrapped_model:
# Put the model in inference mode.
FastLanguageModel.for_inference(unwrapped_model)