ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
Loading...
Searching...
No Matches
kv_cache.h
Go to the documentation of this file.
1#ifndef KV_CACHE_H
2#define KV_CACHE_H
3
4#include "model.h"
5
10
11#endif // KV_CACHE_H
size_t j
void initialize_kv_cache(KVCache *kv_cache, const ModelConfig &config, int total_num_model_layers, int num_gpu_layers_to_allocate, int max_seq_len_arg, int num_kv_heads, int head_dim, int max_batch_size_arg)
Complete Key-Value cache for all transformer layers.
Definition model.h:157
Model configuration structure holding architecture and hyperparameters.
Definition model.h:82