diff --git a/src/llama-impl.cpp b/src/llama-impl.cpp index 60c7fcd050..710a5a1e08 100644 --- a/src/llama-impl.cpp +++ b/src/llama-impl.cpp @@ -109,7 +109,7 @@ std::string llama_format_tensor_shape(const std::vector & ne) { std::string llama_format_tensor_shape(const struct ggml_tensor * t) { char buf[256]; - snprintf(buf, sizeof(buf), "%5" PRId64, t->ne[0]); + snprintf(buf, sizeof(buf), "%6" PRId64, t->ne[0]); for (int i = 1; i < GGML_MAX_DIMS; i++) { snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ", %6" PRId64, t->ne[i]); }