mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-07 06:27:02 +08:00
format
Signed-off-by: Sage Moore <sage@neuralmagic.com>
This commit is contained in:
parent
716b03277e
commit
dc1b6af362
@ -61,6 +61,7 @@ class DPMetadata:
|
||||
# num_tokens_across_dp. If there's an incorrect ordering of ARs
|
||||
# across DP ranks, this tensor can end up containing the number
|
||||
# of padded tokens for a DP rank.
|
||||
|
||||
assert torch.all((should_ubatch_tensor == 0) | (should_ubatch_tensor == 1))
|
||||
|
||||
result: bool = bool(torch.all(should_ubatch_tensor == 1).item())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user