@@ -721,7 +721,7 @@ struct gguf_file_saver {
721
721
file.write_i32 (n_kv);
722
722
}
723
723
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) {
725
725
std::vector<std::string> data (n_arr);
726
726
727
727
for (int j = 0 ; j < n_arr; ++j) {
@@ -732,7 +732,7 @@ struct gguf_file_saver {
732
732
file.write_arr (key, type, data);
733
733
}
734
734
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) {
736
736
std::vector<float > data (n_arr);
737
737
738
738
for (int j = 0 ; j < n_arr; ++j) {
@@ -768,9 +768,9 @@ struct gguf_file_saver {
768
768
const gguf_type arr_type = gguf_get_arr_type (fl->gguf_ctx , i);
769
769
const int n_arr = gguf_get_arr_n (fl->gguf_ctx , i);
770
770
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);
772
772
} 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);
774
774
} else {
775
775
throw std::runtime_error (" not implemented" );
776
776
}
0 commit comments