Update rl.py
This commit is contained in:
parent
0de2fef1eb
commit
4b108654bd
1 changed files with 1 additions and 2 deletions
|
|
@ -43,8 +43,7 @@ def PatchRL(FastLanguageModel):
|
|||
FastLanguageModel.for_inference(unwrapped_model)
|
||||
yield unwrapped_model
|
||||
# Return back to training mode
|
||||
FastLanguageModel.for_training (model)
|
||||
yield model
|
||||
FastLanguageModel.for_training(model)
|
||||
pass
|
||||
|
||||
import trl.trainer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue