Skip to content

Commit 0d3ce09

Browse files
jmorgancacompilade
andauthored
Update convert_hf_to_gguf.py
Co-authored-by: compilade <[email protected]>
1 parent 7269067 commit 0d3ce09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ def set_gguf_parameters(self):
15411541
rope_factors.append(1 / ((1 - smooth) / factor + smooth))
15421542

15431543
self.gguf_writer.add_rope_scaling_attn_factors(1.0)
1544-
self.gguf_writer.add_tensor(gguf.TENSOR_NAMES[gguf.MODEL_TENSOR.ROPE_FREQS] + ".weight", np.array(rope_factors, dtype=np.float32))
1544+
self.gguf_writer.add_tensor(self.format_tensor_name(gguf.MODEL_TENSOR.ROPE_FREQS), np.array(rope_factors, dtype=np.float32))
15451545

15461546
@staticmethod
15471547
def permute(weights: Tensor, n_head: int, n_head_kv: int | None):

0 commit comments

Comments
 (0)