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)