MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / advance_after_direct_append

Method advance_after_direct_append

src/framework/runtime/kv_cache.cpp:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 layers_.push_back(LayerCache{
94 std::move(keys[layer]),
95 std::move(values[layer]),
96 std::vector<float>(cache_elems, 0.0F),
97 std::vector<float>(cache_elems, 0.0F),
98 });
99 }
100}
101
102void TransformerKVCache::import_state(const TransformerKVState & state) {
103 current_end_ = state.current_end;
104 if (layers_.empty()) {
105 valid_steps_ = 0;
106 return;
107 }

Callers 11

run_stepMethod · 0.80
run_step_intoMethod · 0.80
run_stepMethod · 0.80
run_stepMethod · 0.80
run_in_placeMethod · 0.80
run_stepMethod · 0.80
run_stepMethod · 0.80
run_stepMethod · 0.80
run_step_intoMethod · 0.80
run_stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected