Skip to content

Commit

Permalink
update docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDou committed Jul 15, 2024
1 parent f2ef879 commit 3487459
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions vllm/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@ def __repr__(self):

class SimpleRequestOutput:
"""
The output data of an embedding request to the LLM.
The output data of an simple model request to the LLM.
Args:
request_id (str): A unique identifier for the embedding request.
request_id (str): A unique identifier for the simple model request.
outputs (SimpleOutput): Results for the given input.
prompt_token_ids (List[int]): A list of token IDs used in the prompt.
finished (bool): A flag indicating whether the embedding is completed.
finished (bool): A flag indicating whether the result is completed.
"""

def __init__(self, request_id: str, outputs: "SimpleOutput",
Expand All @@ -255,13 +255,13 @@ def from_seq_group(cls,

def __repr__(self):
"""
Returns a string representation of an EmbeddingRequestOutput instance.
Returns a string representation of an SimpleRequestOutput instance.
The representation includes the request_id and the number of outputs,
providing a quick overview of the embedding request's results.
Returns:
str: A string representation of the EmbeddingRequestOutput instance.
str: A string representation of the SimpleRequestOutput instance.
"""
return (f"SimpleRequestOutput(request_id='{self.request_id}', "
f"outputs={repr(self.outputs)}, "
Expand Down
2 changes: 1 addition & 1 deletion vllm/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def __eq__(self, other: object) -> bool:


class SimpleSequenceGroupOutput(SequenceGroupOutput):
"""The model output associated with an embedding sequence group."""
"""The model output associated with an tensor."""

def __init__(
self,
Expand Down

0 comments on commit 3487459

Please sign in to comment.