Home

Awesome

Overview

This repository contains a lightweight library for evaluating language models. We are open sourcing it so we can be transparent about the accuracy numbers we're publishing alongside our latest models.

Benchmark Results

ModelPromptMMLUGPQAMATHHumanEvalMGSM1DROP1<br>(F1, 3-shot)SimpleQA
o1MATH-5002
o1-previewn/a390.873.385.592.490.874.842.4
o1-minin/a85.260.090.092.489.983.97.6
o1 (work in progress)n/a92.377.394.8n/an/an/an/a
GPT-4o
gpt-4o-2024-11-20assistant85.746.068.590.290.381.538.8
gpt-4o-2024-08-06assistant488.753.175.990.290.079.840.1
gpt-4o-2024-05-13assistant87.249.976.691.089.983.739.0
gpt-4o-mini-2024-07-18assistant82.040.270.287.287.079.79.5
GPT-4 Turbo and GPT-4
gpt-4-turbo-2024-04-09assistant86.749.373.488.289.686.024.2
gpt-4-0125-previewassistant85.441.464.586.685.181.5n/a
gpt-4-1106-previewassistant84.742.564.383.787.183.2n/a
Other Models (Reported)
Claude 3.5 Sonnetunknown88.359.471.192.091.687.128.9
Claude 3 Opusunknown86.850.460.184.990.783.123.5
Llama 3.1 405bunknown88.650.773.889.091.684.8n/a
Llama 3.1 70bunknown82.041.768.080.586.979.6n/a
Llama 3.1 8bunknown68.430.451.972.668.959.5n/a
Grok 2unknown87.556.076.188.4n/an/an/a
Grok 2 miniunknown86.251.073.085.7n/an/an/a
Gemini 1.0 Ultraunknown83.7n/a53.274.479.082.4n/a
Gemini 1.5 Prounknown81.9n/a58.571.988.778.9n/a
Gemini 1.5 Flashunknown77.938.640.971.575.578.4n/a

Background

Evals are sensitive to prompting, and there's significant variation in the formulations used in recent publications and libraries. Some use few-shot prompts or role playing prompts ("You are an expert software programmer..."). These approaches are carryovers from evaluating base models (rather than instruction/chat-tuned models) and from models that were worse at following instructions.

For this library, we are emphasizing the zero-shot, chain-of-thought setting, with simple instructions like "Solve the following multiple choice problem". We believe that this prompting technique is a better reflection of the models' performance in realistic usage.

We will not be actively maintaining this repository and monitoring PRs and Issues. In particular, we're not accepting new evals. Here are the changes we might accept.

This repository is NOT intended as a replacement for https://github.com/openai/evals, which is designed to be a comprehensive collection of a large number of evals.

Evals

This repository currently contains the following evals:

Samplers

We have implemented sampling interfaces for the following language model APIs:

Make sure to set the *_API_KEY environment variables before using these APIs.

Setup

Due to the optional dependencies, we're not providing a unified setup mechanism. Instead, we're providing instructions for each eval and sampler.

For HumanEval (python programming)

git clone https://github.com/openai/human-eval
pip install -e human-eval

For the OpenAI API:

pip install openai

For the Anthropic API:

pip install anthropic

Running the evals

python -m simple-evals.simple_evals --list-models

This will list all the models that you can evaluate.

To run the evaluations, you can use the following command:

python -m simple-evals.simple_evals --model <model_name> --examples <num_examples>

This will launch evaluations through the OpenAI API.

Notes

Legal Stuff

By contributing to evals, you are agreeing to make your evaluation logic and data under the same MIT license as this repository. You must have adequate rights to upload any data used in an eval. OpenAI reserves the right to use this data in future service improvements to our product. Contributions to OpenAI evals will be subject to our usual Usage Policies: https://platform.openai.com/docs/usage-policies.

Footnotes

  1. We believe these evals are saturated for our newer models, but are reporting them for completeness. 2

  2. For o1 models, we evaluate on MATH-500, which is a newer, IID version of MATH.

  3. o1 models do not support using a system prompt.

  4. assistant system message in OpenAI API doc: "You are a helpful assistant." .