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
04ad0dc2
Unverified
Commit
04ad0dc2
authored
Sep 16, 2025
by
Jee Jee Li
Committed by
GitHub
Sep 16, 2025
Browse files
[benchmark] Add triton version in the moe tuned config (#24769)
Signed-off-by:
Jee Jee Li
<
pandaleefree@gmail.com
>
parent
238c4c17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
benchmarks/kernels/benchmark_moe.py
benchmarks/kernels/benchmark_moe.py
+1
-1
vllm/model_executor/layers/fused_moe/fused_moe.py
vllm/model_executor/layers/fused_moe/fused_moe.py
+4
-1
vllm/triton_utils/importing.py
vllm/triton_utils/importing.py
+1
-1
No files found.
benchmarks/kernels/benchmark_moe.py
View file @
04ad0dc2
...
...
@@ -560,7 +560,7 @@ def save_configs(
filename
=
os
.
path
.
join
(
save_dir
,
filename
)
print
(
f
"Writing best config to
{
filename
}
..."
)
with
open
(
filename
,
"w"
)
as
f
:
json
.
dump
(
configs
,
f
,
indent
=
4
)
json
.
dump
(
{
"triton_version"
:
triton
.
__version__
,
**
configs
}
,
f
,
indent
=
4
)
f
.
write
(
"
\n
"
)
...
...
vllm/model_executor/layers/fused_moe/fused_moe.py
View file @
04ad0dc2
...
...
@@ -720,7 +720,10 @@ def get_moe_configs(
logger
.
info
(
"Using configuration from %s for MoE layer."
,
config_file_path
)
# If a configuration has been found, return it
return
{
int
(
key
):
val
for
key
,
val
in
json
.
load
(
f
).
items
()}
tuned_config
=
json
.
load
(
f
)
# Delete triton_version from tuned_config
tuned_config
.
pop
(
"triton_version"
,
None
)
return
{
int
(
key
):
val
for
key
,
val
in
tuned_config
.
items
()}
# If no optimized configuration is available, we will use the default
# configuration
...
...
vllm/triton_utils/importing.py
View file @
04ad0dc2
...
...
@@ -68,7 +68,7 @@ class TritonPlaceholder(types.ModuleType):
def
__init__
(
self
):
super
().
__init__
(
"triton"
)
self
.
__version__
=
"3.
3
.0"
self
.
__version__
=
"3.
4
.0"
self
.
jit
=
self
.
_dummy_decorator
(
"jit"
)
self
.
autotune
=
self
.
_dummy_decorator
(
"autotune"
)
self
.
heuristics
=
self
.
_dummy_decorator
(
"heuristics"
)
...
...
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