ember.cpp
0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
Loading...
Searching...
No Matches
Functions
kv_cache.h File Reference
#include "
model.h
"
Include dependency graph for kv_cache.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions
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
)
Function Documentation
◆
initialize_kv_cache()
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
)
kv_cache.h
Generated by
1.9.8