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

Function llama_is_control_token

llama.cpp:7024–7026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
7026}
7027
7028static bool llama_is_byte_token(const llama_vocab & vocab, llama_token id) {
7029 return vocab.id_to_token[id].type == LLAMA_TOKEN_TYPE_BYTE;

Callers 1

llama_token_to_pieceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected