The issue of the temperature parameter #189
Replies: 3 comments
-
Yeah it was added for older models They do not allow sampling via temperature. We can tighten the conditional to only skip it for these models and warn the user. Would appreciate a PR if you can do it I will take a look at it and merge. |
Beta Was this translation helpful? Give feedback.
-
When I tried 'o3mini', give this config
There is no warning or error, it shows: 2025-07-24 22:03:10,917 - INFO - Sampled model: o3-mini |
Beta Was this translation helpful? Give feedback.
-
I will try. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve encountered something confusing while using the OpenEvolve framework, and I’d appreciate some clarification.
In the OpenAILLM class in your openai.py file, there is this code block when setting up generation parameters:
It seems that when the model name starts with "o" (e.g., "o4-mini"), the temperature parameter is not passed to the API.
I’ve also tested an example based on your function_minimization. I set temperature values like 0.3 vs 0.7 with o4-mini(just set one model) and observed significant behavioral differences in the output, which suggests that these parameters are indeed supported and have an effect.
This is my config.yaml
Testing result
When Temperature = 0.7
0.767818. 0.954938 0.945888 0.952813 0.951586 0.779630 0.952998 0.797274 0.787243 0.986230 0.974237
Temperature = 0.3
0.767818 0.706419 0.784706 0.777148 0.988748 0.994253 0.702351 0.797274 0.999715 0.981818 0.999708
three questions:
Q1 Why are the two results different? If the temperature cannot be passed, the result should be the same.
Q2 Can OpenEvolve guarantee that each successive round’s score improves over the previous one and demonstrates a steadily converging trend?
Q3 Whether or not they can set elite_selection_ratio=1.0 and exploitation_ratio=1.0 at the same time?
Could you please provide some explanations? Thank you so much.
Beta Was this translation helpful? Give feedback.
All reactions