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

Function llama_is_byte_token

llama.cpp:7028–7030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
7030}
7031
7032static bool llama_is_user_defined_token(const llama_vocab& vocab, llama_token id) {
7033 return vocab.id_to_token[id].type == LLAMA_TOKEN_TYPE_USER_DEFINED;

Callers 2

llama_token_to_byteFunction · 0.85
llama_token_to_pieceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected