Skip to content

Commit f3d0a23

Browse files
committed
delete comments
1 parent ca168fc commit f3d0a23

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,13 +3503,8 @@ def set_gguf_parameters(self):
35033503
rope_dim = hparams["head_dim"]
35043504
else:
35053505
rope_dim = hparams["hidden_size"] // hparams["num_attention_heads"]
3506-
self.gguf_writer.add_rope_dimension_count(rope_dim)
3507-
3508-
# if self.hparams.get("rope_scaling") is not None and "factor" in self.hparams["rope_scaling"]:
3509-
# if self.hparams["rope_scaling"].get("type") == "linear":
3510-
# self.gguf_writer.add_rope_scaling_type(gguf.RopeScalingType.LINEAR)
3511-
# self.gguf_writer.add_rope_scaling_factor(self.hparams["rope_scaling"]["factor"])
35123506

3507+
self.gguf_writer.add_rope_dimension_count(rope_dim)
35133508
self.gguf_writer.add_rope_scaling_type(gguf.RopeScalingType.NONE)
35143509
self.gguf_writer.add_leading_dense_block_count(hparams["first_k_dense_replace"])
35153510
self.gguf_writer.add_vocab_size(hparams["vocab_size"])

0 commit comments

Comments
 (0)