Co-authored-by: Satyam Kumar <satyamk@linkedin.com>
This commit is contained in:
@@ -320,6 +320,9 @@ class ForwardBatch:
|
||||
tbo_parent_token_range: Optional[Tuple[int, int]] = None
|
||||
tbo_children: Optional[List[ForwardBatch]] = None
|
||||
|
||||
# For matryoshka embeddings
|
||||
dimensions: Optional[list[int]] = None
|
||||
|
||||
@classmethod
|
||||
def init_new(
|
||||
cls,
|
||||
@@ -361,6 +364,7 @@ class ForwardBatch:
|
||||
input_embeds=batch.input_embeds,
|
||||
token_type_ids=batch.token_type_ids,
|
||||
tbo_split_seq_index=batch.tbo_split_seq_index,
|
||||
dimensions=batch.dimensions,
|
||||
)
|
||||
device = model_runner.device
|
||||
|
||||
|
||||
Reference in New Issue
Block a user