@@ -406,7 +406,7 @@ def get_step(self, step: int) -> int:
406406 def has_data (self , start : int , end : int ) -> bool :
407407 """whether has multimodal data in [start, end)"""
408408 return any ([s < end and e > start for s , e , _ in self ._mm_ranges ])
409-
409+
410410 def get_hash_values (self , start : int , end : int ):
411411 """get multimodals hash values that from [start, end)"""
412412 mm_hash_values = []
@@ -631,7 +631,6 @@ def update_token_ids(self,
631631
632632 # update multimodals
633633 if multimodals is not None :
634- print (multimodals )
635634 multimodals = HistoryMultiModals .update_multimodals (multimodals , self ._num_history_ids )
636635 self .history_multimodals .add_inputs (multimodals )
637636
@@ -676,11 +675,11 @@ def set_step(self, step: int):
676675 self ._num_cross = self .history_multimodals .get_encoder_len (self ._num_history_ids , num_all_ids )
677676
678677 def __repr__ (self ):
679- repr = f'SchedulerSequence(seq_id={ self .seq_id } , histokens_num= { len ( self .history_cache ) } , status= { self . status } , history_len={ self .history_len } , _num_token_ids= { self . _num_token_ids } , num_new_tokens= { self . num_new_tokens } , '
680- repr += f'all_tokens ={ self .history_cache [: self .num_all_ids ] } , '
681- repr += f'num_all_ids= { self . num_all_ids } , num_blocks={ self .num_blocks } , blocks ={ self .logical_blocks . get_real_blocks () } , '
682- repr += f'multimodals_ranges= { self . history_multimodals . _mm_ranges } , last_shared_node={ getattr (self .logical_blocks , "last_shared_node" , None )} '
678+ repr = f'SchedulerSequence(seq_id={ self .seq_id } , session_id= { self .session_id } , history_len={ self .history_len } , '
679+ repr += f'num_all_ids ={ self .num_all_ids } , status= { self .status } , num_new_tokens= { self . num_new_tokens } , '
680+ repr += f'num_blocks={ self .num_blocks } , multimodals_ranges ={ self .history_multimodals . _mm_ranges } , '
681+ repr += f'last_shared_node={ getattr (self .logical_blocks , "last_shared_node" , None )} ) '
683682 return repr
684-
683+
685684 def __str__ (self ):
686- return self .__repr__ ()
685+ return self .__repr__ ()
0 commit comments