MCPcopy Create free account
hub / github.com/andrewkchan/deepseek.cpp / value_cache

Method value_cache

src/model.h:323–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321 f16_t* key_cache() const { return _key_cache; }
322 f16_t* key_cache(int pos) const { return _key_cache + pos * _config->head_dim * _config->n_heads; }
323 f16_t* value_cache() const { return _value_cache; }
324 f16_t* value_cache(int pos) const { return _value_cache + pos * _config->v_head_dim * _config->n_heads; }
325
326 double active_bytes(size_t pos) const override;

Callers 1

_attention_implMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected