File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments