Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3363
uint32_t llama_vocab::n_tokens() const {
3364
return (uint32_t) pimpl->id_to_token.size();
3365
}
3366
3367
uint32_t llama_vocab::n_token_types() const {
3368
return (uint32_t) pimpl->n_token_types;
Callers
15
get_overlapping_token_sequences
Function · 0.45
load_tensors
Method · 0.45
add_kv_from_model
Method · 0.45
llama_context
Method · 0.45
get_logits_ith
Method · 0.45
get_sampled_probs_ith
Method · 0.45
get_sampled_logits_ith
Method · 0.45
get_sampled_candidates_ith
Method · 0.45
get_sampled_logits_count
Method · 0.45
encode
Method · 0.45
decode
Method · 0.45
output_reserve
Method · 0.45
Calls
1
size
Method · 0.65
Tested by
no test coverage detected