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
ed2c06c3
Commit
ed2c06c3
authored
Feb 11, 2026
by
zhuwenwen
Browse files
fix run error
parent
1940460d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
vllm/forward_context.py
vllm/forward_context.py
+10
-1
vllm/model_executor/layers/linear.py
vllm/model_executor/layers/linear.py
+5
-0
No files found.
vllm/forward_context.py
View file @
ed2c06c3
...
@@ -211,3 +211,12 @@ def set_profilling(profiling):
...
@@ -211,3 +211,12 @@ def set_profilling(profiling):
def
get_profilling
()
->
bool
:
def
get_profilling
()
->
bool
:
global
_profiling
global
_profiling
return
_profiling
return
_profiling
@
contextmanager
def
set_warming_up
(
warming_up
):
global
_warming_up
_warming_up
=
warming_up
def
get_warming_up
()
->
bool
:
global
_warming_up
return
_warming_up
\ No newline at end of file
vllm/model_executor/layers/linear.py
View file @
ed2c06c3
...
@@ -1579,6 +1579,11 @@ class RowParallelLinear(LinearBase):
...
@@ -1579,6 +1579,11 @@ class RowParallelLinear(LinearBase):
self
.
tp_rank
=
get_tensor_model_parallel_rank
()
self
.
tp_rank
=
get_tensor_model_parallel_rank
()
self
.
tp_size
=
get_tensor_model_parallel_world_size
()
self
.
tp_size
=
get_tensor_model_parallel_world_size
()
self
.
enable_dp_attn_moe
=
enable_dp_attn_moe
if
enable_dp_attn_moe
:
self
.
tp_rank
=
get_moe_tp_rank
()
self
.
tp_size
=
get_moe_tp_size
()
if
expect_tp_size
is
not
None
:
if
expect_tp_size
is
not
None
:
self
.
tp_rank
=
0
self
.
tp_rank
=
0
self
.
tp_size
=
1
self
.
tp_size
=
1
...
...
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