GLM-5.3 · Serving

S11 · vLLM MoE

Valid

vLLM Ascend Qwen3-30B-A3B MoE system serving 2dev · Joint Optimization

1.04×PERFORMANCE RATIO
315TOOL EVENTS
1TEXT PATCHES
0BINARY NAMES

01 / PROCESS MAP

Agents over time

Compare agents on one time axis; overlapping spans line up vertically. Select an agent or bar to inspect its events.

Elapsed time · mm:ss

Agent / model
+02:42+04:45+06:48+08:51+10:54
Main agentGLM-5.3Main timeline · 216 calls
Subagent 1GLM-5.3From Main agent · 99 calls

Time starts at the first recorded activity. Select a bar or agent to open its events. Bars span the first and last recorded observation, including gaps; colored ticks mark tool calls. A hollow diamond marks a delegation whose child timing is unavailable.

InspectEditValidateExecuteBuildProfileRollbackOther
230Inspect
17Edit
2Build
12Validate
31Execute
2Profile
21Other

02 / EVENT SEQUENCE

Event timeline

Requests are grouped by agent, activity and topic. Delegations open into child branches. Summaries describe visible requests; tool errors and missing responses are flagged. A recorded response does not establish command success or a performance improvement.

Show event timelineHide event timeline169 groups · 315 calls · 1 subagents

Scroll within this panel to view all events. Command sketches retain familiar programs and options. Values become <val> or <n>; paths, addresses and script bodies are hidden as <path>, <url> and <script>. Each branch belongs to its named agent. Expand a delegation to inspect its child; branches can run concurrently. Call numbers preserve source order, not a serial schedule. Times are relative to the first recorded activity.

Main agent

  1. Inspect · Source & workspace

    Requested workspace inspection and file and log inspection related to source & workspace.

    2 calls · #0001–#0002

    echo <val>ls -l -a <path> <n> > <path>head -n <n>ls -l -a <path>
  2. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0003–#0004

    Read <path>
  3. Inspect · Source & workspace

    Requested workspace inspection and file and log inspection related to source & workspace.

    5 calls · #0005–#0009

    cd <path>find <path> -type <val>head -n <n>echo <flag>du -a <path>sort <flag>
    1 more command sketches
    Read <path>
  4. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    3 calls · #0010–#0012

    Read <path>
  5. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0013–#0014

    Read <path>
  6. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0015–#0015

    Read <path>
  7. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0016–#0016

    Read <path>
  8. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0017–#0017

    Read <path>
  9. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    3 calls · #0018–#0020

    Read <path>
  10. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0021–#0021

    cd <path>python3 -c <script>
  11. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0022–#0022

    Read <path>
  12. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0023–#0023

    Read <path>
  13. Inspect · Device memory

    Requested workspace inspection, file and log inspection and runtime inspection related to device memory.

    1 call · #0024–#0024

    ls -l -a <path>echo <val>ls -l -a <path> <n> >& <path>head -n <n>npu-smi info <n> >& <path>
  14. Inspect · Source & workspace

    Requested environment setup or inspection, source searches and script or workload execution related to source & workspace.

    4 calls · #0025–#0028

    envgrep -E <val>sortecho <val>which <val> <val>python3 -V
    10 more command sketches
    cat <path> <n> > <path>head -n <n>ls <path>head -c <n> <path>echopython3 -c <script> <n> >& <path>tail -n <n>timeout <n> <val> <path> <n> >& <path>cd <path>env <vars> timeout <n> <val> <path> <n> >& <path>
  15. Execute · Benchmark & validation setup

    Requested workspace file updates and environment setup or inspection related to benchmark & validation setup.

    1 call · #0029–#0029

    mkdir -p <path>cd <path>env <vars> nohup <val> <path> > <path> <n> >& <path>echo <val>
  16. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0030–#0030

    Delegate <task>
    Subagent 1· GLM-5.3 · explore · 99 visible callsCompleted

    Delegated by Main agent at call #0030. Runs in the background. Observed activity +03:23–+10:19. Overlapping activity: Main agent.

    1. Build · Dependencies & build setup

      Requested workspace inspection and file and log inspection related to dependencies & build setup.

      1 call · #0031–#0031

      ls <path> <n> > <path>echo <flag>cat <path> <n> > <path>head -n <n>
    2. Inspect · Source & workspace

      Requested workspace inspection, file and log inspection and repository inspection related to source & workspace.

      5 calls · #0032–#0036

      find <path> -maxdepth <n> -type <val>sortecho <flag>find <path> -type <val>ls -l -a <path> <path> <n> > <path>ls -l -a <path>
      6 more command sketches
      find <path> -maxdepth <n>head -n <n>cat <path> <n> > <path>cd <path>git log --oneline <flag> <args>git <val> <flag> <args>
    3. Inspect · Source & workspace

      Requested source searches, file and log inspection and workspace inspection related to source & workspace.

      2 calls · #0039–#0040

      grep -r -n <val> <path> --include <path>head -n <n>ls -R <path> <n> > <path>echo <val>find <path> -iname <val> -o -iname <val>grep -v <val>
      1 more command sketches
      sort
    4. Inspect · Source & workspace

      Requested source searches, file and log inspection and workspace inspection related to source & workspace.

      22 calls · #0042–#0063

      grep -n <val> <path>head -n <n>sed -n <val>wc -l <path> <path> <path> <path>echo <val>Read <path>
      9 more command sketches
      grep -r -n <val> <path> --include <path>grep -v <path>cat <path> <n> > <path>ls <path>grep -i <val>grep -n <val> <path> <path> <n> > <path>grep -r -n <val> <path> <n> > <path>find <path> -name <path> -o -name <val> -type <val>head
    5. Inspect · Parallelism & communication

      Requested source searches and file and log inspection related to parallelism & communication.

      1 call · #0064–#0064

      grep -n <val> <path>head -n <n>
    6. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      2 calls · #0065–#0066

      Read <path>
    7. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      1 call · #0068–#0068

      Read <path>
    8. Inspect · Source & workspace

      Requested workspace inspection and source searches related to source & workspace.

      1 call · #0070–#0070

      ls <path>echo <val>find <path> -type <val> <val> -name <val> -o -name <val> -o -name <val> <args>grep -i <val>sort
    9. Inspect · Source & workspace

      Requested file and log inspection, workspace inspection and source searches related to source & workspace.

      5 calls · #0072–#0076

      cat <path><command> <args>find <path> -type <val>sortgrep -n <val> <path>head -n <n>
      1 more command sketches
      find <path> <path> <path> -type <val>
    10. Inspect · Attention kernels

      1 tool error

      Requested workspace inspection, source searches and file and log inspection related to attention kernels.

      2 calls · #0077–#0078

      ls <path>echo <val>ls <path> <n> > <path>grep -n <val> <path>head -n <n>
    11. Inspect · Source & workspace

      Requested file and log inspection and source searches related to source & workspace.

      3 calls · #0079–#0081

      Read <path>grep -n <val> <path>head -n <n>
    12. Inspect · Attention kernels

      Requested source searches and file and log inspection related to attention kernels.

      1 call · #0082–#0082

      grep -n <val> <path>head -n <n>echo <val>grep -r -n <val> <path>
    13. Inspect · Source & workspace

      Requested file and log inspection, workspace inspection and source searches related to source & workspace.

      2 calls · #0083–#0084

      Read <path>ls <path>echo <val>grep -n <val> <path>head -n <n>
    14. Inspect · Source & workspace

      Requested source searches and file and log inspection related to source & workspace.

      2 calls · #0088–#0089

      grep -r -n <val> <path> <path> <path> <n> > <path>grep -v <val>head -n <n>grep -r -n <val> <path> --include <path> -osed <path>sort -u
    15. Inspect · Source & workspace

      Requested source searches and file and log inspection related to source & workspace.

      1 call · #0092–#0092

      grep -r -n <val> <path> --include <path>grep -v <val>grep <flag> <args>sed <path>head -n <n>
    16. Inspect · Source & workspace

      Requested file and log inspection and source searches related to source & workspace.

      2 calls · #0094–#0095

      Read <path>grep -n <val> <path>head -n <n>
    17. Inspect · Dependencies & build setup

      Requested source searches and file and log inspection related to dependencies & build setup.

      1 call · #0096–#0096

      grep -n <val> <path>head -n <n>
    18. Inspect · Source & workspace

      Requested source searches and file and log inspection related to source & workspace.

      1 call · #0097–#0097

      grep -n <val> <path>head -n <n>
    19. Inspect · Parallelism & communication

      Requested source searches and file and log inspection related to parallelism & communication.

      1 call · #0098–#0098

      grep -n <val> <path>head -n <n>
    20. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      1 call · #0099–#0099

      Read <path>
    21. Inspect · Parallelism & communication

      Requested source searches related to parallelism & communication.

      1 call · #0100–#0100

      grep -n <val> <path>
    22. Inspect · Source & workspace

      Requested source searches and file and log inspection related to source & workspace.

      2 calls · #0103–#0104

      grep -n <val> <path>head -n <n>
    23. Inspect · Source & workspace

      Requested source searches and file and log inspection related to source & workspace.

      1 call · #0106–#0106

      grep -n <val> <path>grep <val>head -n <n>echo <val>grep -r -n <val> <path>
    24. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      1 call · #0108–#0108

      Read <path>
    25. Inspect · Source & workspace

      Requested source searches, file and log inspection and workspace inspection related to source & workspace.

      2 calls · #0110–#0111

      grep -r -n <val> <path>headecho <val>sed -n <val> <path>ls <path>echo <path>
      2 more command sketches
      grep -r -n <val> <path> <n> > <path>head -n <n>
    26. Inspect · Source & workspace

      Requested source searches, file and log inspection and workspace inspection related to source & workspace.

      9 calls · #0113–#0121

      grep -n <val> -A <n> <path>head -n <n>grep -n <val> <path> <path> <n> > <path>echo <val>ls <path> <path><command> <args>
      3 more command sketches
      grep -n <val> <val>grep -n <val> <path>Read <path>
    27. Inspect · Dependencies & build setup

      Requested source searches and file and log inspection related to dependencies & build setup.

      1 call · #0122–#0122

      grep -n <val> -A <n> <path>sed -n <val>
    28. Inspect · Source & workspace

      Requested source searches, file and log inspection and workspace inspection related to source & workspace.

      3 calls · #0123–#0125

      grep -n <val> <path>head -n <n>echo <val>grep -n <val> <path> <n> > <path>find <path> -maxdepth <n> -name <val>grep -r -n <val> <path>
    29. Inspect · Source & workspace

      Requested workspace inspection, source searches and file and log inspection related to source & workspace.

      2 calls · #0127–#0128

      ls <path>echo <val>grep -r -n <val> <path> <n> > <path>head -n <n>Read <path>
    30. Inspect · Source & workspace

      Requested source searches and file and log inspection related to source & workspace.

      2 calls · #0131–#0132

      grep -r -n <val> <path> --include <path>grep -v <val>head -n <n>Read <path>
    31. Build · Dependencies & build setup

      Requested source searches and file and log inspection related to dependencies & build setup.

      1 call · #0134–#0134

      grep -r -n <val> <path> <path> <n> > <path>head -n <n>echo <val>grep -n <val> <flag> <args>
    32. Inspect · Source & workspace

      Requested file and log inspection, source searches and script or workload execution related to source & workspace.

      8 calls · #0137–#0144

      sed -n <val> <path>echo <val>grep -n <val> <path>head -n <n>head -n <n> <path>Read <path>
      8 more command sketches
      python -c <script> <n> > <path>cat <path> <n> > <path>ls <path> <n> > <path>headgrep -n <path> <path>grep -n <val> -A <n> <path>grep -r -n <val> <path> --include <path>grep -v <val>
    33. Inspect · Attention kernels

      Requested source searches and file and log inspection related to attention kernels.

      1 call · #0145–#0145

      grep -r -n <val> <path> --include <path>grep -v <val>head -n <n>echo <val>grep -n <val> <path> <n> > <path>
    34. Inspect · Attention kernels

      Requested source searches and file and log inspection related to attention kernels.

      1 call · #0147–#0147

      grep -r -n <val> <path> <n> > <path>head -n <n>echo <val>grep -n <val> -A <n> <path> <n> > <path>
    35. Inspect · Source & workspace

      Requested source searches and file and log inspection related to source & workspace.

      1 call · #0148–#0148

      grep -r -l -n <val> <path> --include <path>grep -v <val>head -n <n>
    36. Inspect · Attention kernels

      Requested source searches and file and log inspection related to attention kernels.

      3 calls · #0149–#0151

      grep -n <val> <path>head -n <n>Read <path>echo <val>grep -n <val> -A <n> <path> <n> > <path>
    37. Inspect · Source & workspace

      Requested workspace inspection, source searches and file and log inspection related to source & workspace.

      2 calls · #0152–#0153

      ls -l -a <path> <n> > <path>echo <val>grep -n <val> <path>grep <val>headgrep -r -n <val> <path>
      3 more command sketches
      head -n <n>grep -r -n <val> <path> --include <path>grep -v <val>
    38. Inspect · Source & workspace

      Requested source searches and file and log inspection related to source & workspace.

      1 call · #0156–#0156

      grep -n <val> <path>head -n <n>
  17. Inspect · Runtime processes

    Requested workspace inspection, source searches and file and log inspection related to runtime processes.

    2 calls · #0037–#0038

    ls <path>echo <val>grep -n <val> <path>head -n <n>sed -n <val> <path>
  18. Execute · Benchmark & validation setup

    Requested execution waits, workspace inspection and file and log inspection related to benchmark & validation setup.

    1 call · #0041–#0041

    sleep <n>ls -l -a <path>tail -n <n> <path>echo <val>ls <path> <val> <flag> <args>
  19. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0067–#0067

    cd <path>sed -n <val> <val>
  20. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0069–#0069

    cd <path>sed -n <val> <val>
  21. Execute · Device memory

    Requested file and log inspection and runtime inspection related to device memory.

    1 call · #0071–#0071

    tail -n <n> <path>echo <val>npu-smi infotail -n <n>
  22. Inspect · Benchmark & validation setup

    Requested source searches and file and log inspection related to benchmark & validation setup.

    1 call · #0085–#0085

    grep -n <val> -A <n> <path> <path> <n> > <path>head -n <n>echo <val>sed -n <val> <path>
  23. Execute · Device memory

    Requested file and log inspection, runtime inspection and source searches related to device memory.

    1 call · #0086–#0086

    tail -n <n> <path>echo <flag>npu-smi infogrep -E <path>
  24. Inspect · Source & workspace

    Requested file and log inspection and source searches related to source & workspace.

    1 call · #0087–#0087

    cd <path>wc -l <path>grep -n <val> <path>head -n <n>
  25. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0090–#0090

    cd <path>sed -n <val> <path>
  26. Inspect · Batching & scheduling

    Requested source searches, file and log inspection and workspace inspection related to batching & scheduling.

    1 call · #0091–#0091

    cd <path>grep -n <val> <path> <n> > <path>head -n <n>ls <path>
  27. Inspect · Batching & scheduling

    Requested workspace inspection, source searches and file and log inspection related to batching & scheduling.

    1 call · #0093–#0093

    cd <path>find <path> -name <path> <flag> <args>echo <val>grep -n <val> <path>head -n <n>
  28. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    1 call · #0101–#0101

    cd <path>grep -n <val> <path>head -n <n>
  29. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0102–#0102

    cd <path>sed -n <val> <path>
  30. Execute · Device memory

    Requested file and log inspection, runtime inspection and source searches related to device memory.

    1 call · #0105–#0105

    tail -n <n> <path>npu-smi infogrep <n>
  31. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0107–#0107

    cd <path>sed -n <val> <path>
  32. Execute · Device memory

    Requested file and log inspection, runtime inspection and source searches related to device memory.

    1 call · #0109–#0109

    tail -n <n> <path>npu-smi infogrep <n>echo <val>date -u <val>
  33. Inspect · Runtime processes

    Requested source searches related to runtime processes.

    1 call · #0112–#0112

    grep -n <val> -A <n> <path>
  34. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    1 call · #0126–#0126

    grep -r -n <val> --include <path>head -n <n>
  35. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0129–#0129

    sed -n <val> <path>echo <val>
  36. Execute · Device memory

    Requested file and log inspection, runtime inspection and source searches related to device memory.

    1 call · #0130–#0130

    tail -n <n> <path>npu-smi infogrep <n>date -u <val>
  37. Inspect · Source & workspace

    Requested workspace file updates, file and log inspection and workspace inspection related to source & workspace.

    1 call · #0133–#0133

    mkdir -p <path>cat > <path> <script>ls -l -a <path>
  38. Execute · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0135–#0135

    tail -n <n> <path>date -u <val>
  39. Execute · Speculative decoding

    Requested script or workload execution and file and log inspection related to speculative decoding.

    1 call · #0136–#0136

    python3 -c <script> <n> > <path>head -n <n>
  40. Execute · Device memory

    Requested file and log inspection, runtime inspection and source searches related to device memory.

    1 call · #0146–#0146

    tail -n <n> <path>date -u <val>npu-smi infogrep <n>
  41. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0154–#0155

    Write <path>Edit <path>
  42. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0157–#0158

    Edit <path>
  43. Execute · Benchmark & validation setup

    Requested file and log inspection and service requests related to benchmark & validation setup.

    1 call · #0159–#0159

    tail -n <n> <path>date -u <val>echo <flag>curl -s -m <n> <url>head -c <n>echo
  44. Other · Runtime processes

    Requested environment setup or inspection and source searches related to runtime processes.

    1 call · #0160–#0160

    cd <path>env <vars> python3 -c <script> <n> >& <path>grep -v <val>
  45. Execute · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0161–#0161

    tail -n <n> <path>date -u <val>
  46. Inspect · Benchmark & validation setup

    Requested source searches and file and log inspection related to benchmark & validation setup.

    1 call · #0162–#0162

    grep -c <val> <path>grep <val> <path>tail -n <n>echo <flag>grep -c <path> <path>
  47. Execute · Benchmark & validation setup

    Requested source searches, file and log inspection and workspace inspection related to benchmark & validation setup.

    2 calls · #0163–#0164

    grep <val> <path>tail -n <n>echo <flag>grep -c <path> <path>date -u <val>ls <path>
  48. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0165–#0165

    cd <path>sed -n <val> <path>echo <val>
  49. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    2 calls · #0166–#0167

    cd <path>grep -r -n <val> -A <n> <path>head -n <n>sed -n <val> <path>
  50. Execute · Benchmark & validation setup

    1 tool error

    Requested source searches, file and log inspection and workspace inspection related to benchmark & validation setup.

    4 calls · #0168–#0171

    grep <val> <path>tail -n <n>echo <flag>grep -c <path> <path>date -u <val>ls <path>
    5 more command sketches
    sleep <n>ls -l -a <path>ps <val>grep -c <val>cat <path>
  51. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0172–#0172

    Write <path>
  52. Other · Source & workspace

    Requested script or workload execution, environment setup or inspection and workspace file updates related to source & workspace.

    1 call · #0173–#0173

    cd <path>python3 - <script>export <vars>mv <path> <path>env <vars> nohup <val> <path> > <path> <n> >& <path>echo <val>
    1 more command sketches
    date -u <val>
  53. Inspect · Source & workspace

    Requested file and log inspection, workspace inspection and source searches related to source & workspace.

    7 calls · #0174–#0180

    cd <path>sed -n <val> <path>ls <path> <n> > <path>tail -n <n> <path> <n> > <path>cut <flag>date -u <val>
    6 more command sketches
    grep -r -n <val> <path>head -n <n>echo <val>sleep <n>grep -E <val> <path> <n> > <path>tail -n <n>
  54. Inspect · Device memory

    Requested file and log inspection, runtime inspection and source searches related to device memory.

    1 call · #0181–#0181

    tail -n <n> <path>cut <flag>date -u <val>npu-smi infogrep <n>
  55. Inspect · Source & workspace

    Requested source searches, file and log inspection and execution waits related to source & workspace.

    4 calls · #0182–#0185

    cd <path>grep -n <val> -A <n> <path>head -n <n>sleep <n>tail -n <n> <path>cut <flag>
    5 more command sketches
    date -u <val>ls <path>grep -n <val> <path>tail -n <n>sed -n <val> <path>
  56. Inspect · Runtime processes

    Requested runtime inspection, source searches and file and log inspection related to runtime processes.

    1 call · #0186–#0186

    ps <val>grep -E <val>headecho <flag>ps <flag>grep -c <path>
    2 more command sketches
    cat <path> <n> > <path>tail -n <n>
  57. Inspect · Device memory

    Requested source searches, file and log inspection and script or workload execution related to device memory.

    1 call · #0187–#0187

    grep -n -i -E <val> <path>grep -v <val>head -n <n>cut <flag>echo <val>python3 -c <script>
    4 more command sketches
    date -u <val>cat <path> <n> > <path>ls -l -a <path> <n> > <path>head
  58. Inspect · Source & workspace

    1 tool error

    Requested source searches, file and log inspection and workspace inspection related to source & workspace.

    2 calls · #0188–#0189

    grep -v <path> <path>sed -n <val>cut <flag>grep -n <path> <path>wc -lawk <val> <path>
    5 more command sketches
    grep -v <val>echo <val>ls <path>date -u <val>ps -p <n> -o <val> <n> > <path>
  59. Other · Source & workspace

    Requested script or workload execution, workspace file updates and workspace inspection related to source & workspace.

    2 calls · #0190–#0191

    python3 -m <module> <path>mv <path> <path>ls <path>cd <path><command> <args>sleep <n>
    2 more command sketches
    echo <val>date -u <val>
  60. Inspect · Source & workspace

    Requested execution waits, source searches and file and log inspection related to source & workspace.

    1 call · #0192–#0192

    sleep <n>grep -E <val> <path>tail -n <n>cut <flag>date -u <val>
  61. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0193–#0193

    Edit <path>
  62. Other · Runtime processes

    1 tool error

    Requested process termination, execution waits and script or workload execution related to runtime processes.

    1 call · #0194–#0194

    pkill -f <path> <n> > <path>sleep <n>python3 -c <script>cd <path><command> <args>date -u <val>
  63. Other · Source & workspace

    Requested runtime inspection, source searches and script or workload execution related to source & workspace.

    2 calls · #0195–#0196

    ps <flag>grep -c <path>python3 -c <script>date -u <val>cd <path><command> <args>
    1 more command sketches
    sleep <n>
  64. Inspect · Source & workspace

    Requested source searches, file and log inspection and workspace inspection related to source & workspace.

    6 calls · #0197–#0202

    cd <path>grep -r -n <val> <path>head -n <n>sed -n <val> <path>grep -r -n <val> <path> <path> <path>head
    8 more command sketches
    echo <val>grep -n <val> -A <n> <path>grep -E <val> <path>tail -n <n>cut <flag>date -u <val>tail -n <n> <path>ls <path>
  65. Other · Source & workspace

    Requested workspace file updates, execution waits and runtime inspection related to source & workspace.

    1 call · #0203–#0203

    rm -rf <path> <path>cd <path><command> <args>sleep <n>ps <flag>grep -c <path>
    1 more command sketches
    date -u <val>
  66. Inspect · Runtime processes

    Requested runtime inspection and source searches related to runtime processes.

    1 call · #0204–#0204

    ps <flag>grep <path>
  67. Inspect · Source & workspace

    Requested file and log inspection, source searches and workspace inspection related to source & workspace.

    5 calls · #0205–#0209

    cd <path>sed -n <val> <path>grep -E <val> <path>tail -n <n>cut <flag>echo <path>
    8 more command sketches
    tail -n <n> <path>date -u <val>grep -r -n <val> <path> <path> <n> > <path>head -n <n>echo <val>ls <path> <n> > <path>ls <path>tr <val> <val>
  68. Inspect · Speculative decoding

    Requested file and log inspection and source searches related to speculative decoding.

    1 call · #0210–#0210

    cd <path>sed -n <val> <path>echo <val>grep -n <val> <path>head -n <n>
  69. Inspect · Source & workspace

    Requested execution waits, file and log inspection and source searches related to source & workspace.

    1 call · #0211–#0211

    sleep <n>tail -n <n> <path>cut <flag>date -u <val>grep -E <val> <path>
  70. Inspect · Speculative decoding

    Requested source searches and file and log inspection related to speculative decoding.

    2 calls · #0212–#0213

    grep -n <val> <path>head -n <n>echo <val>sed -n <val> <path>head
  71. Inspect · Source & workspace

    Requested file and log inspection, workspace inspection and execution waits related to source & workspace.

    4 calls · #0214–#0217

    tail -n <n> <path>cut <flag>date -u <val>ls <path>tr <val> <val>sleep <n>
    8 more command sketches
    grep -E <val> <path>tail -n <n>echo <val>grep -i -E <val> <path>grep -v <val>head -n <n>ls -l -a <path>cat <path>
  72. Inspect · Runtime processes

    Requested runtime inspection, source searches and file and log inspection related to runtime processes.

    1 call · #0218–#0218

    ps <flag>grep <path>echo <flag>grep -n <path> <path>wc -lgrep -c <val> <path>
    3 more command sketches
    grep <val> <path>tail -n <n>cut <flag>
  73. Inspect · Batching & scheduling

    Requested execution waits, workspace inspection and script or workload execution related to batching & scheduling.

    1 call · #0219–#0219

    sleep <n>ls <path>python3 -c <script>
  74. Other · Source & workspace

    Requested workspace file updates and execution waits related to source & workspace.

    1 call · #0220–#0220

    rm -rf <path> <path>cd <path><command> <args>sleep <n>date -u <val>
  75. Inspect · Benchmark & validation setup

    Requested source searches related to benchmark & validation setup.

    1 call · #0221–#0221

    cd <path>grep -n <val> -A <n> <path>
  76. Inspect · Source & workspace

    Requested workspace inspection, source searches and file and log inspection related to source & workspace.

    1 call · #0222–#0222

    cd <path>find <path> -name <val> -o -name <val>grep -v <val>headecho <val>grep -r -n <val> <path> --include <path>
    1 more command sketches
    head -n <n>
  77. Inspect · Batching & scheduling

    Requested file and log inspection and source searches related to batching & scheduling.

    1 call · #0223–#0223

    cd <path>sed -n <val> <path>echo <val>grep -n <val> <path> <n> > <path>headgrep -r -n <val> <path>
  78. Profile · Runtime processes

    Requested source searches and file and log inspection related to runtime processes.

    1 call · #0224–#0224

    grep -n <path> <path>head -n <n>echo <val>tail -n <n> <path>cut <flag>date -u <val>
  79. Profile · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    1 call · #0225–#0225

    grep -r -n <val> <path> <path> <n> > <path>head -n <n>echo <val>grep -n <val> <path>head
  80. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    1 call · #0226–#0226

    grep -r -l -n <val> <path>head -n <n>
  81. Inspect · Runtime processes

    Requested source searches and file and log inspection related to runtime processes.

    1 call · #0227–#0227

    grep -n <val> <path>head -n <n>
  82. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0228–#0228

    Edit <path>
  83. Inspect · Source & workspace

    Requested execution waits, file and log inspection and source searches related to source & workspace.

    2 calls · #0229–#0230

    sleep <n>tail -n <n> <path>cut <flag>date -u <val>grep -E <val> <path>tail -n <n>
  84. Inspect · Batching & scheduling

    Requested script or workload execution and file and log inspection related to batching & scheduling.

    1 call · #0231–#0231

    python3 -c <script> <n> >& <path>head -n <n>
  85. Inspect · Source & workspace

    Requested runtime inspection, source searches and file and log inspection related to source & workspace.

    2 calls · #0232–#0233

    ps <flag>grep <path>wc -ltail -n <n> <path>cut <flag>grep -n <val> <path>
    6 more command sketches
    tail -n <n>grep -c <path> <path>head -n <n>wc -l <path>grep <val> <path>date -u <val>
  86. Other · Batching & scheduling

    Requested execution waits and script or workload execution related to batching & scheduling.

    1 call · #0234–#0234

    sleep <n>python3 -c <script>
  87. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0235–#0235

    Edit <path>
  88. Other · Speculative decoding

    Requested workspace file updates, environment setup or inspection and execution waits related to speculative decoding.

    1 call · #0236–#0236

    rm -rf <path> <path>env <vars>cd <path><command> <args>sleep <n>echo <val>
    1 more command sketches
    date -u <val>
  89. Inspect · Runtime processes

    Requested execution waits, source searches and file and log inspection related to runtime processes.

    1 call · #0237–#0237

    sleep <n>grep -E <val> <path> <path> <n> > <path>head -n <n>cut <flag>ps <flag>grep -c <path>
  90. Other · Speculative decoding

    Requested script or workload execution and environment setup or inspection related to speculative decoding.

    1 call · #0238–#0238

    python3 - <script>echo <flag>cd <path>env <vars> python3 -c <script>
  91. Inspect · Speculative decoding

    1 tool error

    Requested runtime inspection, source searches and file and log inspection related to speculative decoding.

    4 calls · #0239–#0242

    ps <flag>grep <val>head -n <n>tr <val> <val>grep <flag> <args>echo <flag>
    10 more command sketches
    cut <flag>sleep <n>grep -E <val> <path>pkill -f <path>rm -rf <path> <path>cd <path><command> <args>date -u <val>grep -c <path>grep -E <val> <path> <n> > <path>
  92. Other · Runtime processes

    Requested runtime inspection, source searches and file and log inspection related to runtime processes.

    1 call · #0243–#0243

    ps <flag>grep -E <path>awk <val>xargs -r <val> <flag> <args>sleep <n>rm -rf <path> <path>
    2 more command sketches
    echo <val>grep -c <path>
  93. Inspect · Speculative decoding

    Requested execution waits, source searches and file and log inspection related to speculative decoding.

    1 call · #0244–#0244

    cd <path><command> <args>sleep <n>grep -E <val> <path> <n> > <path>head -n <n>cut <flag>
    1 more command sketches
    date -u <val>
  94. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0245–#0246

    Edit <path>
  95. Inspect · Speculative decoding

    Requested workspace file updates, execution waits and source searches related to speculative decoding.

    2 calls · #0247–#0248

    rm -rf <path> <path>cd <path><command> <args>sleep <n>grep -i -E <val> <path> <n> > <path>head -n <n>
    2 more command sketches
    cut <flag>date -u <val>
  96. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    2 calls · #0249–#0250

    cd <path>grep -r -n <val> <path> <path> <n> > <path>headsed -n <val> <path>echo <val>
  97. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0251–#0251

    Edit <path>
  98. Inspect · Source & workspace

    Requested execution waits, source searches and file and log inspection related to source & workspace.

    4 calls · #0252–#0255

    sleep <n>grep -E <val> <path>tail -n <n>cut <flag>tail -n <n> <path>date -u <val>
    3 more command sketches
    ls <path>tr <val> <val>echo <flag>
  99. Inspect · Attention kernels

    Requested source searches and file and log inspection related to attention kernels.

    3 calls · #0256–#0258

    cd <path>grep -n <val> <path>head -n <n>sed -n <val> <path>grep -r -n <val> -A <n> <path>
  100. Inspect · Batching & scheduling

    Requested workspace inspection, script or workload execution and file and log inspection related to batching & scheduling.

    1 call · #0259–#0259

    ls <path>python3 -c <script> <n> >& <path>head -n <n>date -u <val>
  101. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    1 call · #0260–#0260

    grep -E <val> <path>tail -n <n>cut <flag>grep -c <path> <path>date -u <val>
  102. Inspect · Batching & scheduling

    Requested execution waits, script or workload execution and file and log inspection related to batching & scheduling.

    2 calls · #0261–#0262

    sleep <n>python3 -c <script> <n> >& <path>head -n <n>date -u <val>ls <path>tr <val> <val>
  103. Inspect · Runtime processes

    Requested workspace file updates, execution waits and source searches related to runtime processes.

    1 call · #0263–#0263

    rm -rf <path> <path>cd <path><command> <args>sleep <n>date -u <val>grep -n <val> <path>
    1 more command sketches
    head
  104. Inspect · Source & workspace

    Requested file and log inspection, execution waits and source searches related to source & workspace.

    5 calls · #0264–#0268

    cd <path>sed -n <val> <path>sleep <n>grep -E <val> <path>tail -n <n>cut <flag>
    5 more command sketches
    tail -n <n> <path>date -u <val>ls <path>tr <val> <val>grep -c <val> <path>
  105. Other · Batching & scheduling

    Requested execution waits and script or workload execution related to batching & scheduling.

    2 calls · #0269–#0270

    sleep <n>python3 -c <script>date -u <val>
  106. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0271–#0271

    Read <path>
  107. Inspect · Runtime processes

    Requested source searches related to runtime processes.

    1 call · #0272–#0272

    cd <path>grep -n <val> <path>
  108. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0273–#0273

    Edit <path>
  109. Execute · Benchmark & validation setup

    Requested workspace file updates, execution waits and source searches related to benchmark & validation setup.

    1 call · #0274–#0274

    rm -rf <path> <path>cd <path><command> <args>sleep <n>date -u <val>echo <flag>
    3 more command sketches
    grep -o <val> <path> <n> > <path>head -n <n>ls -l -a <path>
  110. Inspect · Benchmark & validation setup

    Requested runtime inspection, source searches and file and log inspection related to benchmark & validation setup.

    1 call · #0275–#0275

    ps <flag>grep -E <val>headtail -n <n> <path>cut <flag>
  111. Execute · Benchmark & validation setup

    Requested script or workload execution, workspace file updates and workspace inspection related to benchmark & validation setup.

    3 calls · #0276–#0278

    python3 -c <script>cp <path> <path>rm -f <path> <path> <path>ls -l -a <path>date -u <val>rm -rf <path> <val> <path>
    7 more command sketches
    <command> <args>sleep <n>tail -n <n> <path>cut <flag>ls <path>grep -o <val> <path>head -n <n>
  112. Inspect · Source & workspace

    Requested script or workload execution and file and log inspection related to source & workspace.

    1 call · #0279–#0279

    <command> <args>python3 -m <module> <flag> <args>head -n <n>python3 -m <module> <val> <path> <n> >& <path>tail -n <n>python3 -m <module> <val> --check <path> <n> >& <path>
  113. Other · Source & workspace

    1 tool error

    Requested script or workload execution and file and log inspection related to source & workspace.

    2 calls · #0280–#0281

    python3 -m <module> <script> <script>echo <val>awk <val> <path>
  114. Inspect · Source & workspace

    Requested script or workload execution, file and log inspection and workspace inspection related to source & workspace.

    2 calls · #0282–#0283

    python3 -m <module> <script> <script>echo <val>awk <val> <path>find <path> -name <val> -exec <val> -rf <val> <val> <n> > <path>ls -l -a <path>cd <path>
    1 more command sketches
    sed -n <val> <path>
  115. Edit · Source & workspace

    Requested code edits related to source & workspace.

    4 calls · #0284–#0287

    Edit <path>
  116. Other · Runtime processes

    Requested file and log inspection, script or workload execution and source searches related to runtime processes.

    1 call · #0288–#0288

    cd <path>awk <val> <path>python3 -c <script> <n> >& <path>grep -v <val>date -u <val>
  117. Execute · Benchmark & validation setup

    Requested execution waits, source searches and file and log inspection related to benchmark & validation setup.

    4 calls · #0289–#0292

    sleep <n>grep -E <val> <path>tail -n <n>cut <flag>grep -c <val> <path>date -u <val>
    3 more command sketches
    grep <val> <path>sed -n <val>ls <path>
  118. Execute · Batching & scheduling

    Requested execution waits, workspace inspection and script or workload execution related to batching & scheduling.

    1 call · #0293–#0293

    sleep <n>ls <path>python3 -c <script>date -u <val>
  119. Execute · Benchmark & validation setup

    Requested script or workload execution, workspace inspection and runtime inspection related to benchmark & validation setup.

    1 call · #0294–#0294

    python3 -c <script>ls -l -a <path>ps <flag>grep -c <val>
  120. Execute · Batching & scheduling

    1 tool error

    Requested script or workload execution related to batching & scheduling.

    1 call · #0295–#0295

    python3 -c <script>
  121. Other · Benchmark & validation setup

    Requested script or workload execution related to benchmark & validation setup.

    1 call · #0296–#0296

    python3 -c <script>
  122. Execute · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0297–#0297

    python3 -c <script>
  123. Validate · Benchmark & validation setup

    Requested workspace file updates, execution waits and workspace inspection related to benchmark & validation setup.

    1 call · #0298–#0298

    rm -rf <path> <path> <path>cd <path><command> <args>sleep <n>date -u <val>ls <path>
  124. Execute · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0299–#0299

    python3 -c <script>
  125. Inspect · Source & workspace

    Requested repository inspection, workspace inspection and file and log inspection related to source & workspace.

    3 calls · #0300–#0302

    git status <flag>echo <val>git -C <path> <val> <flag>find <path> -type <val>sortfind <path> -name <val> -o -name <val>
    3 more command sketches
    headdate -u <val>Read <path>
  126. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0303–#0303

    Edit <path>
  127. Validate · Benchmark & validation setup

    Requested file and log inspection, script or workload execution and source searches related to benchmark & validation setup.

    5 calls · #0304–#0308

    cd <path>awk <val> <path>python3 - <script>date -u <val>grep -c <val> <path> <n> > <path>sleep <n>
    8 more command sketches
    tail -n <n> <path>cut <flag>grep -c <val> <path>ls <path>python3 -c <script> <n> >& <path>head -n <n>rm -rf <path> <path> <path><command> <args>
  128. Validate · Latency & request handling

    Requested script or workload execution, source searches and file and log inspection related to latency & request handling.

    1 call · #0309–#0309

    python3 -c <script>grep -E <val> <path>head -n <n>cut <flag>
  129. Validate · Benchmark & validation setup

    Requested execution waits, workspace inspection and source searches related to benchmark & validation setup.

    4 calls · #0310–#0313

    sleep <n>ls <path>tr <val> <val>grep -c <val> <path> <n> > <path>date -u <val>tail -n <n> <path>
    4 more command sketches
    cut <flag>python3 -c <script> <n> >& <path>head -n <n>python3 -c <script>
  130. Inspect · Source & workspace

    Requested workspace inspection, repository inspection and environment setup or inspection related to source & workspace.

    1 call · #0314–#0314

    find <path> -name <val> <flag> <args>find <path> -type <val>sortecho <val>git status <flag>git -C <path> <val> <flag>
    4 more command sketches
    cd <path>env <vars> bash <script> <n> >& <path>tail -n <n>date -u <val>
  131. Validate · Device memory

    Requested runtime inspection, source searches and file and log inspection related to device memory.

    1 call · #0315–#0315

    npu-smi infogrep -E <val>tail -n <n>echo <val>python3 -c <script>

03 / CANDIDATE ARTIFACT

Text patches & binary names

Read code changes as Git diffs. Identifying strings are masked; binary files are listed by their full relative names.

vllm_ascend · 2 changed files

Base commit: 7c254c14e2f2db1185d739075ee3cdc1da3cfde2

diff --git a/vllm_ascend/deployment/__init__.py b/vllm_ascend/deployment/__init__.pynew file mode 100644index 0000000000000000000000000000000000000000..6f0aa5aae6dd8f74184bdf7b9b9b04898b87c208--- /dev/null+++ b/vllm_ascend/deployment/__init__.py@@ -0,0 +1,3 @@+# SPDX-License-Identifier: Apache-2.0+# SPDX-FileCopyrightText: Copyright contributors to the vLLM project+"""Framework-local deployment entrypoints owned by the Ascend plugin."""diff --git a/vllm_ascend/deployment/qwen3_30b_a3b.py b/vllm_ascend/deployment/qwen3_30b_a3b.pynew file mode 100644index 0000000000000000000000000000000000000000..2a2ae3d10c814baa99d9002528c4188986bd8e6c--- /dev/null+++ b/vllm_ascend/deployment/qwen3_30b_a3b.py@@ -0,0 +1,260 @@+# SPDX-License-Identifier: Apache-2.0+# SPDX-FileCopyrightText: Copyright contributors to the vLLM project+"""Framework-local serving system for Qwen3-30B-A3B on two Ascend 910B devices.++The module owns the whole framework-local execution plan: it resolves the+serving configuration, launches the OpenAI-compatible front end in the+foreground, and guarantees that every child process it created is terminated+when the supervisor receives ``SIGTERM``.++The public contract is the outer ABI (``--model-path``, ``--tokenizer-path``,+``--served-model-name``, ``--host``, ``--port``, ``--device-ids``,+``--runtime-dir``); everything below it is an implementation detail of this+module.+"""++from __future__ import annotations++import argparse+import atexit+import json+import os+import shlex+import signal+import sys++# Tuned serving plan for the two-device 910B deployment.+#+# The default plan follows the reference deployment (TP=2 + EP, BF16,+# max_model_len=4096, chunked prefill, full-graph decode) and raises the+# resource envelope and the per-step token budget so that the MoE grouped GEMMs+# run on wide token batches instead of the reference 8k chunks.+DEFAULT_SERVE_FLAGS: tuple[str, ...] = (+    "--dtype",+    "bfloat16",+    "--max-model-len",+    "4096",+    "--tensor-parallel-size",+    "2",+    "--enable-expert-parallel",+    "--gpu-memory-utilization",+    "0.90",+    "--max-num-seqs",+    "64",+    "--max-num-batched-tokens",+    "32768",+    "--enable-chunked-prefill",+    "--no-enable-prefix-caching",+    "--generation-config",+    "vllm",+)++# Decode batch sizes captured as full graphs. The workload drives fixed+# concurrency, so the sizes cover the steady batch and the draining tail.+DECODE_GRAPH_SIZES: tuple[int, ...] = (+    1, 2, 4, 6, 8, 12, 16, 20, 24, 28, 32, 40, 48, 56, 64,+)++# ``additional_config`` consumed by ``vllm_ascend.ascend_config.AscendConfig``.+# ``weight_nz_mode=2`` stores the BF16 expert weights in FRACTAL_NZ so the+# grouped matmuls consume the Cube-native layout directly instead of paying a+# per-call format conversion.+DEFAULT_ADDITIONAL_CONFIG: dict[str, object] = {"weight_nz_mode": 2}++# Development override hooks. They are inert unless the corresponding variable+# is present in the environment, and they never change the public ABI.+_EXTRA_ARGS_ENV = "VLLM_ASCEND_DEPLOY_EXTRA_ARGS"+_ADDITIONAL_CONFIG_ENV = "VLLM_ASCEND_DEPLOY_ADDITIONAL_CONFIG"+_GRAPH_SIZES_ENV = "VLLM_ASCEND_DEPLOY_GRAPH_SIZES"+_DROP_FLAGS_ENV = "VLLM_ASCEND_DEPLOY_DROP_FLAGS"+_SPECULATIVE_ENV = "VLLM_ASCEND_DEPLOY_SPECULATIVE"+++def _build_compilation_flags() -> list[str]:+    sizes = DECODE_GRAPH_SIZES+    raw_sizes = os.environ.get(_GRAPH_SIZES_ENV)+    if raw_sizes:+        sizes = tuple(int(item) for item in raw_sizes.split(",") if item.strip())+    compilation_config = {+        "cudagraph_mode": "FULL_DECODE_ONLY",+        "cudagraph_capture_sizes": list(sizes),+    }+    return [+        "--compilation-config",+        json.dumps(compilation_config, separators=(",", ":")),+    ]+++def _drop_overridden(flags: list[str]) -> list[str]:+    """Remove flags explicitly cancelled by the development override hook."""++    dropped = [item for item in os.environ.get(_DROP_FLAGS_ENV, "").split(",") if item]+    if not dropped:+        return flags+    kept: list[str] = []+    index = 0+    while index < len(flags):+        name = flags[index]+        if name in dropped:+            has_value = index + 1 < len(flags) and not flags[index + 1].startswith("-")+            index += 2 if has_value else 1+            continue+        kept.append(name)+        index += 1+    return kept+++def build_serve_args(+    *,+    model_path: str,+    tokenizer_path: str,+    served_model_name: str,+    host: str,+    port: int,+) -> list[str]:+    """Resolve the full ``vllm serve`` argument vector for this deployment."""++    flags: list[str] = [+        "--model",+        model_path,+        "--tokenizer",+        tokenizer_path,+        "--served-model-name",+        served_model_name,+        "--host",+        host,+        "--port",+        str(port),+    ]+    flags.extend(DEFAULT_SERVE_FLAGS)+    flags.extend(_build_compilation_flags())+    additional_config = dict(DEFAULT_ADDITIONAL_CONFIG)+    raw_additional = os.environ.get(_ADDITIONAL_CONFIG_ENV)+    if raw_additional:+        parsed = json.loads(raw_additional)+        if not isinstance(parsed, dict):+            raise ValueError(f"{_ADDITIONAL_CONFIG_ENV} must be a JSON object")+        additional_config.update(parsed)+    if additional_config:+        encoded = json.dumps(additional_config, separators=(",", ":"))+        flags.extend(("--additional-config", encoded))+    extra = os.environ.get(_EXTRA_ARGS_ENV)+    if extra:+        flags.extend(shlex.split(extra))+    speculative = os.environ.get(_SPECULATIVE_ENV)+    if speculative:+        flags.extend(("--speculative-config", speculative))+    return _drop_overridden(flags)+++def parse_outer_args(argv: list[str] | None = None) -> argparse.Namespace:+    parser = argparse.ArgumentParser(prog="qwen3_30b_a3b")+    parser.add_argument("--model-path", required=True)+    parser.add_argument("--tokenizer-path", required=True)+    parser.add_argument("--served-model-name", required=True)+    parser.add_argument("--host", default="127.0.0.1")+    parser.add_argument("--port", type=int, required=True)+    parser.add_argument("--device-ids", default="")+    parser.add_argument("--runtime-dir", default=None)+    return parser.parse_args(argv)+++class ChildProcessGuard:+    """Terminate every descendant when the supervisor is asked to stop.++    ``vllm`` already propagates ``SIGTERM`` to its engine workers; this guard+    makes the shutdown contract unconditional by also reaping descendants that+    escaped the supervisor's process group.+    """++    def __init__(self) -> None:+        self._stopping = False++    def arm(self) -> None:+        for signum in (signal.SIGTERM, signal.SIGINT):+            signal.signal(signum, self._handle)+        atexit.register(self.terminate_children, signal.SIGKILL)++    def _handle(self, signum: int, frame: object = None) -> None:+        if self._stopping:+            return+        self._stopping = True+        self.terminate_children(signum)+        raise KeyboardInterrupt("supervisor received termination signal")++    def terminate_children(self, signum: int) -> None:+        for pid in reversed(self._descendants()):+            try:+                os.kill(pid, signum)+            except (ProcessLookupError, PermissionError):+                continue++    @staticmethod+    def _descendants() -> list[int]:+        """Return this process' descendants ordered root-first."""++        parents: dict[int, list[int]] = {}+        try:+            entries = os.listdir("/proc")+        except OSError:+            return []+        for name in entries:+            if not name.isdigit():+                continue+            try:+                stat_path = f"/proc/{name}/stat"+                with open(stat_path, encoding="utf-8", errors="replace") as handle:+                    fields = handle.read().rpartition(")")[2].split()+                parent = int(fields[1])+            except (OSError, IndexError, ValueError):+                continue+            parents.setdefault(parent, []).append(int(name))+        ordered: list[int] = []+        frontier = [os.getpid()]+        while frontier:+            current = frontier.pop()+            for child in parents.get(current, ()):+                ordered.append(child)+                frontier.append(child)+        return ordered+++def run(outer: argparse.Namespace) -> None:+    import uvloop++    from vllm.entrypoints.openai.api_server import run_server+    from vllm.entrypoints.openai.cli_args import make_arg_parser+    from vllm.entrypoints.openai.cli_args import validate_parsed_serve_args+    from vllm.entrypoints.serve.utils.api_utils import cli_env_setup+    from vllm.utils.argparse_utils import FlexibleArgumentParser++    if outer.device_ids:+        os.environ.setdefault("ASCEND_RT_VISIBLE_DEVICES", outer.device_ids)++    ChildProcessGuard().arm()++    cli_env_setup()+    serve_args = build_serve_args(+        model_path=outer.model_path,+        tokenizer_path=outer.tokenizer_path,+        served_model_name=outer.served_model_name,+        host=outer.host,+        port=outer.port,+    )+    parser = make_arg_parser(FlexibleArgumentParser(prog="vllm serve"))+    args = parser.parse_args(serve_args)+    validate_parsed_serve_args(args)+    uvloop.run(run_server(args))+++def main(argv: list[str] | None = None) -> int:+    outer = parse_outer_args(argv)+    try:+        run(outer)+    except KeyboardInterrupt:+        return 0+    return 0+++if __name__ == "__main__":+    sys.exit(main())