Skip to content

Commit db7c12c

Browse files
Merge pull request #3246 from AI-Hypercomputer:anisha-fix-regex
PiperOrigin-RevId: 875303639
2 parents 519ff77 + f5ad62c commit db7c12c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def get_match_format_regex(tmvp_config):
108108
r"^[\s]{0,}"
109109
rf"{tmvp_config.reasoning_start_token}.+?{tmvp_config.reasoning_end_token}.*?"
110110
rf"{tmvp_config.solution_start_token}(.+?){tmvp_config.solution_end_token}"
111-
r"[\s]{0,}$"
112111
),
113112
flags=re.MULTILINE | re.DOTALL,
114113
)
@@ -308,7 +307,7 @@ def fix_latex_escaping(text: str) -> str:
308307
("\t", "imes", r"\times"), # \t (tab) → \times
309308
("\t", "ext", r"\text"), # \t (tab) → \text
310309
("\t", "extbf", r"\textbf"), # \t (tab) → \textbf
311-
("\t", "extit", r"\textit"), # \t (tab) → \textit
310+
("\t", "extit", r"\textit"), # \t (tab) → \textit # codespell:ignore
312311
("\r", "ightarrow", r"\rightarrow"), # \r (carriage return) → \rightarrow
313312
("\r", "ightarrow", r"\Rightarrow"), # \r (carriage return) → \Rightarrow (capital R handled separately)
314313
("\b", "eta", r"\beta"), # \b (backspace) → \beta

0 commit comments

Comments
 (0)