Skip to content

Commit 074d299

Browse files
committed
update
1 parent 9e0e04b commit 074d299

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lightllm/models/qwen2_vl/infer_struct.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ def __init__(self):
1313
def init_some_extra_state(self, model, input_ids: torch.Tensor):
1414
InferStateInfo.init_some_extra_state(self, model, input_ids)
1515
if self.is_prefill:
16-
self.max_seq_len = self.max_kv_seq_len
17-
self.q_max_seq_len = self.max_q_seq_len
1816
position_ids = self.position_ids
1917
self.position_sin = model._sin_cached[:, position_ids, :].unsqueeze(1)
2018
self.position_cos = model._cos_cached[:, position_ids, :].unsqueeze(1)

0 commit comments

Comments
 (0)