Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -140,6 +140,7 @@ def _resolve_fi_ar_backend() -> tuple[str, bool]:
|
||||
is True only when ``auto`` selects mnnvl for a single node, so that
|
||||
workspace creation can fall back to trtllm on single-node topologies
|
||||
without NVSwitch multicast support (where mnnvl is unavailable).
|
||||
|
||||
"""
|
||||
backend = envs.VLLM_FLASHINFER_ALLREDUCE_BACKEND
|
||||
if backend != "auto":
|
||||
@@ -168,8 +169,7 @@ def get_fi_ar_workspace(
|
||||
dtype: torch.dtype,
|
||||
group: ProcessGroup,
|
||||
):
|
||||
"""
|
||||
Return the allreduce workspace for non-quant patterns, initializing if needed.
|
||||
"""Return the allreduce workspace for non-quant patterns, initializing if needed.
|
||||
|
||||
Used by AllReduceFusionPass (non-quant patterns) and FlashInferAllReduce
|
||||
for standalone allreduce. Backend is controlled by
|
||||
@@ -234,8 +234,7 @@ def get_fi_ar_quant_workspace(
|
||||
dtype: torch.dtype,
|
||||
group: ProcessGroup,
|
||||
):
|
||||
"""
|
||||
Return the allreduce workspace for quant patterns, initializing if needed.
|
||||
"""Return the allreduce workspace for quant patterns, initializing if needed.
|
||||
|
||||
Backend is controlled by VLLM_FLASHINFER_ALLREDUCE_BACKEND env var, matching
|
||||
non-quant fusion. With ``auto`` this prefers mnnvl and falls back to trtllm
|
||||
|
||||
Reference in New Issue
Block a user