[V0 Deprecation] Remove pooling model support in V0 (#23434)
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu> Signed-off-by: Max de Bayser <mbayser@br.ibm.com> Co-authored-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
committed by
GitHub
parent
934bebf192
commit
2554b27baa
@@ -508,12 +508,6 @@ class Sequence:
|
||||
return [0] * len(self.inputs["prompt_embeds"])
|
||||
return self.inputs["prompt_token_ids"]
|
||||
|
||||
@property
|
||||
def token_type_ids(self) -> list[int]:
|
||||
if self.inputs["type"] == "embeds":
|
||||
return []
|
||||
return self.inputs.get("token_type_ids", [])
|
||||
|
||||
@property
|
||||
def multi_modal_data(self) -> MultiModalKwargs:
|
||||
if self.inputs["type"] == "multimodal":
|
||||
@@ -765,10 +759,6 @@ class SequenceGroup:
|
||||
return (self.encoder_seq.prompt_token_ids
|
||||
if self.encoder_seq is not None else None)
|
||||
|
||||
@property
|
||||
def token_type_ids(self) -> Optional[list[int]]:
|
||||
return self.first_seq.token_type_ids
|
||||
|
||||
@property
|
||||
def multi_modal_data(self) -> MultiModalKwargs:
|
||||
if self.first_seq.multi_modal_data:
|
||||
@@ -972,7 +962,6 @@ class SequenceGroupMetadata(
|
||||
computed_block_nums: Optional[list[int]] = None
|
||||
state: Optional[SequenceGroupState] = msgspec.field(
|
||||
default_factory=lambda: SequenceGroupState())
|
||||
token_type_ids: Optional[list[int]] = None
|
||||
multi_modal_data: Optional[MultiModalKwargs] = None
|
||||
multi_modal_placeholders: Optional[MultiModalPlaceholderDict] = None
|
||||
encoder_seq_data: Optional[SequenceData] = None
|
||||
|
||||
Reference in New Issue
Block a user