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
876312f0
Unverified
Commit
876312f0
authored
Feb 27, 2026
by
Nick Hill
Committed by
GitHub
Feb 27, 2026
Browse files
[Core] Fix `gpu_worker.py` pre-commit errors (#35312)
Signed-off-by:
Nick Hill
<
nickhill123@gmail.com
>
parent
5de98abc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
vllm/v1/worker/gpu_worker.py
vllm/v1/worker/gpu_worker.py
+6
-2
No files found.
vllm/v1/worker/gpu_worker.py
View file @
876312f0
...
...
@@ -744,7 +744,8 @@ class Worker(WorkerBase):
# Create the profiler wrapper only on the first start call
if
self
.
profiler
is
None
:
if
self
.
profiler_config
.
profiler
==
"torch"
:
profiler_type
=
self
.
profiler_config
.
profiler
if
profiler_type
==
"torch"
:
self
.
profiler
=
TorchProfilerWrapper
(
self
.
profiler_config
,
worker_name
=
trace_name
,
...
...
@@ -754,9 +755,12 @@ class Worker(WorkerBase):
logger
.
debug
(
"Starting torch profiler with trace name: %s"
,
trace_name
)
elif
self
.
profiler_
config
.
profiler
==
"cuda"
:
elif
profiler_
type
==
"cuda"
:
self
.
profiler
=
CudaProfilerWrapper
(
self
.
profiler_config
)
logger
.
debug
(
"Starting CUDA profiler"
)
else
:
logger
.
warning
(
"Unrecognized profiler: %s"
,
profiler_type
)
return
self
.
profiler
.
start
()
else
:
# Profiler already initialized. Restart profiling but keep
...
...
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