Skip to content

[Bug]: how to get purely deterministic output for gpt-oss-120b? #24067

@tonyaw

Description

@tonyaw

Your current environment

The output of python collect_env.py
Your output of `python collect_env.py` here

🐛 Describe the bug

I'm using vllm v0.10.1 to serve "openai/gpt-oss-120b".
I need to get purely deterministic output. (Same input shall get exactly same output).

I found following ticket:
https://huggingface.co/openai/gpt-oss-20b/discussions/23
But I still can't get deterministic output even with following configuration:

"seed": 42,  # should be a very large number?
"temperature": 0,
"n": 1,
"top_p": 0.01,  # top_p must be in (0, 1]
"extra_body": {
    "top_k": 1,
    "min_p": 1,
    "repeat_penalty": 1,
},

Could you please help to guide me?
Is it possible to get purely deterministic output via vllm v0.10.1 + "openai/gpt-oss-120b"?
If Yes, could you please help to provide the parameter for openai client?

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggpt-ossRelated to GPT-OSS models

    Type

    No type

    Projects

    Status

    To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions