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
3946292a
Commit
3946292a
authored
Mar 12, 2026
by
王敏
Browse files
[fix]添加VLLM_USE_LIGHTOP控制lightop topp_topk融合算子开关
parent
a82a91db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/sample/ops/topk_topp_sampler.py
vllm/v1/sample/ops/topk_topp_sampler.py
+1
-1
No files found.
vllm/v1/sample/ops/topk_topp_sampler.py
View file @
3946292a
...
@@ -94,7 +94,7 @@ class TopKTopPSampler(nn.Module):
...
@@ -94,7 +94,7 @@ class TopKTopPSampler(nn.Module):
self
.
forward
=
self
.
forward_native
self
.
forward
=
self
.
forward_native
else
:
else
:
self
.
forward
=
self
.
forward_native
self
.
forward
=
self
.
forward_native
if
HAS_LIGHTOP_OPT_KERNEL
:
if
HAS_LIGHTOP_OPT_KERNEL
and
envs
.
VLLM_USE_LIGHTOP
:
self
.
forward
=
self
.
forward_lightop_opt
self
.
forward
=
self
.
forward_lightop_opt
self
.
apply_top_k_top_p
=
apply_top_k_top_p
self
.
apply_top_k_top_p
=
apply_top_k_top_p
...
...
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