0d3cb498a3
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
109 lines
2.4 KiB
Markdown
109 lines
2.4 KiB
Markdown
# huggingface/hle (Humanity's Last Exam)
|
|
|
|
Evaluate LLMs against [Humanity's Last Exam (HLE)](https://arxiv.org/abs/2501.14249), a challenging benchmark created by 1,000+ experts across 500+ institutions. HLE features 3,000+ questions spanning 100+ subjects, designed to push AI capabilities to their limits.
|
|
|
|
**📖 [Read the complete HLE benchmark guide →](https://www.promptfoo.dev/docs/guides/hle-benchmark/)**
|
|
|
|
You can run this example with:
|
|
|
|
```bash
|
|
npx promptfoo@latest init --example huggingface/hle
|
|
cd huggingface/hle
|
|
```
|
|
|
|
## Prerequisites
|
|
|
|
- OpenAI API key set as `OPENAI_API_KEY`
|
|
- Anthropic API key set as `ANTHROPIC_API_KEY`
|
|
- Hugging Face access token (required for dataset access)
|
|
|
|
## Setup
|
|
|
|
Set your Hugging Face token:
|
|
|
|
```bash
|
|
export HF_TOKEN=your_token_here
|
|
```
|
|
|
|
Or add it to your `.env` file:
|
|
|
|
```env
|
|
HF_TOKEN=your_token_here
|
|
```
|
|
|
|
Get your token at [huggingface.co/settings/tokens](https://huggingface.co/settings/tokens).
|
|
|
|
## Run the Evaluation
|
|
|
|
Run the evaluation:
|
|
|
|
```bash
|
|
npx promptfoo@latest eval
|
|
```
|
|
|
|
View results:
|
|
|
|
```bash
|
|
npx promptfoo@latest view
|
|
```
|
|
|
|
## What's Tested
|
|
|
|
This evaluation tests models on:
|
|
|
|
- Advanced mathematics and sciences
|
|
- Humanities and social sciences
|
|
- Professional domain knowledge
|
|
- Multimodal reasoning
|
|
- Interdisciplinary topics
|
|
|
|
Each question is evaluated for accuracy using an LLM judge that compares the model's response against the verified correct answer.
|
|
|
|
## Current AI Performance
|
|
|
|
HLE is designed to be extremely challenging. Recent model performance:
|
|
|
|
- **OpenAI Deep Research**: 26.6% accuracy
|
|
- **o4-mini**: 18.1% accuracy
|
|
- **DeepSeek-R1**: 9.4% accuracy
|
|
|
|
Low scores are expected - this benchmark represents the cutting edge of AI evaluation.
|
|
|
|
## Customization
|
|
|
|
### Test More Questions
|
|
|
|
Increase the sample size:
|
|
|
|
```yaml
|
|
tests:
|
|
- huggingface://datasets/cais/hle?split=test&limit=100
|
|
```
|
|
|
|
### Add More Models
|
|
|
|
Compare multiple providers:
|
|
|
|
```yaml
|
|
providers:
|
|
- anthropic:claude-sonnet-4-6
|
|
- openai:o4-mini
|
|
- deepseek:deepseek-reasoner
|
|
```
|
|
|
|
### Different Prompting
|
|
|
|
Try alternative prompting strategies by modifying `prompt.py` or using static prompts:
|
|
|
|
```yaml
|
|
prompts:
|
|
- 'Answer this question step by step: {{question}}'
|
|
- file://prompt.py:create_hle_prompt
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [HLE Paper](https://arxiv.org/abs/2501.14249)
|
|
- [HLE Dataset](https://huggingface.co/datasets/cais/hle)
|
|
- [Promptfoo Documentation](https://promptfoo.dev/docs/getting-started)
|