mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-08 16:57:14 +08:00
[UX] improve profiler error message (#31125)
Signed-off-by: Boyuan Feng <boyuan@meta.com>
This commit is contained in:
parent
022f3cea53
commit
8dd0db687b
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user