Skip to content

Commit 4e1059e

Browse files
committed
Format conventional GGUF permutation test
Apply the repository-pinned Ruff formatter to the Xverse permutation helper added by #635 so all-files lint is idempotent on the specialized branch. Co-authored-by: Copilot App <[email protected]> Copilot-Session: c9f552d7-041b-482e-b1a6-7227d980ed5f Signed-off-by: Justin Chu <[email protected]>
1 parent 780267a commit 4e1059e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/mobius/integrations/gguf/_conventional_decoder_test.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ def test_xverse_processor_exactly_inverts_pinned_q_and_gqa_k_permutations() -> N
377377

378378
def pinned_permute(tensor: torch.Tensor, heads: int) -> torch.Tensor:
379379
dim = tensor.shape[0] // heads // 2
380-
return tensor.reshape(heads, 2, dim, *tensor.shape[1:]).swapaxes(1, 2).reshape_as(
381-
tensor
380+
return (
381+
tensor.reshape(heads, 2, dim, *tensor.shape[1:]).swapaxes(1, 2).reshape_as(tensor)
382382
)
383383

384384
# Xverse's pinned converter uses all attention heads for Q, but the

0 commit comments

Comments
 (0)