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
44e87dde
Commit
44e87dde
authored
Jun 17, 2025
by
yangql
Browse files
修复int4选取config的bug
parent
b3312eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vllm/model_executor/layers/quantization/utils/fused_moe_cuda.py
...odel_executor/layers/quantization/utils/fused_moe_cuda.py
+4
-4
No files found.
vllm/model_executor/layers/quantization/utils/fused_moe_cuda.py
View file @
44e87dde
...
@@ -201,11 +201,11 @@ def config_cuda(M):
...
@@ -201,11 +201,11 @@ def config_cuda(M):
NearestM
=
min
(
reference_points
,
key
=
lambda
x
:
abs
(
x
-
M
))
NearestM
=
min
(
reference_points
,
key
=
lambda
x
:
abs
(
x
-
M
))
if
device_name
==
"K100_AI"
:
if
device_name
==
"K100_AI"
:
mode_1
=
k100ai_gemm1_m_to_mode_dict
.
get
(
M
,
k100ai_gemm1_m_to_mode_dict
[
NearestM
])
mode_1
=
k100ai_gemm1_m_to_mode_dict
.
get
(
Nearest
M
,
k100ai_gemm1_m_to_mode_dict
[
32
])
mode_2
=
k100ai_gemm2_m_to_mode_dict
.
get
(
M
,
k100ai_gemm2_m_to_mode_dict
[
NearestM
])
mode_2
=
k100ai_gemm2_m_to_mode_dict
.
get
(
Nearest
M
,
k100ai_gemm2_m_to_mode_dict
[
32
])
else
:
else
:
mode_1
=
bw_gemm1_m_to_mode_dict
.
get
(
M
,
k100ai
_gemm1_m_to_mode_dict
[
NearestM
])
mode_1
=
bw_gemm1_m_to_mode_dict
.
get
(
NearestM
,
bw
_gemm1_m_to_mode_dict
[
32
])
mode_2
=
bw_gemm2_m_to_mode_dict
.
get
(
M
,
k100ai
_gemm2_m_to_mode_dict
[
NearestM
])
mode_2
=
bw_gemm2_m_to_mode_dict
.
get
(
NearestM
,
bw
_gemm2_m_to_mode_dict
[
32
])
return
mode_1
,
mode_2
return
mode_1
,
mode_2
...
...
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