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
c3f05b09
Unverified
Commit
c3f05b09
authored
Jan 13, 2025
by
Chenguang Li
Committed by
GitHub
Jan 13, 2025
Browse files
[Misc]Minor Changes about Worker (#11555)
Signed-off-by:
Chenguang Li
<
757486878@qq.com
>
parent
cf6bbcb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
vllm/v1/worker/gpu_worker.py
vllm/v1/worker/gpu_worker.py
+0
-1
vllm/worker/worker.py
vllm/worker/worker.py
+0
-1
No files found.
vllm/v1/worker/gpu_worker.py
View file @
c3f05b09
...
@@ -132,7 +132,6 @@ class Worker:
...
@@ -132,7 +132,6 @@ class Worker:
# Execute a forward pass with dummy inputs to profile the memory usage
# Execute a forward pass with dummy inputs to profile the memory usage
# of the model.
# of the model.
self
.
model_runner
.
profile_run
()
self
.
model_runner
.
profile_run
()
torch
.
cuda
.
synchronize
()
free_gpu_memory
,
_
=
torch
.
cuda
.
mem_get_info
()
free_gpu_memory
,
_
=
torch
.
cuda
.
mem_get_info
()
# NOTE(woosuk): Here we assume that the other processes using the same
# NOTE(woosuk): Here we assume that the other processes using the same
...
...
vllm/worker/worker.py
View file @
c3f05b09
...
@@ -200,7 +200,6 @@ class Worker(LocalOrDistributedWorkerBase):
...
@@ -200,7 +200,6 @@ class Worker(LocalOrDistributedWorkerBase):
weights_memory_in_bytes
=
self
.
model_runner
.
weights_memory_in_bytes
=
self
.
model_runner
.
model_memory_usage
)
as
result
:
model_memory_usage
)
as
result
:
self
.
model_runner
.
profile_run
()
self
.
model_runner
.
profile_run
()
torch
.
cuda
.
synchronize
()
self
.
_assert_memory_footprint_increased_during_profiling
()
self
.
_assert_memory_footprint_increased_during_profiling
()
...
...
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