[CI/Build] Add DSv4.1 auto-label rules and narrow DSv4 (#56332)

Signed-off-by: Joe Cotant <joe@inferact.ai> Co-authored-by: Claude <noreply@anthropic.com>

jcotant-inferact committed Sep 12, 2026 at 09:50 UTC 3bb23e2def9527d941be57c5a7d47401a8dbaedc
2 files changed +26 -3
.github/mergify.yml
+21 -1
@@ -330,12 +330,32 @@ pull_request_rules:
330 - label != stale
331 - or:
332 - files~=^vllm/models/deepseek_v4/
333 - - title~=(?i)(?:\bDSv4\b|deepseek[-\s]?v4)
333 + # Trailing (?![._]?1) keeps V4.1 out: DeepseekV41ForCausalLM is a
334 + # distinct architecture with its own tree and label (DSv4.1).
335 + - title~=(?i)(?:\bDSv4\b|deepseek[-\s_]?v4)(?![._]?1)
336 actions:
337 label:
338 add:
339 - DSv4
340
341 +- name: label-dsv4-1
342 + description: Automatically apply DSv4.1 label
343 + conditions:
344 + - label != stale
345 + - or:
346 + # The 4.1 sources spell the model three ways: deepseek_v4_1 (models),
347 + # deepseek_v41 (most) and deepseekv41 (tool parsers).
348 + - files~=^vllm/models/deepseek_v4_1/
349 + - files~=^vllm/(?:parser|tokenizers|reasoning|transformers_utils/configs)/deepseek_v41.*\.py
350 + - files~=^vllm/tool_parsers/deepseekv41.*\.py
351 + - files~=^rust/src/(?:chat|parser)/src/.*deepseek_v41
352 + - files~=^tests/.*deepseek_?v41
353 + - title~=(?i)(?:\bDSv4[._]?1\b|deepseek[-\s_]?v4[._]?1)
354 + actions:
355 + label:
356 + add:
357 + - DSv4.1
358 +
359 - name: label-nvidia
360 description: Automatically apply nvidia label
361 conditions:
.github/workflows/issue_autolabel.yml
+5 -2
@@ -197,9 +197,12 @@ jobs:
197 deepseek: {
198 keywords: [{ term: "DeepSeek", searchIn: "title" }],
199 },
200 + // DSv4 and DSv4.1 are distinct architectures; these keep them exclusive.
201 DSv4: {
201 - keywords: [{ term: "DSv4", searchIn: "title" }],
202 - substrings: [{ term: "deepseek-v4", searchIn: "title" }],
202 + regexPatterns: [{ pattern: "(?:\\bDSv4\\b|deepseek[-\\s_]?v4)(?![._]?1)", flags: "gi", searchIn: "title" }],
203 + },
204 + "DSv4.1": {
205 + regexPatterns: [{ pattern: "(?:\\bDSv4[._]?1\\b|deepseek[-\\s_]?v4[._]?1)", flags: "gi", searchIn: "title" }],
206 },
207 llama: {
208 keywords: [{ term: "Llama", searchIn: "title" }],