MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / is_byte

Method is_byte

subprojects/llama.cpp/src/llama-vocab.cpp:2651–2654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2649}
2650
2651bool llama_vocab::impl::is_byte(llama_token id) const {
2652 GGML_ASSERT(type != LLAMA_VOCAB_TYPE_NONE);
2653 return id_to_token[id].attr & LLAMA_TOKEN_ATTR_BYTE;
2654}
2655
2656bool llama_vocab::impl::is_user_defined(llama_token id) const {
2657 GGML_ASSERT(type != LLAMA_VOCAB_TYPE_NONE);

Callers 3

set_vocab_chatglm3Method · 0.80
buildMethod · 0.80
token_to_pieceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected