Guide To Top 7 LLM Parameters
Guide To Top 7 LLM Parameters
Top 7
LLM Generation
Parameters
Dipanjan (DJ)
Max Tokens
The top_k parameter limits the model to only considering the top k
most probable next tokens when predicting (generating) the next
word
Low Value (e.g., 10): Limits the model to more predictable and constrained
responses
High Value (e.g., 100): Allows the model to consider a larger number of tokens,
increasing the variety of responses
The top_k parameter isn’t directly available in the OpenAI API but
is available in other platforms like Hugging Face transformers