Skip to content

Commit 0f694f8

Browse files
committed
llama : fix method names
1 parent cf1f907 commit 0f694f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gguf-llama.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ struct gguf_file_saver {
721721
file.write_i32(n_kv);
722722
}
723723

724-
void write_hparam_arr_str(const std::string & key, enum gguf_type type, int i, int n_arr) {
724+
void write_kv_arr_str(const std::string & key, enum gguf_type type, int i, int n_arr) {
725725
std::vector<std::string> data(n_arr);
726726

727727
for (int j = 0; j < n_arr; ++j) {
@@ -732,7 +732,7 @@ struct gguf_file_saver {
732732
file.write_arr(key, type, data);
733733
}
734734

735-
void write_hparam_arr_f32(const std::string & key, enum gguf_type type, int i, int n_arr) {
735+
void write_kv_arr_f32(const std::string & key, enum gguf_type type, int i, int n_arr) {
736736
std::vector<float> data(n_arr);
737737

738738
for (int j = 0; j < n_arr; ++j) {
@@ -768,9 +768,9 @@ struct gguf_file_saver {
768768
const gguf_type arr_type = gguf_get_arr_type(fl->gguf_ctx, i);
769769
const int n_arr = gguf_get_arr_n (fl->gguf_ctx, i);
770770
if (arr_type == GGUF_TYPE_FLOAT32) {
771-
write_hparam_arr_f32(key, arr_type, i, n_arr);
771+
write_kv_arr_f32(key, arr_type, i, n_arr);
772772
} else if (arr_type == GGUF_TYPE_STRING) {
773-
write_hparam_arr_str(key, arr_type, i, n_arr);
773+
write_kv_arr_str(key, arr_type, i, n_arr);
774774
} else {
775775
throw std::runtime_error("not implemented");
776776
}

0 commit comments

Comments
 (0)