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
8dd0db68
Unverified
Commit
8dd0db68
authored
Dec 22, 2025
by
Boyuan Feng
Committed by
GitHub
Dec 22, 2025
Browse files
[UX] improve profiler error message (#31125)
Signed-off-by:
Boyuan Feng
<
boyuan@meta.com
>
parent
022f3cea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
vllm/v1/worker/gpu_worker.py
vllm/v1/worker/gpu_worker.py
+6
-1
No files found.
vllm/v1/worker/gpu_worker.py
View file @
8dd0db68
...
@@ -634,7 +634,12 @@ class Worker(WorkerBase):
...
@@ -634,7 +634,12 @@ class Worker(WorkerBase):
def
profile
(
self
,
is_start
:
bool
=
True
):
def
profile
(
self
,
is_start
:
bool
=
True
):
if
self
.
profiler
is
None
:
if
self
.
profiler
is
None
:
raise
RuntimeError
(
"Profiling is not enabled."
)
raise
RuntimeError
(
"Profiling is not enabled. Please set --profiler-config to enable "
"profiling. Example: "
"'--profiler-config.profiler=torch --profiler-config.torch_profiler_dir"
"=YOUR_DIR_PATH_TO_DUMP_TRACE'"
)
if
is_start
:
if
is_start
:
self
.
profiler
.
start
()
self
.
profiler
.
start
()
else
:
else
:
...
...
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