MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / KVCache

Class KVCache

experimental/legacy/transformer/run.cpp:107–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105};
106
107struct KVCache {
108 Tensor keyCache;
109 Tensor valueCache;
110};
111
112void createTransformer(Context &ctx, size_t modelDim, size_t qkvDim,
113 size_t nHeads, size_t batchSize, size_t seqLen,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected