Skip to content

Commit dc921b3

Browse files
justinchubyCopilot
andcommitted
Fix lint: wrap long function call arguments
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Justin Chu <justinchu@microsoft.com>
1 parent a6178f2 commit dc921b3

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

src/mobius/rewrite_rules/_group_query_attention.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,13 @@ def rewrite(
647647
gqa_attrs["softcap"] = softcap
648648

649649
outputs = op.GroupQueryAttention(
650-
q, k, v, past_key, past_value, self._seqlens_k, self._total_seq_len,
650+
q,
651+
k,
652+
v,
653+
past_key,
654+
past_value,
655+
self._seqlens_k,
656+
self._total_seq_len,
651657
_domain="com.microsoft",
652658
_outputs=3,
653659
**gqa_attrs,

src/mobius/rewrite_rules/_separate_rope.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ def rewrite(self, op, q, k, v, gqa_out, present_key, present_value, **_):
134134
remaining = list(gqa_node.inputs[3:7])
135135

136136
outputs = op.GroupQueryAttention(
137-
q_rot, k_rot, v, *remaining,
137+
q_rot,
138+
k_rot,
139+
v,
140+
*remaining,
138141
_domain="com.microsoft",
139142
_outputs=3,
140143
**attrs,

src/mobius/rewrite_rules/_unpack_qkv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@ def _proj(w: np.ndarray, name: str) -> ir.Value:
286286
remaining = list(gqa_node.inputs[3:]) # everything after the packed slot
287287

288288
outputs = op.GroupQueryAttention(
289-
q, k, v, *remaining,
289+
q,
290+
k,
291+
v,
292+
*remaining,
290293
_domain="com.microsoft",
291294
_outputs=3,
292295
**attrs,

0 commit comments

Comments
 (0)