Skip to content

Commit 8c6af02

Browse files
committed
fix python type check
1 parent ebd78cc commit 8c6af02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

convert_hf_to_gguf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7621,7 +7621,8 @@ def set_gguf_parameters(self):
76217621
for i in sliding_window_layout:
76227622
if i != 0:
76237623
sliding_window = self.hparams.get("sliding_window_size")
7624-
self.gguf_writer.add_sliding_window(sliding_window)
7624+
if sliding_window:
7625+
self.gguf_writer.add_sliding_window(sliding_window)
76257626
break
76267627

76277628
_experts: list[dict[str, Tensor]] | None = None

0 commit comments

Comments
 (0)