Reset indentation
This commit is contained in:
parent
d28ff5d5a1
commit
814253b63f
1 changed files with 2 additions and 2 deletions
|
|
@ -277,7 +277,7 @@ def grpo_trainer__generate_and_score_completions(function_name, function):
|
|||
re.MULTILINE,
|
||||
)
|
||||
|
||||
replacement_text = """
|
||||
replacement_text = """
|
||||
if self.args.gradient_accumulation_steps % generate_every != 0 or (
|
||||
self.use_vllm
|
||||
):"""
|
||||
|
|
@ -347,7 +347,7 @@ def grpo_trainer__generate_and_score_completions(function_name, function):
|
|||
|
||||
replacement_string = """ if "image_sizes" in prompt_inputs:
|
||||
output["image_sizes"] = prompt_inputs["image_sizes"]
|
||||
|
||||
|
||||
if self.use_vllm:
|
||||
try:
|
||||
output["sampling_per_token_logps"] = sampling_per_token_logps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue