Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e0613702
Unverified
Commit
e0613702
authored
Apr 09, 2026
by
Chuan (Richard) Li
Committed by
GitHub
Apr 09, 2026
Browse files
[ROCm] Fix AITER ops fake impl and minor bugs (#36092)
Signed-off-by:
Li
<
chuali@amd.com
>
parent
9853a3c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
vllm/_aiter_ops.py
vllm/_aiter_ops.py
+8
-4
No files found.
vllm/_aiter_ops.py
View file @
e0613702
...
@@ -336,9 +336,13 @@ def _rocm_aiter_fused_topk_fake(
...
@@ -336,9 +336,13 @@ def _rocm_aiter_fused_topk_fake(
router_logits
:
torch
.
Tensor
,
router_logits
:
torch
.
Tensor
,
top_k
:
int
,
top_k
:
int
,
gate_up
:
bool
,
gate_up
:
bool
,
)
->
None
:
)
->
tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
# tuple[torch.Tensor, torch.Tensor]:
num_tokens
=
x
.
shape
[
0
]
pass
topk_weights
=
torch
.
empty
(
(
num_tokens
,
top_k
),
dtype
=
torch
.
float32
,
device
=
x
.
device
)
topk_indices
=
torch
.
empty
((
num_tokens
,
top_k
),
dtype
=
torch
.
int32
,
device
=
x
.
device
)
return
topk_weights
,
topk_indices
# Cache whether aiter supports FP8 MLA parameters
# Cache whether aiter supports FP8 MLA parameters
...
@@ -1918,7 +1922,7 @@ class rocm_aiter_ops:
...
@@ -1918,7 +1922,7 @@ class rocm_aiter_ops:
@
staticmethod
@
staticmethod
def
shuffle_weight
(
def
shuffle_weight
(
self
,
tensor
:
torch
.
Tensor
,
layout
:
tuple
[
int
,
int
]
=
(
16
,
16
)
tensor
:
torch
.
Tensor
,
layout
:
tuple
[
int
,
int
]
=
(
16
,
16
)
)
->
torch
.
Tensor
:
)
->
torch
.
Tensor
:
from
aiter.ops.shuffle
import
shuffle_weight
from
aiter.ops.shuffle
import
shuffle_weight
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment