We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c22312 commit 3276ca4Copy full SHA for 3276ca4
vllm/model_executor/models/bert.py
@@ -646,7 +646,7 @@ def forward(
646
device = hidden_states.device
647
H = int(self.mlm_head.dense.in_features)
648
649
- hs_list = list(torch.split(hidden_states, lens, dim=0))
+ hs_list = torch.split(hidden_states, lens, dim=0)
650
651
padded = hidden_states.new_zeros((B, max_len, H))
652
valid_mask = torch.zeros((B, max_len), dtype=torch.bool, device=device)
0 commit comments