Update rl.py
This commit is contained in:
parent
4c520db499
commit
ce95b13c0a
1 changed files with 4 additions and 4 deletions
|
|
@ -566,8 +566,8 @@ pass
|
|||
|
||||
|
||||
def PatchFastRL(algorithm = None, FastLanguageModel = None):
|
||||
return
|
||||
# if FastLanguageModel is not None: PatchRL(FastLanguageModel)
|
||||
# patch_trl_rl_trainers()
|
||||
# if algorithm is not None: PatchRLStatistics(algorithm)
|
||||
if FastLanguageModel is not None: PatchRL(FastLanguageModel)
|
||||
patch_trl_rl_trainers()
|
||||
if type(algorithm) is str and algorithm.islower():
|
||||
PatchRLStatistics(algorithm)
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue