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
ac5cf86a
Unverified
Commit
ac5cf86a
authored
Oct 11, 2023
by
Wang Ran (汪然)
Committed by
GitHub
Oct 10, 2023
Browse files
Fix `__repr__` of `SequenceOutputs` (#1311)
parent
6a611955
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/sequence.py
vllm/sequence.py
+2
-2
No files found.
vllm/sequence.py
View file @
ac5cf86a
...
@@ -359,8 +359,8 @@ class SequenceOutputs:
...
@@ -359,8 +359,8 @@ class SequenceOutputs:
def
__repr__
(
self
)
->
str
:
def
__repr__
(
self
)
->
str
:
return
(
f
"SequenceOutputs(parent_seq_id=
{
self
.
parent_seq_id
}
, "
return
(
f
"SequenceOutputs(parent_seq_id=
{
self
.
parent_seq_id
}
, "
f
"output_token=
{
self
.
output_token
}
)
, "
f
"output_token=
{
self
.
output_token
}
, "
f
"logprobs=
{
self
.
logprobs
}
"
)
f
"logprobs=
{
self
.
logprobs
}
)
"
)
def
__eq__
(
self
,
other
:
object
)
->
bool
:
def
__eq__
(
self
,
other
:
object
)
->
bool
:
if
not
isinstance
(
other
,
SequenceOutputs
):
if
not
isinstance
(
other
,
SequenceOutputs
):
...
...
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