Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add o3-mini support #2697

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

HelloJocelynLu
Copy link

@HelloJocelynLu HelloJocelynLu commented Feb 14, 2025

Resolve #2685

Problem

When running o3-mini model using lm-evaluation-harness, an error occurs because the OpenAIChatCompletion API automatically includes the 'temperature' parameter, which is not supported by o3-mini.

Solution

Added a condition to remove the temperature parameter when the model is o3-x, similar to the existing handling for o1 models.

Test

Previously failed with "Unsupported parameter: 'temperature' is not supported with this model"
Now works as expected

lm_eval --model openai-chat-completions --model_args model=o3-mini --task mmlu_llama_college_chemistry --limit 4 --output output/openai-4o --apply_chat_template --log_samples

Returns

openai-chat-completions (model=o3-mini), gen_kwargs: (None), limit: 4.0, num_fewshot: None, batch_size: 1
|      Tasks      |Version|   Filter   |n-shot|  Metric   |   |Value|   |Stderr|
|-----------------|------:|------------|-----:|-----------|---|----:|---|-----:|
|college chemistry|      1|strict_match|     5|exact_match||    0|±  |     0|

@CLAassistant
Copy link

CLAassistant commented Feb 14, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add o3-mini support
2 participants