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

Method token_bos

llama_cpp/llama.py:2268–2270  ·  view source on GitHub ↗

Return the beginning-of-sequence token.

(self)

Source from the content-addressed store, hash-verified

2266 return self._model.token_eos()
2267
2268 def token_bos(self) -> int:
2269 """Return the beginning-of-sequence token."""
2270 return self._model.token_bos()
2271
2272 def token_nl(self) -> int:
2273 """Return the newline token."""

Callers 5

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

Calls

no outgoing calls

Tested by 1