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
8d971060
Commit
8d971060
authored
Sep 04, 2025
by
王敏
Browse files
暂时去掉profilling标志位,避免影响其他模型
parent
7a97637e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+3
-3
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
8d971060
...
@@ -2224,8 +2224,8 @@ class GPUModelRunner(LoRAModelRunnerMixin):
...
@@ -2224,8 +2224,8 @@ class GPUModelRunner(LoRAModelRunnerMixin):
def
profile_run
(
self
)
->
None
:
def
profile_run
(
self
)
->
None
:
# set profiling flag to avoid torch compile
# set profiling flag to avoid torch compile
set_profilling
(
True
)
#
set_profilling(True)
self
.
_sync_device
()
#
self._sync_device()
# Profile with multimodal encoder & encoder cache.
# Profile with multimodal encoder & encoder cache.
# TODO: handle encoder-decoder models once we support them.
# TODO: handle encoder-decoder models once we support them.
...
@@ -2310,7 +2310,7 @@ class GPUModelRunner(LoRAModelRunnerMixin):
...
@@ -2310,7 +2310,7 @@ class GPUModelRunner(LoRAModelRunnerMixin):
del
hidden_states
,
output
del
hidden_states
,
output
self
.
encoder_cache
.
clear
()
self
.
encoder_cache
.
clear
()
gc
.
collect
()
gc
.
collect
()
set_profilling
(
False
)
#
set_profilling(False)
def
capture_model
(
self
)
->
None
:
def
capture_model
(
self
)
->
None
:
if
not
self
.
use_cuda_graph
:
if
not
self
.
use_cuda_graph
:
...
...
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