Skip to content

Commit b456e10

Browse files
fix gguf_set_kv
1 parent b87784d commit b456e10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/gguf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ void gguf_set_arr_str(struct gguf_context * ctx, const char * key, const char **
10311031

10321032
// set or add KV pairs from another context
10331033
void gguf_set_kv(struct gguf_context * ctx, const struct gguf_context * src) {
1034-
const int64_t n_kv = gguf_get_n_kv(ctx);
1034+
const int64_t n_kv = gguf_get_n_kv(src);
10351035
for (int64_t i = 0; i < n_kv; ++i) {
10361036
const struct gguf_kv & kv = src->kv[i];
10371037

0 commit comments

Comments
 (0)