@@ -352,7 +352,7 @@ def __init__(
352
352
self .block_tables = block_tables
353
353
354
354
355
- class SequenceOutputs :
355
+ class SequenceOutput :
356
356
"""The model output associated with a sequence.
357
357
358
358
Args:
@@ -374,40 +374,40 @@ def __init__(
374
374
self .logprobs = logprobs
375
375
376
376
def __repr__ (self ) -> str :
377
- return (f"SequenceOutputs (parent_seq_id={ self .parent_seq_id } , "
377
+ return (f"SequenceOutput (parent_seq_id={ self .parent_seq_id } , "
378
378
f"output_token={ self .output_token } , "
379
379
f"logprobs={ self .logprobs } )" )
380
380
381
381
def __eq__ (self , other : object ) -> bool :
382
- if not isinstance (other , SequenceOutputs ):
382
+ if not isinstance (other , SequenceOutput ):
383
383
raise NotImplementedError ()
384
384
return (self .parent_seq_id == other .parent_seq_id
385
385
and self .output_token == other .output_token
386
386
and self .logprobs == other .logprobs )
387
387
388
388
389
- class SequenceGroupOutputs :
390
- """The model outputs associated with a sequence group."""
389
+ class SequenceGroupOutput :
390
+ """The model output associated with a sequence group."""
391
391
392
392
def __init__ (
393
393
self ,
394
- samples : List [SequenceOutputs ],
394
+ samples : List [SequenceOutput ],
395
395
prompt_logprobs : Optional [PromptLogprobs ],
396
396
) -> None :
397
397
self .samples = samples
398
398
self .prompt_logprobs = prompt_logprobs
399
399
400
400
def __repr__ (self ) -> str :
401
- return (f"SequenceGroupOutputs (samples={ self .samples } , "
401
+ return (f"SequenceGroupOutput (samples={ self .samples } , "
402
402
f"prompt_logprobs={ self .prompt_logprobs } )" )
403
403
404
404
def __eq__ (self , other : object ) -> bool :
405
- if not isinstance (other , SequenceGroupOutputs ):
405
+ if not isinstance (other , SequenceGroupOutput ):
406
406
raise NotImplementedError ()
407
407
return (self .samples == other .samples
408
408
and self .prompt_logprobs == other .prompt_logprobs )
409
409
410
410
411
- # For each sequence group, we generate a list of SequenceOutputs object,
411
+ # For each sequence group, we generate a list of SequenceOutput object,
412
412
# each of which contains one possible candidate for the next token.
413
- SamplerOutput = List [SequenceGroupOutputs ]
413
+ SamplerOutput = List [SequenceGroupOutput ]
0 commit comments