MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / n_tokens

Method n_tokens

subprojects/llama.cpp/src/llama-vocab.cpp:3363–3365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3361}
3362
3363uint32_t llama_vocab::n_tokens() const {
3364 return (uint32_t) pimpl->id_to_token.size();
3365}
3366
3367uint32_t llama_vocab::n_token_types() const {
3368 return (uint32_t) pimpl->n_token_types;

Callers 15

load_tensorsMethod · 0.45
add_kv_from_modelMethod · 0.45
llama_contextMethod · 0.45
get_logits_ithMethod · 0.45
get_sampled_probs_ithMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45
output_reserveMethod · 0.45

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected