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
7bab4bb0
Unverified
Commit
7bab4bb0
authored
Mar 05, 2025
by
Jee Jee Li
Committed by
GitHub
Mar 05, 2025
Browse files
[Misc] Add Qwen2MoeForCausalLM moe tuning support (#14276)
Signed-off-by:
Jee Jee Li
<
pandaleefree@gmail.com
>
parent
e17e4488
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
benchmarks/kernels/benchmark_moe.py
benchmarks/kernels/benchmark_moe.py
+5
-0
No files found.
benchmarks/kernels/benchmark_moe.py
View file @
7bab4bb0
...
...
@@ -509,6 +509,11 @@ def main(args: argparse.Namespace):
intermediate_size
=
config
.
moe_intermediate_size
shard_intermediate_size
=
2
*
intermediate_size
//
args
.
tp_size
block_quant_shape
=
config
.
quantization_config
[
'weight_block_size'
]
elif
config
.
architectures
[
0
]
==
"Qwen2MoeForCausalLM"
:
E
=
config
.
num_experts
topk
=
config
.
num_experts_per_tok
intermediate_size
=
config
.
moe_intermediate_size
shard_intermediate_size
=
2
*
intermediate_size
//
args
.
tp_size
else
:
# Default: Mixtral.
E
=
config
.
num_local_experts
...
...
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