fix print datatypes
This commit is contained in:
parent
b456e10966
commit
e8ac0945ca
2 changed files with 2 additions and 2 deletions
|
@ -407,7 +407,7 @@ struct gguf_context * gguf_init_from_file_impl(FILE * file, struct gguf_init_par
|
||||||
}
|
}
|
||||||
for (size_t j = 0; ok && j < ctx->kv.size(); ++j) {
|
for (size_t j = 0; ok && j < ctx->kv.size(); ++j) {
|
||||||
if (key == ctx->kv[j].key) {
|
if (key == ctx->kv[j].key) {
|
||||||
fprintf(stderr, "%s: duplicate key '%s' for tensors %" PRIi64 " and %" PRIi64 " \n", __func__, key.c_str(), j, i);
|
fprintf(stderr, "%s: duplicate key '%s' for tensors %zu and %" PRIi64 " \n", __func__, key.c_str(), j, i);
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -554,7 +554,7 @@ llama_model_loader::llama_model_loader(const std::string & fname, bool use_mmap,
|
||||||
const enum gguf_type type = gguf_get_kv_type(meta.get(), i);
|
const enum gguf_type type = gguf_get_kv_type(meta.get(), i);
|
||||||
const std::string type_name =
|
const std::string type_name =
|
||||||
type == GGUF_TYPE_ARRAY
|
type == GGUF_TYPE_ARRAY
|
||||||
? 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))
|
? 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))
|
||||||
: gguf_type_name(type);
|
: gguf_type_name(type);
|
||||||
|
|
||||||
std::string value = gguf_kv_to_str(meta.get(), i);
|
std::string value = gguf_kv_to_str(meta.get(), i);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue