Skip to content

Commit

Permalink
convert-*.py: remove add_name from ChatGLMModel class (#8590)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofosyne authored Jul 19, 2024
1 parent d197545 commit 57b1d4f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion convert_hf_to_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3420,7 +3420,6 @@ def set_vocab(self):
special_vocab.add_to_gguf(self.gguf_writer)

def set_gguf_parameters(self):
self.gguf_writer.add_name(self.hparams["_name_or_path"].split("/")[1]) # THUDM/glm4-9b-chat or THUDM/chatglm3-6b
n_embed = self.hparams.get("hidden_size", self.hparams.get("n_embed"))
n_head = self.hparams.get("n_head", self.hparams.get("num_attention_heads"))
n_head_kv = self.hparams.get("multi_query_group_num", n_head)
Expand Down

0 comments on commit 57b1d4f

Please sign in to comment.