From bf6c6a678d6489884585875b7a72674c3073bb92 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Wed, 5 Feb 2025 07:28:16 -0800 Subject: [PATCH] Update rl.py --- unsloth/models/rl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py index 21ade011e3..0253fca7af 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)