@@ -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 = []
@@ -676,11 +676,11 @@ def set_step(self, step: int):
676676 self ._num_cross = self .history_multimodals .get_encoder_len (self ._num_history_ids , num_all_ids )
677677
678678 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 )} '
679+ repr = f'SchedulerSequence(seq_id={ self .seq_id } , session_id= { self .session_id } , history_len={ self .history_len } , '
680+ repr += f'num_all_ids ={ self .num_all_ids } , status= { self .status } , num_new_tokens= { self . num_new_tokens } , '
681+ repr += f'num_blocks={ self .num_blocks } , multimodals_ranges ={ self .history_multimodals . _mm_ranges } , '
682+ repr += f'last_shared_node={ getattr (self .logical_blocks , "last_shared_node" , None )} ) '
683683 return repr
684-
684+
685685 def __str__ (self ):
686- return self .__repr__ ()
686+ return self .__repr__ ()
0 commit comments