Skip to content

Commit 80ecbbf

Browse files
committed
add stable=True to argsort
Signed-off-by: Vadim Gimpelson <vadim.gimpelson@gmail.com>
1 parent ff30c1b commit 80ecbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/v1/attention/backends/gdn_attn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def build( # type: ignore[override]
229229
spec_token_masks = torch.repeat_interleave(
230230
spec_sequence_masks, query_lens
231231
)
232-
indx = torch.argsort(spec_token_masks)
232+
indx = torch.argsort(spec_token_masks, stable=True)
233233
num_non_spec_tokens = num_prefill_tokens + num_decode_tokens
234234
non_spec_token_indx = indx[:num_non_spec_tokens]
235235
spec_token_indx = indx[num_non_spec_tokens:]

0 commit comments

Comments
 (0)