Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
jnanliu committed Jan 20, 2025
1 parent 71c0b39 commit b1552f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion opencompass/configs/datasets/omni_math/omni_math_gen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from mmengine.config import read_base

with read_base():
from .omni_math_gen_xxx import omni_math_datasets # noqa: F401, F403
from .omni_math_gen_18cc08 import omni_math_datasets # noqa: F401, F403
8 changes: 0 additions & 8 deletions opencompass/datasets/omni_math.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import concurrent.futures
import re
from typing import List

import numpy as np
Expand Down Expand Up @@ -66,13 +65,6 @@ def batch_infer(self, models: List[OpenAISDK],

return result_responses

def extract_boxed_answer(self, text):
match = re.findall(r'\\boxed{(.+?)}', text)
if match:
return match[-1]

return None

def parse_response(self, response):
response = '## Student Final Answer\n' + response.strip()

Expand Down

0 comments on commit b1552f7

Please sign in to comment.