Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
ba0bfd40
Unverified
Commit
ba0bfd40
authored
Oct 02, 2023
by
Zhuohan Li
Committed by
GitHub
Oct 02, 2023
Browse files
TP/quantization/weight loading refactor part 1 - Simplify parallel linear logic (#1181)
parent
84e4e37d
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
vllm/model_executor/utils.py
vllm/model_executor/utils.py
+0
-6
No files found.
vllm/model_executor/utils.py
View file @
ba0bfd40
...
...
@@ -4,9 +4,6 @@ import random
import
numpy
as
np
import
torch
from
vllm.model_executor.parallel_utils.parallel_state
import
model_parallel_is_initialized
from
vllm.model_executor.parallel_utils.tensor_parallel
import
model_parallel_cuda_manual_seed
def
set_random_seed
(
seed
:
int
)
->
None
:
random
.
seed
(
seed
)
...
...
@@ -14,6 +11,3 @@ def set_random_seed(seed: int) -> None:
torch
.
manual_seed
(
seed
)
if
torch
.
cuda
.
is_available
():
torch
.
cuda
.
manual_seed_all
(
seed
)
if
model_parallel_is_initialized
():
model_parallel_cuda_manual_seed
(
seed
)
Prev
1
2
3
Next
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