Skip to content

Commit d117d4d

Browse files
committed
llama : print tensor meta for debugging
1 parent 3418c03 commit d117d4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llama.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,11 @@ struct llama_model_loader {
21802180
type_max = type;
21812181
}
21822182

2183-
// LLAMA_LOG_INFO("%s: - tensor %4d: %32s %-8s [ %s ]\n", __func__, i, name, ggml_type_name(meta->type), llama_format_tensor_shape(meta).c_str());
2183+
// TODO: make runtime configurable
2184+
#if 0
2185+
struct ggml_tensor * meta = ggml_get_tensor(ctx_meta, gguf_get_tensor_name(ctx_gguf, i));
2186+
LLAMA_LOG_INFO("%s: - tensor %4d: %32s %-8s [ %s ]\n", __func__, i, ggml_get_name(meta), ggml_type_name(type), llama_format_tensor_shape(meta).c_str());
2187+
#endif
21842188
}
21852189

21862190
switch (type_max) {

0 commit comments

Comments
 (0)