openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Inference Hyperparameter Tuning

Open sonichi opened this issue 2 years ago • 3 comments
trafficstars

Is there any interest in tuning the inference hyperparameters such as model, prompt, max_tokens, n, temperature, and top_p? I've been studying how to get the best value of the inference by tuning these hyperparameters under a budget constraint. I'll be happy to contribute here if there is a common interest.

Link to a notebook example: https://github.com/microsoft/FLAML/blob/main/notebook/integrate_openai.ipynb Related research paper: https://arxiv.org/abs/2303.04673

sonichi avatar Mar 25 '23 15:03 sonichi

Interesting!

I've been thinking of adding to a section on the main readme page that links to other tools & examples around the web. I think FLAML could be a good candidate. Would it make sense to you if I added a link there (but not a notebook to the repo)?

ted-at-openai avatar Mar 29 '23 19:03 ted-at-openai

Interesting!

I've been thinking of adding to a section on the main readme page that links to other tools & examples around the web. I think FLAML could be a good candidate. Would it make sense to you if I added a link there (but not a notebook to the repo)?

Sure, that'll be great. We also have an example of tuning ChatGPT (both GPT-3.5 and GPT-4): https://github.com/microsoft/FLAML/blob/main/notebook/integrate_chatgpt.ipynb Other suggestions are appreciated as well.

sonichi avatar Mar 30 '23 02:03 sonichi

@ted-at-openai The notebook links are updated: https://github.com/microsoft/FLAML/blob/main/notebook/autogen_openai.ipynb https://github.com/microsoft/FLAML/blob/main/notebook/autogen_chatgpt.ipynb And a documentation webpage is added: https://microsoft.github.io/FLAML/docs/Use-Cases/Auto-Generation

sonichi avatar Apr 08 '23 22:04 sonichi

Thanks! Added link to the README in this PR: https://github.com/openai/openai-cookbook/pull/442

ted-at-openai avatar May 23 '23 04:05 ted-at-openai

Thanks! Added link to the README in this PR: #442

Thank you! Please let me know if there is anything I can help with in future.

sonichi avatar May 23 '23 16:05 sonichi