Skip to content

Why is the temperature of reasonning models hardcoded to 1 ? #39

@jeremycochoy

Description

@jeremycochoy

In query.py we have:

    # perform temperature sampling if list provided                             
    # set temperature to 1.0 for reasoning models                               
    if kwargs_dict["model_name"] in (
        REASONING_OAI_MODELS
        + REASONING_CLAUDE_MODELS
        + REASONING_DEEPSEEK_MODELS                                           
        + REASONING_GEMINI_MODELS
        + REASONING_AZURE_MODELS
        + REASONING_BEDROCK_MODELS
    ):
        kwargs_dict["temperature"] = 1.0
    else:
        kwargs_dict["temperature"] = random.choice(temperatures)

What is the rational behind the temperature being hardcoded to 1? DeepSeek's documentation recommend a temperature of 0 for coding, and I experienced some issues with following instructions that was resolved by lowering the temperature to 0.7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions