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
3eb0c267
Unverified
Commit
3eb0c267
authored
Nov 12, 2025
by
QiliangCui
Committed by
GitHub
Nov 12, 2025
Browse files
[TPU] Support GCS path in VLLM_TORCH_PROFILER_DIR (#28487)
Signed-off-by:
Qiliang Cui
<
derrhein@gmail.com
>
parent
d8140b98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
vllm/envs.py
vllm/envs.py
+5
-3
No files found.
vllm/envs.py
View file @
3eb0c267
...
@@ -824,9 +824,11 @@ environment_variables: dict[str, Callable[[], Any]] = {
...
@@ -824,9 +824,11 @@ environment_variables: dict[str, Callable[[], Any]] = {
# Note that it must be an absolute path.
# Note that it must be an absolute path.
"VLLM_TORCH_PROFILER_DIR"
:
lambda
:
(
"VLLM_TORCH_PROFILER_DIR"
:
lambda
:
(
None
None
if
os
.
getenv
(
"VLLM_TORCH_PROFILER_DIR"
,
None
)
is
None
if
(
val
:
=
os
.
getenv
(
"VLLM_TORCH_PROFILER_DIR"
))
is
None
else
os
.
path
.
abspath
(
else
(
os
.
path
.
expanduser
(
os
.
getenv
(
"VLLM_TORCH_PROFILER_DIR"
,
"."
))
val
if
val
.
startswith
(
"gs://"
)
and
val
[
5
:]
and
val
[
5
]
!=
"/"
else
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
val
))
)
)
),
),
# Enable torch profiler to record shapes if set
# Enable torch profiler to record shapes if set
...
...
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