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

Function common_part

examples/server/server.cpp:217–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215};
216
217static size_t common_part(const std::vector<llama_token> &a, const std::vector<llama_token> &b)
218{
219 size_t i;
220 for (i = 0; i < a.size() && i < b.size() && a[i] == b[i]; i++)
221 {
222 }
223 return i;
224}
225
226enum stop_type
227{

Callers 1

update_slotsMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected