Skip to content

Commit 3276ca4

Browse files
Update vllm/model_executor/models/bert.py
Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com> Signed-off-by: gjgjos <gjgjos@naver.com>
1 parent 0c22312 commit 3276ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/model_executor/models/bert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def forward(
646646
device = hidden_states.device
647647
H = int(self.mlm_head.dense.in_features)
648648

649-
hs_list = list(torch.split(hidden_states, lens, dim=0))
649+
hs_list = torch.split(hidden_states, lens, dim=0)
650650

651651
padded = hidden_states.new_zeros((B, max_len, H))
652652
valid_mask = torch.zeros((B, max_len), dtype=torch.bool, device=device)

0 commit comments

Comments
 (0)