sora 370953729b Fix perf stats (wrong import path), per-repeat checkpoints, README
- perf_stats aggregator lives in eval/, not model/: the import failed
  silently and EVERY perf column was empty (not just ttft). Now warns
  on stderr instead of swallowing.
- repeats > 1 get their own checkpoint key (:rep2, :rep3, ...): repeat 2
  previously restored repeat 1's predictions and finished instantly with
  identical scores. rep1 keeps the legacy key (existing checkpoints still
  resume).
- repeats summary: report the MEAN score and aggregate time/tokens over
  ALL runs (was: last run only).
- README: six-benchmark command as the primary example.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-11 13:38:04 +00:00

34 lines
1.1 KiB
Python

"""BigCodeBench (official source: bigcode/bigcodebench)."""
from ..sample import Sample
from ..registry import register_dataset
from ..spec import DatasetSpec
@register_dataset(
DatasetSpec(
name='bigcodebench',
source='bigcode/bigcodebench', # official: https://huggingface.co/datasets/bigcode/bigcodebench
split='v0.1.4', # BigCodeBench versions are published as splits
gen_config={'temperature': 0.0, 'max_tokens': 32768},
task_type='coding',
tags=['code'],
description='BigCodeBench: practical library-level function synthesis (official).',
)
)
def bigcodebench():
def to_sample(record: dict) -> Sample:
return Sample(
input=record['instruct_prompt'], # 'complete_prompt' is the alternative prompt style
target=record['canonical_solution'],
metadata={
'task_id': record['task_id'],
'test': record['test'],
'entry_point': record['entry_point'],
'code_prompt': record.get('code_prompt'),
'libs': record.get('libs'),
},
)
return to_sample