AWS AI Practitioner (AIF-C01) · Free practice question 9 of 12
Stop sequences end generation
A developer at Greystone Apps wants a text generation model to stop producing output as soon as it writes the marker '###'. Which inference parameter should the developer set?
- A.Temperature
- B.Top-k
- C.A stop sequence
- D.The context window size
Show answer and explanation
Correct answer: C. A stop sequence
Why: A stop sequence is a string that, when generated, causes the model to stop producing further tokens, which is useful for ending output at a known marker. Temperature and top-k shape which tokens are sampled, and the context window is a fixed property of the model that limits how much text it can process.
More free AWS AI Practitioner (AIF-C01) questions
- Rekognition image content moderation
- Comprehend Medical clinical text extraction
- Polly text-to-speech narration
- Lex conversational chatbot intents
- Transcribe and Translate call pipeline
- Personalize real-time recommendations
- SageMaker Data Wrangler data preparation
- Deep learning learns features from raw data
- SageMaker Feature Store shared features
- SageMaker Model Registry version catalog
- Test set for final unbiased evaluation