Skip to content

Commit

Permalink
Add general info metrics to Capabilities run specs (#3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai authored Jan 15, 2025
1 parent b069c5a commit 716e523
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/helm/benchmark/run_specs/capabilities_run_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def get_ifeval_spec() -> RunSpec:
method=ADAPT_GENERATION, input_prefix="", output_prefix="", max_tokens=2000, num_outputs=1, temperature=0.0
)

metric_specs = [MetricSpec(class_name="helm.benchmark.metrics.ifeval_metrics.IFEvalMetric")]
metric_specs = get_basic_metric_specs([]) + [
MetricSpec(class_name="helm.benchmark.metrics.ifeval_metrics.IFEvalMetric")
]

return RunSpec(
name="ifeval",
Expand All @@ -157,7 +159,9 @@ def get_wildbench_spec(subset: str, use_model_outputs: str = "False") -> RunSpec
method=ADAPT_CHAT, input_prefix="", output_prefix="", max_tokens=2000, num_outputs=1, temperature=0.0
)
annotator_specs = [AnnotatorSpec(class_name="helm.benchmark.annotation.wildbench_annotator.WildBenchAnnotator")]
metric_specs = [MetricSpec(class_name="helm.benchmark.metrics.wildbench_metrics.WildBenchScoreMetric")]
metric_specs = get_basic_metric_specs([]) + [
MetricSpec(class_name="helm.benchmark.metrics.wildbench_metrics.WildBenchScoreMetric")
]

return RunSpec(
name="wildbench",
Expand Down Expand Up @@ -190,7 +194,9 @@ def get_bigcodebench_spec(version: str) -> RunSpec:
annotator_specs = [
AnnotatorSpec(class_name="helm.benchmark.annotation.bigcodebench_annotator.BigCodeBenchAnnotator")
]
metric_specs = [MetricSpec(class_name="helm.benchmark.metrics.bigcodebench_metrics.BigCodeBenchMetric")]
metric_specs = get_basic_metric_specs([]) + [
MetricSpec(class_name="helm.benchmark.metrics.bigcodebench_metrics.BigCodeBenchMetric")
]

return RunSpec(
name="bigcodebench",
Expand Down

0 comments on commit 716e523

Please sign in to comment.