mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-12-04 22:56:18 +00:00
update pad seq (#6303)
Co-authored-by: Tong Li <tong.li35271158@gmail.com>
This commit is contained in:
@@ -236,7 +236,7 @@ class VLLMInferenceBackend(BaseInferenceBackend):
|
||||
log_probs.append(p)
|
||||
|
||||
# pad them
|
||||
max_len = max(out_len)
|
||||
max_len = self.generate_config.max_tokens
|
||||
action_mask = torch.ones(len(out_tokens), max_len, dtype=attention_mask.dtype)
|
||||
|
||||
for i, new_token_ids in enumerate(out_tokens):
|
||||
|
||||
Reference in New Issue
Block a user