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:
36
36
infer_state_class = InferStateInfo
37
37
38
38
def __init__ (self , kvargs ):
39
- self .infer_state = self .infer_state_class ()
40
39
self .run_mode = kvargs ["run_mode" ]
41
40
self .tp_rank_ = kvargs ["tp_rank" ]
42
41
self .world_size_ = kvargs ["world_size" ]
@@ -331,9 +330,7 @@ def _decode(
331
330
b_seq_len ,
332
331
multimodal_params ,
333
332
):
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 ()
337
334
infer_state .is_prefill = False
338
335
infer_state .batch_size = batch_size
339
336
infer_state .total_token_num = total_token_num
You can’t perform that action at this time.
0 commit comments