[CI] Ignore ruff D209, rejoin the docstrings it split, and silence incompatible-rule warnings (#57212)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1085b64425
commit
651a88c09a
@@ -63,8 +63,7 @@ _SPLIT_OCCUPANCY_MULTIPLIER = 2
|
||||
|
||||
def _compute_num_kv_splits(max_seq_len: int, num_threads: int) -> int:
|
||||
"""Mirrors TritonMLAImpl's _compute_num_kv_splits, using the CPU thread
|
||||
count in place of SM count.
|
||||
"""
|
||||
count in place of SM count."""
|
||||
ideal_splits = 1
|
||||
while ideal_splits < max(1, max_seq_len // _MIN_WORK_PER_SPLIT):
|
||||
ideal_splits *= 2
|
||||
|
||||
@@ -847,8 +847,7 @@ class FlashMLASparseImpl(SparseMLACommonImpl[FlashMLASparseMetadata]):
|
||||
prefill_meta: "FlashMLASparseMetadata.FP8SeparatePrefillDecode.Prefill",
|
||||
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
"""All-gather this rank's upconverted KV shard so the chunk's rows attend
|
||||
the whole context, and map their top-k onto the rank-major result.
|
||||
"""
|
||||
the whole context, and map their top-k onto the rank-major result."""
|
||||
shard_rows = int(chunk.chunk_tot_seqlen)
|
||||
assert self.gathered_kv_workspace is not None
|
||||
gathered_kv = self.gathered_kv_workspace[: self.dcp_world_size * shard_rows]
|
||||
|
||||
@@ -1118,8 +1118,7 @@ class DeepseekV32IndexerMetadataBuilder(AttentionMetadataBuilder):
|
||||
|
||||
def _prefill_split_seq_lens(self, seq_lens_cpu: torch.Tensor) -> torch.Tensor:
|
||||
"""Per-request KV lengths the prefill chunker budgets logits with;
|
||||
subclasses whose logits rows are wider than the context override.
|
||||
"""
|
||||
subclasses whose logits rows are wider than the context override."""
|
||||
return seq_lens_cpu
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -70,8 +70,7 @@ class MLAPrefillBackend(ABC):
|
||||
def supports_quant_output(self, quant_key: "QuantKey") -> bool:
|
||||
"""Whether `run_prefill_new_tokens` can write quantized output
|
||||
directly (fused) for the given quant key, skipping the post-quant
|
||||
pass. Overridden by backends that support it.
|
||||
"""
|
||||
pass. Overridden by backends that support it."""
|
||||
return False
|
||||
|
||||
def supports_out(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user