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
b6df37f9
Unverified
Commit
b6df37f9
authored
Jul 21, 2024
by
Woosuk Kwon
Committed by
GitHub
Jul 21, 2024
Browse files
[Misc] Remove abused noqa (#6619)
parent
14f91fe6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
vllm/distributed/device_communicators/shm_broadcast.py
vllm/distributed/device_communicators/shm_broadcast.py
+6
-5
No files found.
vllm/distributed/device_communicators/shm_broadcast.py
View file @
b6df37f9
...
...
@@ -110,7 +110,8 @@ class ShmRingBuffer:
lambda
*
args
,
**
kwargs
:
None
):
try
:
self
.
shared_memory
=
shared_memory
.
SharedMemory
(
name
=
name
)
assert
self
.
shared_memory
.
size
==
self
.
total_bytes_of_buffer
# noqa
assert
(
self
.
shared_memory
.
size
==
self
.
total_bytes_of_buffer
)
except
FileNotFoundError
:
# we might deserialize the object in a different node
# in this case, this object is not used,
...
...
@@ -344,8 +345,8 @@ class MessageQueue:
time
.
sleep
(
RINGBUFFER_SLEEP_INTERVAL
)
# if we wait for a long time, we should warn the user
if
time
.
monotonic
(
)
-
start_time
>
VLLM_RINGBUFFER_WARNING_INTERVAL
*
n_warning
:
# noqa
if
(
time
.
monotonic
(
)
-
start_time
>
VLLM_RINGBUFFER_WARNING_INTERVAL
*
n_warning
)
:
logger
.
warning
(
"No available block found in %s second. "
,
VLLM_RINGBUFFER_WARNING_INTERVAL
)
...
...
@@ -398,8 +399,8 @@ class MessageQueue:
time
.
sleep
(
RINGBUFFER_SLEEP_INTERVAL
)
# if we wait for a long time, we should warn the user
if
time
.
monotonic
(
)
-
start_time
>
VLLM_RINGBUFFER_WARNING_INTERVAL
*
n_warning
:
# noqa
if
(
time
.
monotonic
(
)
-
start_time
>
VLLM_RINGBUFFER_WARNING_INTERVAL
*
n_warning
)
:
logger
.
warning
(
"No available block found in %s second. "
,
VLLM_RINGBUFFER_WARNING_INTERVAL
)
...
...
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