vllm.models.common.ops.sequence_parallel
¶
Functions:
-
is_sequence_parallel_active–Whether a batch of
num_tokensshards the stream along the sequence.
is_sequence_parallel_active(is_enabled, num_tokens)
cached
¶
Whether a batch of num_tokens shards the stream along the sequence.
Below one token per rank the shards are mostly padding, so the batch stays replicated.