D3: Inference Parameters
AWS Foundational AI Practitioner exam practice questions · 10 flashcards
Question
What is temperature?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Inference Parameters practice questions and answers
- What is temperature?Controls randomness: low (0–0.3) = focused, deterministic; high = creative, varied.
- What is top-p (nucleus sampling)?Limits choices to the smallest set of tokens whose cumulative probability reaches p.
- What is top-k?Limits choices to the k most probable next tokens.
- What is max tokens (output length)?Upper limit on generated tokens; controls length and cost.
- What are stop sequences?Strings that tell the model to stop generating.
- Scenario: factual customer support answers. Temperature?Low.
- Scenario: brainstorming creative slogans. Temperature?Higher.
- Effect of input length on responses?Longer inputs give more context but raise cost and latency, and can dilute focus.
- Responses are cut off mid-sentence. Likely cause?Max tokens set too low.
- Do inference parameters change the model's weights?No. They only affect how outputs are sampled at inference time.