vllm.tokenizers.ergo
¶
SentencePiece tokenizer of Ergo models.
Ergo frames chat turns with SentencePiece CONTROL pieces, which text never encodes to. Decoding keeps them as their piece text unless special tokens are skipped, so the output parser can find them.
Classes:
Functions:
-
resolve_thinking–Ergo reasons unless the request turns
thinkingoff.
ErgoTokenizer
¶
Bases: TokenizerLike
Methods:
-
xgrammar_tokenizer_info–Xgrammar vocabulary: byte pieces as their byte, special ids as
xgrammar_tokenizer_info(vocab_size)
¶
Xgrammar vocabulary: byte pieces as their byte, special ids as bytes no text can match.
resolve_thinking(chat_template_kwargs)
¶
Ergo reasons unless the request turns thinking off.