Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hiworldwzj authored Feb 26, 2025
1 parent 9af2b0c commit 29237df
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lightllm/common/basemodel/basemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class TpPartBaseModel:
infer_state_class = InferStateInfo

def __init__(self, kvargs):
self.infer_state = self.infer_state_class()
self.run_mode = kvargs["run_mode"]
self.tp_rank_ = kvargs["tp_rank"]
self.world_size_ = kvargs["world_size"]
Expand Down Expand Up @@ -331,9 +330,7 @@ def _decode(
b_seq_len,
multimodal_params,
):
infer_state = self.infer_state
if self.graph is None or self.graph.need_capture(batch_size) or infer_state.is_prefill:
infer_state = self.infer_state_class()
infer_state = self.infer_state_class()
infer_state.is_prefill = False
infer_state.batch_size = batch_size
infer_state.total_token_num = total_token_num
Expand Down

0 comments on commit 29237df

Please sign in to comment.