Skip to content

Commit 284ddc5

Browse files
committed
Address comments by @compilade
1 parent 7bbc352 commit 284ddc5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

convert_hf_to_gguf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3635,8 +3635,6 @@ def set_gguf_parameters(self):
36353635
self.gguf_writer.add_rope_scaling_type(gguf.RopeScalingType.LINEAR)
36363636
self.gguf_writer.add_rope_scaling_factor(self.hparams["factor"])
36373637

3638-
_experts: list[dict[str, Tensor]] | None = None
3639-
36403638
def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iterable[tuple[str, Tensor]]:
36413639
# * Adding +1 to LayerNorm's weights here to implement layernorm1p w/o changing anything on the GGML engine side
36423640
# model.layers.{l}.input_layernorm.weight

0 commit comments

Comments
 (0)