@@ -722,7 +722,7 @@ struct gguf_file_saver {
722
722
file.write_i32 (n_kv);
723
723
}
724
724
725
- void write_hparam_arr_str (const std::string & key, enum gguf_type type, int i, int n_arr) {
725
+ void write_kv_arr_str (const std::string & key, enum gguf_type type, int i, int n_arr) {
726
726
std::vector<std::string> data (n_arr);
727
727
728
728
for (int j = 0 ; j < n_arr; ++j) {
@@ -733,7 +733,7 @@ struct gguf_file_saver {
733
733
file.write_arr (key, type, data);
734
734
}
735
735
736
- void write_hparam_arr_f32 (const std::string & key, enum gguf_type type, int i, int n_arr) {
736
+ void write_kv_arr_f32 (const std::string & key, enum gguf_type type, int i, int n_arr) {
737
737
std::vector<float > data (n_arr);
738
738
739
739
for (int j = 0 ; j < n_arr; ++j) {
@@ -769,9 +769,9 @@ struct gguf_file_saver {
769
769
const gguf_type arr_type = gguf_get_arr_type (fl->gguf_ctx , i);
770
770
const int n_arr = gguf_get_arr_n (fl->gguf_ctx , i);
771
771
if (arr_type == GGUF_TYPE_FLOAT32) {
772
- write_hparam_arr_f32 (key, arr_type, i, n_arr);
772
+ write_kv_arr_f32 (key, arr_type, i, n_arr);
773
773
} else if (arr_type == GGUF_TYPE_STRING) {
774
- write_hparam_arr_str (key, arr_type, i, n_arr);
774
+ write_kv_arr_str (key, arr_type, i, n_arr);
775
775
} else {
776
776
throw std::runtime_error (" not implemented" );
777
777
}
0 commit comments