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
f42ed372
Commit
f42ed372
authored
Sep 06, 2025
by
zhuwenwen
Browse files
暂时去掉profilling标志位,避免影响其他模型
parent
81301303
Changes
1
Hide 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 @
f42ed372
...
...
@@ -2611,8 +2611,8 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
def
profile_run
(
self
)
->
None
:
# set profiling flag to avoid torch compile
set_profilling
(
True
)
self
.
_sync_device
()
#
set_profilling(True)
#
self._sync_device()
# Profile with multimodal encoder & encoder cache.
if
self
.
supports_mm_inputs
:
...
...
@@ -2681,7 +2681,7 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
del
hidden_states
,
output
self
.
encoder_cache
.
clear
()
gc
.
collect
()
set_profilling
(
False
)
#
set_profilling(False)
def
capture_model
(
self
)
->
None
:
if
self
.
compilation_config
.
cudagraph_mode
==
CUDAGraphMode
.
NONE
:
...
...
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