Skip to content

Commit

Permalink
adding the metric for IFEval and its helper files
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjxu committed Oct 31, 2024
1 parent 5af4f40 commit f72c9bf
Show file tree
Hide file tree
Showing 6 changed files with 1,970 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/helm/benchmark/metrics/common_metric_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,11 @@ def get_disinformation_metric_specs(args: Optional[Dict] = None) -> List[MetricS

def get_open_ended_generation_metric_specs() -> List[MetricSpec]:
return get_basic_metric_specs(["exact_match", "quasi_exact_match", "f1_score", "rouge_l", "bleu_1", "bleu_4"])


def get_ifeval_metric_specs() -> List[MetricSpec]:
return [
MetricSpec(
class_name="helm.benchmark.metrics.ifeval_metrics.IFEvalMetric"
)
]
Loading

0 comments on commit f72c9bf

Please sign in to comment.