Skip to content

Commit a89b966

Browse files
committed
style: Fix flake8 error in convert_hf_to_gguf
Branch: GraniteFour Signed-off-by: Gabe Goodhart <[email protected]>
1 parent 8f3806f commit a89b966

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
@@ -6014,8 +6014,8 @@ def modify_tensors(
60146014
self, data_torch: Tensor, name: str, bid: int | None
60156015
) -> Iterable[tuple[str, Tensor]]:
60166016
if (
6017-
name.endswith("block_sparse_moe.input_linear.weight") or
6018-
name.endswith("shared_mlp.input_linear.weight")
6017+
name.endswith("block_sparse_moe.input_linear.weight")
6018+
or name.endswith("shared_mlp.input_linear.weight")
60196019
):
60206020
return GraniteMoeModel.modify_tensors(self, data_torch, name, bid)
60216021
return super().modify_tensors(data_torch, name, bid)

0 commit comments

Comments
 (0)