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

Adjust top_p & temp depending on type of query #5

Open
vGebs opened this issue Jun 7, 2023 · 0 comments
Open

Adjust top_p & temp depending on type of query #5

vGebs opened this issue Jun 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@vGebs
Copy link
Owner

vGebs commented Jun 7, 2023

Adjusting the temperature and top_p parameters can change the output of the model in various ways. Here are some scenarios where you might want to alter them:

Temperature:
Creative Writing: If you're using the model for creative writing or brainstorming and you want diverse, unexpected responses, a higher temperature like 0.8 might be appropriate. This introduces more randomness in the outputs.
Technical Writing: If you're generating technical or professional content where consistency and focus are crucial, a lower temperature like 0.2 might be better. This makes the output more deterministic and focused.

Top_p (Nucleus Sampling):
High-Stakes Decision Making: If you're using the model to help with high-stakes decisions where accuracy is critical, a lower top_p value like 0.1 could be useful. This restricts the model's responses to the most probable tokens.
Exploratory Conversations: If you're having an exploratory conversation and want a good balance between diversity and relevance, a higher top_p value like 0.9 could be suitable. This allows the model to consider a broader range of token possibilities.

Remember that both parameters control the trade-off between diversity and determinism in the model's responses. They should be adjusted according to the specific requirements of your task. As the documentation suggests, it's generally recommended to adjust either temperature or top_p, not both, to avoid confusion and unexpected behavior.

@vGebs vGebs added the enhancement New feature or request label Jun 7, 2023
@vGebs vGebs self-assigned this Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant