Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Custom Sampling Settings #87

Closed
3 tasks done
jackyc2718 opened this issue Mar 5, 2023 · 1 comment
Closed
3 tasks done

[Feature Request] Custom Sampling Settings #87

jackyc2718 opened this issue Mar 5, 2023 · 1 comment
Labels
enhancement New feature or request V2

Comments

@jackyc2718
Copy link

Clear and concise description of the problem

Autoregressive model can easily stuck into a loop and output repetitive contents due to its design. While some sampling settings such as temperature and top-p can help to alleviate the problem, other sampling methods/settings may be more effectively.

I believe that the generation code of the demo uses only the default OpenAI generation settings, i.e. temperature = 1 and top_p = 1 as they are not specified. There is current no support for params other than the default values, nor the use of presence_penalty and frequency_penalty which are both native to the API.

I think adding this feature would allow us to experiment with different settings, and choose the best one depending on user case to improve experience.

Suggested solution

  1. Add sliders in the UI for temperature, top-p, presence_penalty, frequency_penalty
  2. Specify the above parameters in the generation code, API Reference - OpenAI API

Alternative

No response

Additional context

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request V2
Projects
None yet
Development

No branches or pull requests

2 participants