Run Humanity's Last Exam
The same run guide is also available from the benchmark detail page.
Humanity's Last Exam (HLE) is run with the official centerforaisafety/hle harness: load the gated cais/hle test set (2,500 questions, text + image), generate predictions against your own OpenAI-compatible model endpoint with run_model_predictions.py, then grade them with run_judge_results.py, which uses an LLM judge (default o3-mini-2025-01-31) to emit accuracy and calibration error. The headline metric is accuracy (with a 95% Wald CI). Keep attached to any score: target model name, judge model, max_completion_tokens, temperature setting, whether the full 2,500-question test split was used, and the harness commit.
1Install
git clone https://github.com/centerforaisafety/hle.gitcd hlepip install -r requirements.txtexport OPENAI_API_KEY=your_openai_key_herehuggingface-cli login # dataset cais/hle is gated; accept terms on the HF page first2Run evaluation
cd hle_evalMODEL="gpt-4o-2024-11-20"DATASET="cais/hle"python run_model_predictions.py --dataset ${DATASET} --model ${MODEL} --max_completion_tokens 8192 --num_workers 100# add --max_samples 3 to smoke-test before a full run3Score output
python run_judge_results.py --dataset ${DATASET} --predictions hle_${MODEL}.json --num_workers 100# override judge with --judge o3-mini-2025-01-31 (default) if desired4Expected output
run_model_predictions.py writes predictions to hle_${MODEL}.json (e.g. hle_gpt-4o-2024-11-20.json) in hle_eval/, skipping already-answered questions on re-runs. run_judge_results.py writes judged_hle_${MODEL}.json and prints a '*** Metrics ***' block with 'Accuracy: X% +/- Y% | n = N' and 'Calibration Error: Z' (accuracy normalized over the full question count N). Accuracy is the headline metric; do not compare it against scores produced with a different judge model, token budget, or subset of questions.
5Submit results
There is no automated public submission endpoint in the harness; results are self-reported. Report accuracy with its 95% CI and calibration error, plus the run context: target model name, judge model (default o3-mini-2025-01-31), --max_completion_tokens, temperature setting, full vs. subset of the 2,500-question test split, and the harness commit. The official leaderboard at lastexam.ai tracks frontier-model results; contact agibenchmark@safe.ai for listing.