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

Function llama_n_vocab

llama_cpp/llama_cpp.py:1680–1680  ·  view source on GitHub ↗
(model: llama_vocab_p, /)

Source from the content-addressed store, hash-verified

1678# DEPRECATED(LLAMA_API int32_t llama_n_vocab (const struct llama_vocab * vocab), "use llama_vocab_n_tokens instead");
1679@ctypes_function("llama_n_vocab", [llama_vocab_p_ctypes], ctypes.c_int32)
1680def llama_n_vocab(model: llama_vocab_p, /) -> int: ...
1681
1682
1683_llama_n_vocab = llama_n_vocab

Callers

nothing calls this directly

Calls 1

_warn_deprecatedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…