Skip to content

Commit 2670a9e

Browse files
Merge pull request #3301 from AI-Hypercomputer:sanbao/format
PiperOrigin-RevId: 879723267
2 parents 7656eb8 + 5dd5b3c commit 2670a9e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/maxtext/trainers/post_train/rl/utils_rl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def get_match_format_regex(tmvp_config):
105105
"""Returns a compiled regex to extract the answer from a completion."""
106106
match_format = re.compile(
107107
(
108-
r"^[\s]{0,}"
109108
rf"{tmvp_config.reasoning_start_token}.+{tmvp_config.reasoning_end_token}.*?"
110109
rf"{tmvp_config.solution_start_token}(.+?){tmvp_config.solution_end_token}"
111110
),

0 commit comments

Comments
 (0)