Recommended Sampling Parameters

#21
by YunfanZhang42 - opened

Hi OpenAI Team,

Thank you for your awesome contribution to the open source community! I am wondering what is the recommended sampling parameters for gpt-oss (temperature, top_p, etc)? Does not seem to be mentioned in the readme, generation_config.json, or the official blog. Would appreciate any pointers or best practices you could share!

OpenAI org

The recommended sampling parameters are temp = 1.0 and top_p = 1

What about top_k ? Is there a recommended setting for it?

@VladNC Based on

  1. the torch reference implementation (1 and 2),
  2. the guidance in the readme and
  3. the vlllm example

I'd say guidance is to disable top_k. Unfortunately, top_k defaults to 50 in transformers lib on huggingface if left unspecified, so be wary of this.

@dkundel-openai I would appreciate if you could confirm my interpretation

Sign up or log in to comment