MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / __init__

Method __init__

llama_cpp/llama_tokenizer.py:46–47  ·  view source on GitHub ↗
(self, llama: llama_cpp.Llama)

Source from the content-addressed store, hash-verified

44
45class LlamaTokenizer(BaseLlamaTokenizer):
46 def __init__(self, llama: llama_cpp.Llama):
47 self._model = llama._model # type: ignore
48
49 def tokenize(
50 self, text: bytes, add_bos: bool = True, special: bool = True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected