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

Function common_detokenize

subprojects/llama.cpp/common/common.cpp:1590–1594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1588}
1589
1590std::string common_detokenize(const struct llama_context * ctx, const std::vector<llama_token> & tokens, bool special) {
1591 const llama_model * model = llama_get_model(ctx);
1592 const llama_vocab * vocab = llama_model_get_vocab(model);
1593 return common_detokenize(vocab, tokens, special);
1594}
1595
1596std::string common_detokenize(const struct llama_vocab * vocab, const std::vector<llama_token> & tokens, bool special) {
1597 std::string text;

Callers 7

generate_responseFunction · 0.85
mainFunction · 0.85
detokenizeMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
draftMethod · 0.85

Calls 7

llama_get_modelFunction · 0.85
llama_model_get_vocabFunction · 0.85
maxFunction · 0.85
llama_detokenizeFunction · 0.85
sizeMethod · 0.65
resizeMethod · 0.45
dataMethod · 0.45

Tested by 4

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
draftMethod · 0.68