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

Function eval_id

examples/llava/llava-cli.cpp:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static bool eval_id(struct llama_context * ctx_llama, int id, int * n_past) {
30 std::vector<llama_token> tokens;
31 tokens.push_back(id);
32 return eval_tokens(ctx_llama, tokens, 1, n_past);
33}
34
35static bool eval_string(struct llama_context * ctx_llama, const char* str, int n_batch, int * n_past, bool add_bos){
36 std::string str2 = str;

Callers 1

sampleFunction · 0.85

Calls 2

eval_tokensFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected