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

Function llama_token_get_text

llama.cpp:10695–10697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10693}
10694
10695const char * llama_token_get_text(const struct llama_model * model, llama_token token) {
10696 return model->vocab.id_to_token[token].text.c_str();
10697}
10698
10699float llama_token_get_score(const struct llama_model * model, llama_token token) {
10700 return model->vocab.id_to_token[token].score;

Callers 2

tokenize_fileFunction · 0.50
mainFunction · 0.50

Calls 1

c_strMethod · 0.45

Tested by 1

mainFunction · 0.40