[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:
Harry Mellor
2026-09-16 10:57:24 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent 1085b64425
commit 651a88c09a
693 changed files with 2088 additions and 4171 deletions
+1 -2
View File
@@ -315,8 +315,7 @@ def tp_chunk_gate_up(
device: torch.device | int | None = None,
) -> torch.Tensor:
"""TP-chunk a combined [gate; up] weight, splitting each half separately
so every rank gets a portion of both gate and up.
"""
so every rank gets a portion of both gate and up."""
half = w.shape[dim] // 2
gate = chunk_by_rank(
w.narrow(dim, 0, half), tp_rank, tp_size, dim=dim, device=device