
Explanation:
Correct Answer: A - Both control creativity and can be tuned together for optimal output diversity
Why this is correct:
In Amazon Bedrock (and generally in language models), temperature and top-p (nucleus sampling) are both parameters that control the randomness and creativity of model outputs:
Temperature: Controls the randomness of predictions by scaling the logits before applying softmax. Higher temperature (e.g., 0.8-1.0) makes the output more diverse and creative, while lower temperature (e.g., 0.1-0.3) makes it more deterministic and focused.
Top-p (Nucleus Sampling): Controls the cumulative probability threshold for token selection. The model considers only the smallest set of tokens whose cumulative probability exceeds the top-p value (e.g., 0.9 means considering tokens until their cumulative probability reaches 90%).
How they work together:
Why other options are incorrect:
Best Practice: When using Amazon Bedrock models, experiment with different combinations of temperature and top-p values to achieve the desired balance between creativity and coherence for your specific use case.
Ultimate access to all questions.
Which of the following statements correctly describes how temperature and top-p can be used together in Amazon Bedrock?
A
Both control creativity and can be tuned together for optimal output diversity
B
They control unrelated aspects — top-p affects latency only
C
Temperature controls grammar while top-p controls sentence length
D
Both reduce the model's vocabulary size
No comments yet.