Update rl_replacements.py
This commit is contained in:
parent
e4e6bc1e4a
commit
31df063c28
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ RL_FUNCTIONS["grpo_trainer"].append(grpo_trainer__prepare_inputs)
|
|||
|
||||
# Fix incorrect special tokens handling and truncation in older TRL versions
|
||||
def grpo_trainer__generate_and_score_completions(function_name, function):
|
||||
if function_name != "_prepare_inputs": return function
|
||||
if function_name != "_generate_and_score_completions": return function
|
||||
|
||||
# TRL 0.19.0 did skip_special_tokens = True which should be False
|
||||
function = function.replace(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue