Skip to content

Commit 7de7c17

Browse files
committed
llama : give up fix for uint64_t format type by casting to size_t
Otherwise some platforms use "%lu" and others "%llu" for uint64_t, and I'm not sure how to handle that.
1 parent 9e22064 commit 7de7c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17767,7 +17767,7 @@ struct llama_data_read_context {
1776717767
read_to(&v_size_el_ref, sizeof(v_size_el_ref));
1776817768
const size_t v_size_el = ggml_type_size(kv_self.v_l[il]->type);
1776917769
if (v_size_el != v_size_el_ref) {
17770-
LLAMA_LOG_ERROR("%s: mismatched value element size (%zu != %llu, layer %d)\n", __func__, v_size_el, v_size_el_ref, il);
17770+
LLAMA_LOG_ERROR("%s: mismatched value element size (%zu != %zu, layer %d)\n", __func__, v_size_el, (size_t) v_size_el_ref, il);
1777117771
return false;
1777217772
}
1777317773

0 commit comments

Comments
 (0)