Skip to content

Commit

Permalink
revert gold target timoeut
Browse files Browse the repository at this point in the history
  • Loading branch information
hynky1999 committed Jan 28, 2025
1 parent 9d2553e commit a90551e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lighteval/metrics/utils/math_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def should_treat_as_complex(latex_str: str) -> bool:
def compare_gold_target(
gold: list[Basic | MatrixBase | str], target: list[Basic | MatrixBase | str], precision: int
) -> bool:
@timeout(timeout_seconds=100)
@timeout(timeout_seconds=10)
def compare_single_extraction(gold: Basic | MatrixBase | str, target: Basic | MatrixBase | str) -> bool:
# If both are sympy expressions, we can use sympy to compare them
if isinstance(gold, (Basic, MatrixBase)) and isinstance(target, (Basic, MatrixBase)):
Expand Down

0 comments on commit a90551e

Please sign in to comment.