Decoding & sampling concept illustration

Decoding & sampling

Stop sequence

A string that tells the model to stop generating as soon as it produces that text. Useful for clean, bounded output.

In practice

Set "\n\n" as a stop sequence so the model returns a single paragraph.

Related terms

See what your tokens really cost

Track usage and spend across every model and platform, free.

Image: Codioful on Pexels. Definition free to reuse under CC BY 4.0.