AI Development
Reserved tokens that mark structure rather than text, such as beginning-of-sequence (BOS), end-of-sequence (EOS), padding, and BERT-style [CLS] and [SEP] markers.
Reserved tokens that mark structure rather than text, such as beginning-of-sequence (BOS), end-of-sequence (EOS), padding, and BERT-style [CLS] and [SEP] markers. Chat models add more, like <|im_start|> or <start_of_turn>, to show who is speaking and where a turn ends. The tokenizer inserts them automatically when it is set up to. Getting them wrong, by leaving out an EOS or adding a second BOS, quietly makes output worse or stops generation in the wrong place.
Primary source: huggingface.co
Example
Reserved tokens that mark structure rather than text, such as beginning-of-sequence (BOS), end-of-sequence (EOS), padding, and BERT-style [CLS] and [SEP] markers.
Hands-on guides, comparisons, and tutorials that cover AI Development.
FAQ
Reserved tokens that mark structure rather than text, such as beginning-of-sequence (BOS), end-of-sequence (EOS), padding, and BERT-style [CLS] and [SEP] markers.
Special Tokens sits in the AI Development part of the AI stack. Understanding it helps you make better decisions when building, debugging, and shipping AI features.
Developers Digest publishes tutorials and videos that cover AI Development topics including Special Tokens. Check the blog and YouTube channel for hands-on walkthroughs.
Related
Custom strings that tell a model to stop generating as soon as it produces one of them.
A flag, strict: true, set on a tool or function definition that makes the model's tool arguments always conform to the declared JSON Schema instead of following it on a best-effort basis.
A language model small enough to run on a consumer device with low latency, in practice usually under about 10 billion parameters.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.