Skip to content

LLM inference in C/C++

C++ ggml

model: fix build failed (#24193)

Xuan-Son Nguyenc4a278d68efa
diff --git a/src/llama-model.cpp b/src/llama-model.cpp
index 6808ad044c..137d3501e0 100644
--- a/src/llama-model.cpp
+++ b/src/llama-model.cpp
@@ -1764,7 +1764,7 @@ void llama_model::print_info() const {
[](const auto & entry) { return entry >= 0; })) {
LLAMA_LOG_INFO("%s: deepstack_mapping_arr = %s\n", __func__,
print_f([&](uint32_t il) { return hparams.deepstack_mapping_arr[il]; },
- hparams.n_layer).c_str());
+ hparams.n_layer()).c_str());
}
// MRoPE (Multi-axis Rotary Position Embedding) sections
if (const auto & s = hparams.rope_sections; s[0] || s[1] || s[2] || s[3]) {