Applications of Foundation Models
What does a configured stop sequence do during text generation?
Show the answer
Correct answerC. Ends generation when matching text appears
AWhy not this: The model's context limit determines input capacity, not a stop sequence.
BWhy not this: Sampling controls such as top-k restrict candidate tokens; stop sequences do not.
CWhy this is right: Generation stops when the specified text sequence is produced.
DWhy not this: Temperature controls sampling randomness rather than matching a stopping string.
A stop sequence ends generation when the model produces the specified text sequence. A maximum token setting instead stops generation when its token budget is exhausted.