[Model Runner V2] batch-sharded sample (#50465)
Signed-off-by: Giancarlo Delfin <gdelfin@inferact.ai>
This commit is contained in:
@@ -164,6 +164,13 @@ class ParallelConfig:
|
||||
"""Whether the deployed model is MoE (if known)."""
|
||||
enable_expert_parallel: bool = False
|
||||
"""Use expert parallelism instead of tensor parallelism for MoE layers."""
|
||||
enable_batch_sharded_sampling: bool | None = None
|
||||
"""Use sharded sampling across tensor parallel ranks. Each rank samples
|
||||
a slice of the batch instead of every rank sampling all of it. Currently
|
||||
defaults to False if not set. Enabling it explicitly raises when the config
|
||||
cannot support it (`tensor_parallel_size` must be > 1, `max_num_seqs` at
|
||||
least `tensor_parallel_size`, and `max_logprobs` non-negative). Models opt in
|
||||
by implementing `compute_logits_local`."""
|
||||
enable_ep_weight_filter: bool = False
|
||||
"""Skip non-local expert weights during model loading when expert
|
||||
parallelism is active. Each rank only reads its own expert shard from
|
||||
|
||||
Reference in New Issue
Block a user