File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
lightllm/common/basemodel Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ class TpPartBaseModel:
3636 infer_state_class = InferStateInfo
3737
3838 def __init__ (self , kvargs ):
39- self .infer_state = self .infer_state_class ()
4039 self .run_mode = kvargs ["run_mode" ]
4140 self .tp_rank_ = kvargs ["tp_rank" ]
4241 self .world_size_ = kvargs ["world_size" ]
@@ -331,9 +330,7 @@ def _decode(
331330 b_seq_len ,
332331 multimodal_params ,
333332 ):
334- infer_state = self .infer_state
335- if self .graph is None or self .graph .need_capture (batch_size ) or infer_state .is_prefill :
336- infer_state = self .infer_state_class ()
333+ infer_state = self .infer_state_class ()
337334 infer_state .is_prefill = False
338335 infer_state .batch_size = batch_size
339336 infer_state .total_token_num = total_token_num
You can’t perform that action at this time.
0 commit comments