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
68feb76a
Unverified
Commit
68feb76a
authored
Jan 31, 2026
by
Roy Wang
Committed by
GitHub
Jan 31, 2026
Browse files
[Misc] Replace deprecated interface seed_everything (#33474)
Signed-off-by:
esmeetu
<
jasonailu87@gmail.com
>
parent
4cb59dea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
benchmarks/kernels/cpu/benchmark_cpu_attn.py
benchmarks/kernels/cpu/benchmark_cpu_attn.py
+2
-2
benchmarks/kernels/cpu/benchmark_cpu_fused_moe.py
benchmarks/kernels/cpu/benchmark_cpu_fused_moe.py
+2
-2
No files found.
benchmarks/kernels/cpu/benchmark_cpu_attn.py
View file @
68feb76a
...
...
@@ -14,7 +14,7 @@ from vllm._custom_ops import (
)
from
vllm.platforms
import
CpuArchEnum
,
current_platform
from
vllm.utils.argparse_utils
import
FlexibleArgumentParser
from
vllm.utils.torch_utils
import
STR_DTYPE_TO_TORCH_DTYPE
from
vllm.utils.torch_utils
import
STR_DTYPE_TO_TORCH_DTYPE
,
set_random_seed
from
vllm.v1.attention.backends.cpu_attn
import
CPUAttentionBackend
,
_get_attn_isa
...
...
@@ -58,7 +58,7 @@ def main(
seed
:
int
=
0
,
iters
:
int
=
20
,
)
->
None
:
current_platform
.
seed_everything
(
seed
)
set_random_seed
(
seed
)
num_seqs
=
len
(
seq_lens
)
query_lens
=
[
x
[
0
]
for
x
in
seq_lens
]
kv_lens
=
[
x
[
1
]
for
x
in
seq_lens
]
...
...
benchmarks/kernels/cpu/benchmark_cpu_fused_moe.py
View file @
68feb76a
...
...
@@ -7,8 +7,8 @@ import time
import
numpy
as
np
import
torch
from
vllm.platforms
import
current_platform
from
vllm.utils.argparse_utils
import
FlexibleArgumentParser
from
vllm.utils.torch_utils
import
set_random_seed
# Check if CPU MoE operations are available
try
:
...
...
@@ -41,7 +41,7 @@ def main(
seed
:
int
=
0
,
iters
:
int
=
20
,
)
->
None
:
current_platform
.
seed_everything
(
seed
)
set_random_seed
(
seed
)
# up_dim = 2 * intermediate_size for gate + up projection
up_dim
=
2
*
intermediate_size
...
...
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