Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
b39f149a
Commit
b39f149a
authored
Feb 24, 2023
by
Woosuk Kwon
Browse files
Add is_finished
parent
ef6098ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
cacheflow/sequence.py
cacheflow/sequence.py
+3
-0
No files found.
cacheflow/sequence.py
View file @
b39f149a
...
...
@@ -86,6 +86,9 @@ class SequenceGroup:
return
seq
raise
ValueError
(
f
'Sequence
{
seq_id
}
not found.'
)
def
is_finished
(
self
)
->
bool
:
return
all
(
seq
.
status
==
SequenceStatus
.
FINISHED
for
seq
in
self
.
seqs
)
def
__repr__
(
self
)
->
str
:
return
(
f
'SequenceGroup(group_id=
{
self
.
group_id
}
, '
f
'num_seqs=
{
len
(
self
.
seqs
)
}
)'
)
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