From 096b847a0f4c9f1471917d84e1c57823ec94fd98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20G=C3=A4=C3=9Fler?= Date: Wed, 4 Dec 2024 14:16:05 +0100 Subject: [PATCH] fix wrong type in print --- ggml/src/ggml.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 1f461ba62..7cf3cca71 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -6779,8 +6779,8 @@ struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_p ok = false; break; } - const size_t type_size = ggml_type_size(info->t.type); - const size_t blck_size = ggml_blck_size(info->t.type); + const size_t type_size = ggml_type_size(info->t.type); + const int64_t blck_size = ggml_blck_size(info->t.type); // check that row size is divisible by block size if (blck_size == 0 || info->t.ne[0] % blck_size != 0) { @@ -7350,8 +7350,8 @@ void gguf_set_tensor_type(struct gguf_context * ctx, const char * name, enum ggm GGML_ABORT("tensor not found"); } struct ggml_tensor * tensor = &ctx->info[idx].t; - const size_t type_size = ggml_type_size(type); - const int blck_size = ggml_blck_size(type); + const size_t type_size = ggml_type_size(type); + const int64_t blck_size = ggml_blck_size(type); tensor->type = type; GGML_ASSERT(tensor->ne[0] % blck_size == 0 && "tensor row size not divisible by block size of new type");