MCPcopy Index your code
hub / github.com/abetlen/llama-cpp-python / token_eos

Method token_eos

llama_cpp/llama.py:2264–2266  ·  view source on GitHub ↗

Return the end-of-sequence token.

(self)

Source from the content-addressed store, hash-verified

2262 return LlamaTokenizer(self)
2263
2264 def token_eos(self) -> int:
2265 """Return the end-of-sequence token."""
2266 return self._model.token_eos()
2267
2268 def token_bos(self) -> int:
2269 """Return the beginning-of-sequence token."""

Callers 7

__init__Method · 0.95
_create_completionMethod · 0.95
__call__Method · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by 2