Skip to content

Commit d55c699

Browse files
authored
indent fix
1 parent 25cd3b4 commit d55c699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

convert_hf_to_gguf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5602,8 +5602,8 @@ def set_gguf_parameters(self):
56025602
self.gguf_writer.add_rope_dimension_count(int(rotary_factor * (hparams["hidden_size"] // hparams["num_attention_heads"])))
56035603
rope_scaling = self.hparams.get("rope_scaling") or {}
56045604
if rope_scaling.get("type", rope_scaling.get("rope_type")) == "linear" and "factor" in rope_scaling:
5605-
self.gguf_writer.add_rope_scaling_type(gguf.RopeScalingType.LINEAR)
5606-
self.gguf_writer.add_rope_scaling_factor(rope_scaling["factor"])
5605+
self.gguf_writer.add_rope_scaling_type(gguf.RopeScalingType.LINEAR)
5606+
self.gguf_writer.add_rope_scaling_factor(rope_scaling["factor"])
56075607

56085608
def generate_extra_tensors(self) -> Iterable[tuple[str, Tensor]]:
56095609
if rope_scaling := self.find_hparam(["rope_scaling"], optional=True):

0 commit comments

Comments
 (0)