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

Function llama_is_unknown_token

llama.cpp:7020–7022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
7022}
7023
7024static bool llama_is_control_token(const llama_vocab & vocab, llama_token id) {
7025 return vocab.id_to_token[id].type == LLAMA_TOKEN_TYPE_CONTROL;

Callers 1

llama_token_to_pieceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected