mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-23 08:40:13 +08:00
[Misc] Convert VLLM_TORCH_PROFILER_DIR path to absolute (#23191)
Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
parent
8a19303173
commit
3496274663
@ -673,7 +673,8 @@ environment_variables: dict[str, Callable[[], Any]] = {
|
||||
# Note that it must be an absolute path.
|
||||
"VLLM_TORCH_PROFILER_DIR":
|
||||
lambda: (None if os.getenv("VLLM_TORCH_PROFILER_DIR", None) is None else os
|
||||
.path.expanduser(os.getenv("VLLM_TORCH_PROFILER_DIR", "."))),
|
||||
.path.abspath(os.path.expanduser(os.getenv(
|
||||
"VLLM_TORCH_PROFILER_DIR", ".")))),
|
||||
|
||||
# Enable torch profiler to record shapes if set
|
||||
# VLLM_TORCH_PROFILER_RECORD_SHAPES=1. If not set, torch profiler will
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user