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
f8a1e39f
Unverified
Commit
f8a1e39f
authored
Oct 17, 2023
by
Woosuk Kwon
Committed by
GitHub
Oct 17, 2023
Browse files
[BugFix] Define `__eq__` in SequenceGroupOutputs (#1389)
parent
a1324352
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vllm/sequence.py
vllm/sequence.py
+6
-0
No files found.
vllm/sequence.py
View file @
f8a1e39f
...
...
@@ -401,6 +401,12 @@ class SequenceGroupOutputs:
return
(
f
"SequenceGroupOutputs(samples=
{
self
.
samples
}
, "
f
"prompt_logprobs=
{
self
.
prompt_logprobs
}
)"
)
def
__eq__
(
self
,
other
:
object
)
->
bool
:
if
not
isinstance
(
other
,
SequenceGroupOutputs
):
raise
NotImplementedError
()
return
(
self
.
samples
==
other
.
samples
and
self
.
prompt_logprobs
==
other
.
prompt_logprobs
)
# For each sequence group, we generate a list of SequenceOutputs object,
# each of which contains one possible candidate for the next token.
...
...
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