MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / can_split

Method can_split

tools/server/server-context.cpp:256–262  ·  view source on GitHub ↗

if the context does not have a memory module then all embeddings have to be computed within a single ubatch also we cannot split if the pooling would require any past tokens

Source from the content-addressed store, hash-verified

254 // if the context does not have a memory module then all embeddings have to be computed within a single ubatch
255 // also we cannot split if the pooling would require any past tokens
256 bool can_split() const {
257 GGML_ASSERT(task);
258
259 return
260 !task->need_embd() ||
261 (llama_get_memory(ctx) && llama_pooling_type(ctx) == LLAMA_POOLING_TYPE_LAST);
262 }
263
264 bool can_batch_with(server_slot & other_slot) const {
265 GGML_ASSERT(task);

Callers 1

update_slotsMethod · 0.80

Calls 3

llama_get_memoryFunction · 0.85
need_embdMethod · 0.80
llama_pooling_typeEnum · 0.70

Tested by

no test coverage detected