TinyLlama.cpp 1.0
A lightweight C++ implementation of the TinyLlama language model
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 
)