Update rl.py
This commit is contained in:
parent
a94afad455
commit
6386de4cce
1 changed files with 4 additions and 3 deletions
|
|
@ -151,15 +151,16 @@ def _PatchRLStatistics(metrics):
|
|||
pass
|
||||
|
||||
|
||||
def PatchRLStatistics(algorithm = "grpo"):
|
||||
if algorithm == "grpo":
|
||||
def PatchRLStatistics(algorithm = "GRPO"):
|
||||
algorithm = algorithm.upper()
|
||||
if algorithm == "GRPO":
|
||||
metrics = [
|
||||
"completion_length",
|
||||
"reward",
|
||||
"reward_std",
|
||||
"kl",
|
||||
]
|
||||
elif algorithm == "dpo" or algorithm == "kto":
|
||||
elif algorithm == "DPO" or algorithm == "KTO":
|
||||
metrics = [
|
||||
"rewards/chosen",
|
||||
"rewards/rejected",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue