Skip to content

Commit e8ac094

Browse files
fix print datatypes
1 parent b456e10 commit e8ac094

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ggml/src/gguf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ struct gguf_context * gguf_init_from_file_impl(FILE * file, struct gguf_init_par
407407
}
408408
for (size_t j = 0; ok && j < ctx->kv.size(); ++j) {
409409
if (key == ctx->kv[j].key) {
410-
fprintf(stderr, "%s: duplicate key '%s' for tensors %" PRIi64 " and %" PRIi64 " \n", __func__, key.c_str(), j, i);
410+
fprintf(stderr, "%s: duplicate key '%s' for tensors %zu and %" PRIi64 " \n", __func__, key.c_str(), j, i);
411411
ok = false;
412412
}
413413
}

src/llama-model-loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ llama_model_loader::llama_model_loader(const std::string & fname, bool use_mmap,
554554
const enum gguf_type type = gguf_get_kv_type(meta.get(), i);
555555
const std::string type_name =
556556
type == GGUF_TYPE_ARRAY
557-
? format("%s[%s,%d]", gguf_type_name(type), gguf_type_name(gguf_get_arr_type(meta.get(), i)), gguf_get_arr_n(meta.get(), i))
557+
? format("%s[%s,%zu]", gguf_type_name(type), gguf_type_name(gguf_get_arr_type(meta.get(), i)), gguf_get_arr_n(meta.get(), i))
558558
: gguf_type_name(type);
559559

560560
std::string value = gguf_kv_to_str(meta.get(), i);

0 commit comments

Comments
 (0)