MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_is_normal_token

Function llama_is_normal_token

llama.cpp:7016–7018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7014}
7015
7016static bool llama_is_normal_token(const llama_vocab & vocab, llama_token id) {
7017 return vocab.id_to_token[id].type == LLAMA_TOKEN_TYPE_NORMAL;
7018}
7019
7020static bool llama_is_unknown_token(const llama_vocab & vocab, llama_token id) {
7021 return vocab.id_to_token[id].type == LLAMA_TOKEN_TYPE_UNKNOWN;

Callers 1

llama_token_to_pieceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected