Skip to content

Commit b7bfc9a

Browse files
authored
remove comment
1 parent 05b52fa commit b7bfc9a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

convert_hf_to_gguf.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,11 +2672,6 @@ def set_gguf_parameters(self):
26722672

26732673
# Treat "original" as "yarn", seems to have been a mistake
26742674
if self.hparams.get("rope_type") in ("yarn", "original"):
2675-
# config.json values differ from standard, we may have to add metadata for these:
2676-
# extrapolation_factor = 1.0
2677-
# attn_factor = 1.0
2678-
# beta_fast = 8
2679-
# beta_slow = 1
26802675
self.gguf_writer.add_rope_scaling_type(gguf.RopeScalingType.YARN)
26812676
self.gguf_writer.add_rope_scaling_factor(self.hparams["scaling_factor"])
26822677
self.gguf_writer.add_rope_scaling_orig_ctx_len(self.hparams["original_max_position_embeddings"])

0 commit comments

Comments
 (0)