MCPcopy Create free account
hub / github.com/cactus-compute/cactus / update_kv_cache

Method update_kv_cache

cactus/engine/engine_model.cpp:368–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void Model::update_kv_cache(CactusGraph* gb, size_t seq_len) {
369 kv_cache_.update_from_graph(gb, cache_k_output_nodes_, cache_v_output_nodes_,
370 seq_len, config_.num_layers);
371}
372
373void Model::remove_thinking_tokens(const std::vector<std::pair<size_t, size_t>>& ranges) {
374 for (auto it = ranges.rbegin(); it != ranges.rend(); ++it)

Callers 4

prefill_with_imagesMethod · 0.80
decode_with_imagesMethod · 0.80
decode_multimodalMethod · 0.80
prefill_with_imagesMethod · 0.80

Calls 1

update_from_graphMethod · 0.80

Tested by

no test coverage detected