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

39 lines
1.2 KiB
Python

"""HLE - Humanity's Last Exam.
Official source cais/hle is gated on HF (needs auth); we load the ModelScope
mirror of the identical data via the native raw-file downloader.
"""
from ..sample import Sample
from ..registry import register_dataset
from ..spec import DatasetSpec
@register_dataset(
DatasetSpec(
name='hle',
source='cais/hle', # ModelScope mirror of the gated HF original
split='test',
gen_config={'temperature': 0.0, 'max_tokens': 32768},
task_type='qa',
tags=['knowledge', 'frontier'],
description="Humanity's Last Exam. Some samples carry an image field (multimodal).",
params={'hub': 'modelscope'},
)
)
def hle():
def to_sample(record: dict) -> Sample:
return Sample(
input=record['question'],
target=str(record['answer']).strip(),
metadata={
'id': record.get('id'),
'answer_type': record.get('answer_type'),
'category': record.get('category'),
'raw_subject': record.get('raw_subject'),
'has_image': bool(record.get('image')),
},
)
return to_sample