Update rl.py

This commit is contained in:
Daniel Han 2025-02-13 16:37:05 -08:00
commit ce95b13c0a

View file

@ -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