Update rl_replacements.py
This commit is contained in:
parent
63b7963d38
commit
3f4033e612
1 changed files with 0 additions and 3 deletions
|
|
@ -256,9 +256,6 @@ def grpo_trainer__generate_and_score_completions(function_name, function):
|
|||
replace_part, spacing = found[0]
|
||||
removed_comments = re.sub(r"\#[^\n]{1,}", "", replace_part)
|
||||
splits = removed_comments.split("\n")
|
||||
print(splits)
|
||||
print(len(spacing))
|
||||
print(sum(re.match(rf"{spacing}[^\s]", x) is not None for x in splits))
|
||||
if sum(re.match(rf"{spacing}[^\s]", x) is not None for x in splits) == 2 and len(spacing) >= 8:
|
||||
|
||||
new_replacement = \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue