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

Method is_eog

smallthinker/src/llama-vocab.cpp:2162–2164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2160}
2161
2162bool llama_vocab::impl::is_eog(llama_token id) const {
2163 return id != LLAMA_TOKEN_NULL && special_eog_ids.count(id) > 0;
2164}
2165
2166uint8_t llama_vocab::impl::token_to_byte(llama_token id) const {
2167 GGML_ASSERT(get_type() != LLAMA_VOCAB_TYPE_NONE);

Callers 4

llama_vocab_is_eogFunction · 0.80
llama_grammar_apply_implFunction · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected