MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / n_gpu_layers

Method n_gpu_layers

subprojects/llama.cpp/src/llama-model.cpp:7155–7157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7153}
7154
7155uint32_t llama_model::n_gpu_layers() const {
7156 return params.n_gpu_layers >= 0 ? params.n_gpu_layers : hparams.n_layer + 1;
7157}
7158
7159llama_split_mode llama_model::split_mode() const {
7160 return params.split_mode;

Callers 3

load_tensorsMethod · 0.95
llama_contextMethod · 0.80
graph_get_cbMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected