Skip to content

Commit 6e29ed5

Browse files
committed
llama : fix method names
1 parent c9c0b75 commit 6e29ed5

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
@@ -722,7 +722,7 @@ struct gguf_file_saver {
722722
file.write_i32(n_kv);
723723
}
724724

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) {
726726
std::vector<std::string> data(n_arr);
727727

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

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) {
737737
std::vector<float> data(n_arr);
738738

739739
for (int j = 0; j < n_arr; ++j) {
@@ -769,9 +769,9 @@ struct gguf_file_saver {
769769
const gguf_type arr_type = gguf_get_arr_type(fl->gguf_ctx, i);
770770
const int n_arr = gguf_get_arr_n (fl->gguf_ctx, i);
771771
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);
773773
} 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);
775775
} else {
776776
throw std::runtime_error("not implemented");
777777
}

0 commit comments

Comments
 (0)