Update rl.py
This commit is contained in:
parent
c2ddabcfd6
commit
d72d014a2c
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ def PatchRL(FastLanguageModel):
|
|||
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)
|
||||
FastLanguageModel.for_inference(model)
|
||||
|
||||
# We must use .clone for Unsloth since we force inference_mode
|
||||
# Rather we should have used no_grad
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue