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
| 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); |
no test coverage detected