llama-cpp-d ~master (2026-03-20T18:06:26.5280947)
Dub
Repo
LlamaModel.loadVocabOnly
llama
model
LlamaModel
Load only the vocabulary (no weights). Useful for tokenization without inference.
struct
LlamaModel
static
LlamaModel
loadVocabOnly
(
string
path
)
Meta
Source
See Implementation
llama
model
LlamaModel
functions
chatTemplate
metaKeyAt
metaVal
metaValAt
mixins
__anonymous
properties
decoderStartToken
desc
hasDecoder
hasEncoder
isRecurrent
metaCount
nCtxTrain
nEmbd
nHead
nLayer
nParams
nVocab
size
vocab
static functions
loadFromFile
loadVocabOnly
Load only the vocabulary (no weights). Useful for tokenization without inference.