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

Method tokenizer

llama_cpp/llama.py:2260–2262  ·  view source on GitHub ↗

Return the llama tokenizer for this model.

(self)

Source from the content-addressed store, hash-verified

2258 return self._model.n_vocab()
2259
2260 def tokenizer(self) -> LlamaTokenizer:
2261 """Return the llama tokenizer for this model."""
2262 return LlamaTokenizer(self)
2263
2264 def token_eos(self) -> int:
2265 """Return the end-of-sequence token."""

Callers

nothing calls this directly

Calls 1

LlamaTokenizerClass · 0.85

Tested by

no test coverage detected