Learn Before
Concept

End-of-Sequence (EOS) Token as a Stopping Criterion

A common and straightforward stopping strategy in LLM inference is to terminate the generation process upon the production of a special end-of-sequence (EOS) token, such as ⟨EOS⟩ or ⟨/s⟩. Models are specifically trained to output this token to indicate that the generated text is complete.

0

1

Updated 2026-05-05

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences