Skip to content

Commit 18b0e56

Browse files
committed
model : print tensor size during load
1 parent 42eb248 commit 18b0e56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/llama-model-loader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ llama_model_loader::llama_model_loader(
600600

601601
if (trace > 0) {
602602
const uint16_t sid = w.idx;
603-
LLAMA_LOG_INFO("%s: - tensor split %2d: %32s %-8s [ %s ]\n", __func__, sid, ggml_get_name(tensor), ggml_type_name(type), llama_format_tensor_shape(tensor).c_str());
603+
LLAMA_LOG_INFO("%s: - tensor split %2d: %32s %-8s [ %s ] %8.2f MB\n", __func__,
604+
sid, ggml_get_name(tensor), ggml_type_name(type), llama_format_tensor_shape(tensor).c_str(),
605+
ggml_nbytes(tensor)/1024.0f/1024.0f);
604606
}
605607
}
606608

0 commit comments

Comments
 (0)