MiniMax M3 · Serving

S11 · vLLM MoE

Correctness rejected

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

—PERFORMANCE RATIO
365TOOL EVENTS
1TEXT PATCHES
0BINARY NAMES

01 / PROCESS MAP

Tool activity

Each row shows one agent’s tool events in its own recorded order. Colors show broad activities; bar widths do not represent duration.

Main agentMiniMax M3 · 365 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
205Inspect
12Edit
29Validate
91Execute
28Other

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 timeline224 groups · 365 calls

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>.

Main agent

  1. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0001–#0001

    ls <path> <n> > <path>echo <flag>echo <val>
  2. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0002–#0003

    Read <path>
  3. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0004–#0004

    ls -l -a <path>
  4. Inspect · Task requirements

    Requested workspace inspection related to task requirements.

    1 call · #0005–#0005

    ls -l -a <path> <path> <path> <path> <path> <path> <path> <n> >& <path>
  5. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    3 calls · #0006–#0008

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

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

    2 calls · #0009–#0010

    Read <path>
  7. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0011–#0011

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

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

    1 call · #0012–#0012

    Read <path>
  9. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0013–#0014

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

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

    1 call · #0015–#0015

    Read <path>
  11. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0016–#0016

    Read <path>
  12. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0017–#0017

    Read <path>
  13. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0018–#0018

    Read <path>
  14. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    3 calls · #0019–#0021

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

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

    1 call · #0022–#0022

    Read <path>
  16. Inspect · Source & workspace

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

    4 calls · #0023–#0026

    ls -l -a <path>head -n <n>echo <flag>ls -l -a <path> <n> >& <path>find <path> -maxdepth <n> -type <val> -name <path>
  17. Other · Source & workspace

    Requested task coordination related to source & workspace.

    3 calls · #0027–#0029

    Create task <task>
  18. Validate · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    1 call · #0030–#0030

    Create task <task>
  19. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0031–#0031

    Update task <task>
  20. Inspect · Source & workspace

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

    3 calls · #0032–#0034

    echo <val>cat <path>ls <path> <n> >& <path>head -n <n>
  21. Inspect · Device memory

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

    1 call · #0035–#0035

    npu-smi info <n> >& <path>head -n <n>
  22. Inspect · Source & workspace

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

    6 calls · #0036–#0041

    ls <path> <n> >& <path>find <path> -type <val>sorthead -n <n>Read <path>ls <path>
    1 more command sketches
    find <path> -name <path> -maxdepth <n>
  23. Execute · Runtime processes

    Requested workspace inspection and file and log inspection related to runtime processes.

    1 call · #0042–#0042

    find <path> -name <val> -type <val> <n> >& <path>head -n <n>
  24. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0043–#0043

    Read <path>
  25. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0044–#0045

    Read <path>
  26. Inspect · Runtime processes

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

    1 call · #0046–#0046

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

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

    1 call · #0047–#0047

    find <path> -type <val> -name <path>head -n <n>echo <flag>ls <path>
  28. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0048–#0049

    Update task <task>
  29. Inspect · Source & workspace

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

    2 calls · #0050–#0051

    timeout <n> <val> <path> <n> >& <path>head -n <n>
  30. Inspect · Attention kernels

    Requested environment setup or inspection and file and log inspection related to attention kernels.

    1 call · #0052–#0052

    env <vars> timeout <n> <val> <path> <n> >& <path>head -n <n>
  31. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0053–#0053

    Read <path>
  32. Inspect · Runtime processes

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

    5 calls · #0054–#0058

    grep -n <val> <path>head -n <n>wc -l <path>Read <path>
  33. Inspect · Benchmark & validation setup

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

    1 call · #0059–#0059

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

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

    2 calls · #0060–#0061

    grep -n <val> <path>head -n <n>Read <path>
  35. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0062–#0063

    Update task <task>
  36. Inspect · Source & workspace

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

    3 calls · #0064–#0066

    mkdir -p <path>ls <path>grep -n <val> <path> <path>head -n <n>Read <path>
  37. Inspect · Prefix caching

    Requested source searches and file and log inspection related to prefix caching.

    1 call · #0067–#0067

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

    Requested file and log inspection related to source & workspace.

    2 calls · #0068–#0069

    Read <path>
  39. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0070–#0070

    Write <path>
  40. Inspect · Source & workspace

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

    2 calls · #0071–#0072

    env <vars> timeout <n> <val> <path> <n> >& <path>head -n <n>mkdir -p <val>ls <path> <n> >& <path>
  41. Validate · Benchmark & validation setup

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

    2 calls · #0073–#0074

    timeout <n> <val> <path> <n> >& <path>tail -n <n>env <vars> timeout <n> <val> <path> <n> >& <path>
  42. Inspect · Source & workspace

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

    3 calls · #0075–#0077

    grep -l <val> <path>head -n <n>grep -n <val> <path>Read <path>
  43. Inspect · Batching & scheduling

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

    2 calls · #0078–#0079

    grep -n <val> <path>head -n <n>
  44. Validate · Benchmark & validation setup

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

    1 call · #0080–#0080

    tail -n <n> <path> <n> >& <path>
  45. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0081–#0081

    Read task output <task>
  46. Validate · Benchmark & validation setup

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

    1 call · #0082–#0082

    ls <path> <n> >& <path>cat <path> <n> >& <path>tail -n <n>
  47. Execute · Runtime processes

    1 tool error

    Requested workspace inspection and file and log inspection related to runtime processes.

    1 call · #0083–#0083

    ls -l -a <path> <n> >& <path>tail -n <n> <path> <n> >& <path>
  48. Inspect · Source & workspace

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

    1 call · #0084–#0084

    find <path> -type <val> <n> >& <path>head -n <n>
  49. Inspect · Benchmark & validation setup

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

    1 call · #0085–#0085

    cat <path>tail -n <n>
  50. Execute · Runtime processes

    Requested workspace inspection and file and log inspection related to runtime processes.

    1 call · #0086–#0086

    ls -l -a <path>tail -n <n> <path> <n> >& <path>
  51. Inspect · Device memory

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

    1 call · #0087–#0087

    npu-smi info <n> >& <path>grep -E <val>head -n <n>
  52. Inspect · Runtime processes

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

    1 call · #0088–#0088

    ps <flag>grep -E <val>grep -v <val>head -n <n>
  53. Inspect · Benchmark & validation setup

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

    2 calls · #0089–#0090

    cat <path>grep -v <path>tail -n <n>wc -l <path>wc -l
  54. Execute · Runtime processes

    Requested workspace inspection related to runtime processes.

    1 call · #0091–#0091

    ls -l -a <path>date
  55. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0092–#0092

    cat <path>
  56. Execute · Runtime processes

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

    1 call · #0093–#0093

    sleep <n>ls -l -a <path>echo <flag>tail -n <n> <path>
  57. Inspect · Source & workspace

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

    1 call · #0094–#0094

    grep -n <val> <path> <path> <n> >& <path>head -n <n>
  58. Validate · Benchmark & validation setup

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

    1 call · #0095–#0095

    cat <path> <n> >& <path>head -n <n>echo <flag>ps <flag>grep -E <val>grep -v <val>
  59. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0096–#0096

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

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

    2 calls · #0097–#0098

    rm -rf <path>rm -f <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>sleep <n>ls -l -a <path> <n> >& <path>
    2 more command sketches
    tail -n <n> <path> <n> >& <path>grep -v <val>
  61. Execute · Runtime processes

    1 tool error

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

    1 call · #0099–#0099

    sleep <n>tail -n <n> <path> <n> >& <path>grep -v <val>
  62. Inspect · Parallelism & communication

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

    1 call · #0100–#0100

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

    Requested file and log inspection related to source & workspace.

    1 call · #0101–#0101

    Read <path>
  64. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0102–#0102

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

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

    1 call · #0103–#0103

    rm -rf <path>rm -f <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>
  66. Execute · Runtime processes

    2 tool errors

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

    4 calls · #0104–#0107

    sleep <n>tail -n <n> <path> <n> >& <path>grep -v <val>
  67. Validate · Benchmark & validation setup

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

    2 calls · #0108–#0109

    ls -l -a <path>tail -n <n> <path> <n> >& <path>grep -v <val>cat <path> <n> >& <path>
  68. Inspect · Benchmark & validation setup

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

    1 call · #0110–#0110

    cat <path>grep -v <val>tail -n <n>
  69. Inspect · Runtime processes

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

    1 call · #0111–#0111

    grep -E <val> <path>tail -n <n>
  70. Inspect · Benchmark & validation setup

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

    3 calls · #0112–#0114

    cat <path>grep -E <val>head -n <n>grep -v <val>tail -n <n>
  71. Inspect · Source & workspace

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

    1 call · #0115–#0115

    grep -r -n <val> <path> <n> >& <path>head -n <n>
  72. Inspect · Benchmark & validation setup

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

    5 calls · #0116–#0120

    cat <path>grep -v <val>head -n <n>grep -E <val> <path>wc -l <path>wc -c
    3 more command sketches
    Read <path>ls -l -a <path>stat <path>
  73. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0121–#0121

    Update task <task>
  74. Validate · Benchmark & validation setup

    1 tool error

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

    3 calls · #0122–#0124

    rm -rf <path>rm -f <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>sleep <n>tail -n <n> <path> <n> >& <path>
    1 more command sketches
    grep -v <val>
  75. Execute · Runtime processes

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

    1 call · #0125–#0125

    tail -n <n> <path> <n> >& <path>grep -v <val>
  76. Validate · Benchmark & validation setup

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

    1 call · #0126–#0126

    ls -l -a <path>head -n <n>ls -l -a <path> <n> >& <path>
  77. Execute · Runtime processes

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

    1 call · #0127–#0127

    tail -n <n> <path> <n> >& <path>grep -v <val>
  78. Validate · Benchmark & validation setup

    1 tool error

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

    1 call · #0128–#0128

    sleep <n>tail -n <n> <path> <n> >& <path>grep -v <val>
  79. Execute · Runtime processes

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

    1 call · #0129–#0129

    tail -n <n> <path> <n> >& <path>grep -v <val>
  80. Inspect · Benchmark & validation setup

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

    1 call · #0130–#0130

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

    1 tool error

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

    3 calls · #0131–#0133

    grep -E <val> <path>head -n <n>tail -n <n>grep -v <val>grep <val> <path>
  82. Validate · Benchmark & validation setup

    1 tool error

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

    1 call · #0134–#0134

    cat <path> <n> >& <path>
  83. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0135–#0135

    ls -l -a <path>
  84. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0136–#0136

    Read task output <task>
  85. Execute · Runtime processes

    1 tool error

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

    1 call · #0137–#0137

    sleep <n>ls -l -a <path>tail -n <n> <path>grep -v <val>
  86. Inspect · Benchmark & validation setup

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

    1 call · #0138–#0138

    cat <path>
  87. Execute · Benchmark & validation setup

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

    1 call · #0139–#0139

    rm -rf <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>
  88. Inspect · Parallelism & communication

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

    1 call · #0140–#0140

    grep -n <val> <path>head -n <n>
  89. Execute · Runtime processes

    1 tool error

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

    1 call · #0141–#0141

    sleep <n>tail -n <n> <path> <n> >& <path>grep -v <val>
  90. Execute · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    1 call · #0142–#0142

    Create task <task>
  91. Execute · Runtime processes

    1 tool error

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

    1 call · #0143–#0143

    ls -l -a <path>tail -n <n> <path> <n> >& <path>grep -v <val>
  92. Inspect · Runtime processes

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

    1 call · #0144–#0144

    grep <val> <path>tail -n <n>
  93. Execute · Runtime processes

    1 tool error

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

    1 call · #0145–#0145

    sleep <n>grep <val> <path>tail -n <n>
  94. Inspect · Runtime processes

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

    1 call · #0146–#0146

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

    1 tool error

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

    1 call · #0147–#0147

    sleep <n>ls -l -a <path> <n> >& <path>head -n <n>
  96. Inspect · Runtime processes

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

    1 call · #0148–#0148

    ls -l -a <path>grep <val> <path>tail -n <n>
  97. Execute · Benchmark & validation setup

    1 tool error

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

    1 call · #0149–#0149

    sleep <n>ls -l -a <path>
  98. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0150–#0150

    Read task output <task>
  99. Inspect · Benchmark & validation setup

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

    1 call · #0151–#0151

    grep <val> <path>tail -n <n>echo <flag>ls -l -a <path>
  100. Execute · Benchmark & validation setup

    1 tool error

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

    1 call · #0152–#0152

    sleep <n>ls -l -a <path> <n> >& <path>
  101. Inspect · Benchmark & validation setup

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

    1 call · #0153–#0153

    cat <path>head -n <n>
  102. Execute · Batching & scheduling

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

    1 call · #0154–#0154

    cat <path>python3 -c <script>
  103. Other · Source & workspace

    Requested task coordination related to source & workspace.

    3 calls · #0155–#0157

    Update task <task>Create task <task>
  104. Inspect · Attention kernels

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

    1 call · #0158–#0158

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

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

    4 calls · #0159–#0162

    grep -n <val> <path>head -n <n>grep -n <val> <path> <path> <n> >& <path>find <path> -name <path>xargs <val> -l <val> <n> > <path>
  106. Inspect · Attention kernels

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

    1 call · #0163–#0163

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

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

    4 calls · #0164–#0167

    Read <path>grep -n <val> <path>head -n <n>
  108. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0168–#0168

    Update task <task>
  109. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0169–#0169

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

    1 tool error

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

    3 calls · #0170–#0172

    rm -rf <path>rm -f <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>sleep <n>cat <path> <n> >& <path>
  111. Inspect · Runtime processes

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

    1 call · #0173–#0173

    grep -E <val> <path>grep -v <val>head -n <n>
  112. Execute · Benchmark & validation setup

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

    1 call · #0174–#0174

    rm -rf <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>
  113. Inspect · Source & workspace

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

    3 calls · #0175–#0177

    grep -n <val> <path>head -n <n>grep -r -n <val> <path>
  114. Execute · Runtime processes

    1 tool error

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

    1 call · #0178–#0178

    sleep <n>ls -l -a <path> <n> >& <path>head -n <n>echo <flag>grep -E <val> <path>grep -v <val>
  115. Execute · Batching & scheduling

    1 tool error

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

    1 call · #0179–#0179

    cat <path>python3 -c <script>
  116. Inspect · Benchmark & validation setup

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

    1 call · #0180–#0180

    cat <path>head -n <n>
  117. Inspect · Runtime processes

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

    1 call · #0181–#0181

    grep -E <val> <path>grep -v <val>head -n <n>
  118. Inspect · Source & workspace

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

    2 calls · #0182–#0183

    ls <path> <n> >& <path>ls -l -a <path>head -n <n>
  119. Execute · Benchmark & validation setup

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

    4 calls · #0184–#0187

    cat <path> <n> >& <path>head -n <n>wc -c <path>rm -rf <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>
    4 more command sketches
    tail -n <n>sleep <n>ls -l -a <path> <n> >& <path>wc -c <path> <n> >& <path>
  120. Execute · Runtime processes

    1 tool error

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

    1 call · #0188–#0188

    sleep <n>grep <val> <path>tail -n <n>
  121. Inspect · Runtime processes

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

    1 call · #0189–#0189

    grep <val> <path>tail -n <n>
  122. Execute · Runtime processes

    1 tool error

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

    1 call · #0190–#0190

    sleep <n>grep <val> <path>tail -n <n>
  123. Inspect · Runtime processes

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

    1 call · #0191–#0191

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

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

    3 calls · #0192–#0194

    grep -A <n> <val> <path>head -n <n>Read <path>grep -r -n <val> <path> <n> >& <path>
  125. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0195–#0195

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

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

    1 call · #0196–#0196

    rm -rf <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>
  127. Inspect · Batching & scheduling

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

    3 calls · #0197–#0199

    grep -r -n <val> <path>head -n <n>grep -n <val> <path> <path> <n> >& <path>grep -r -n <val> <path> <n> >& <path>
  128. Execute · Runtime processes

    1 tool error

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

    1 call · #0200–#0200

    sleep <n>grep <val> <path>tail -n <n>
  129. Execute · Benchmark & validation setup

    6 tool errors

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

    6 calls · #0201–#0206

    sleep <n>grep <val> <path>tail -n <n>ls -l -a <path> <n> >& <path>
  130. Inspect · Runtime processes

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

    1 call · #0207–#0207

    grep <val> <path>tail -n <n>
  131. Execute · Benchmark & validation setup

    2 tool errors

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

    2 calls · #0208–#0209

    sleep <n>grep <val> <path>tail -n <n>ls -l -a <path> <n> >& <path>
  132. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0210–#0210

    Stop task <task>
  133. Inspect · Runtime processes

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

    3 calls · #0211–#0213

    ps <flag>grep -E <val>grep -v <val>head -n <n>kill <flag> <args>sleep <n>
  134. Inspect · Source & workspace

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

    1 call · #0214–#0214

    find <path> -name <val> -type <val> <n> > <path>head -n <n>find <path> -name <val> <n> > <path>
  135. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0215–#0215

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

    8 tool errors

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

    9 calls · #0216–#0224

    rm -rf <path> <path> <n> > <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>sleep <n>grep <val> <path>
    3 more command sketches
    ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>head -n <n>
  137. Inspect · Batching & scheduling

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

    1 call · #0225–#0225

    grep <val> <path>tail -n <n>
  138. Execute · Benchmark & validation setup

    2 tool errors

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

    2 calls · #0226–#0227

    sleep <n>ls -l -a <path> <n> >& <path>
  139. Inspect · Batching & scheduling

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

    1 call · #0228–#0228

    grep <val> <path>grep -v <val>tail -n <n>
  140. Execute · Batching & scheduling

    1 tool error

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

    2 calls · #0229–#0230

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>cat <path>python3 -c <script>
  141. Inspect · Source & workspace

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

    3 calls · #0231–#0233

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

    Requested code edits related to source & workspace.

    1 call · #0234–#0234

    Edit <path>
  143. Inspect · Source & workspace

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

    5 calls · #0235–#0239

    grep -r -n <val> <path>head -n <n>Read <path>grep -n <val> <path>
  144. Execute · Benchmark & validation setup

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

    1 call · #0240–#0240

    rm -rf <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>
  145. Execute · Batching & scheduling

    1 tool error

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

    1 call · #0241–#0241

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  146. Execute · Benchmark & validation setup

    1 tool error

    Requested workspace inspection related to benchmark & validation setup.

    1 call · #0242–#0242

    ls -l -a <path> <n> >& <path>
  147. Inspect · Runtime processes

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

    2 calls · #0243–#0244

    grep <val> <path>tail -n <n>
  148. Execute · Batching & scheduling

    1 tool error

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

    1 call · #0245–#0245

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  149. Execute · Benchmark & validation setup

    1 tool error

    Requested workspace inspection related to benchmark & validation setup.

    1 call · #0246–#0246

    ls -l -a <path> <n> >& <path>
  150. Inspect · Batching & scheduling

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

    3 calls · #0247–#0249

    grep <val> <path>grep -v <val>tail -n <n>
  151. Inspect · Runtime processes

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

    1 call · #0250–#0250

    tail -n <n> <path>grep -v <val>
  152. Execute · Runtime processes

    1 tool error

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

    1 call · #0251–#0251

    sleep <n>tail -n <n> <path>grep -v <val>
  153. Inspect · Runtime processes

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

    1 call · #0252–#0252

    tail -n <n> <path>grep -v <val>
  154. Execute · Batching & scheduling

    2 tool errors

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

    2 calls · #0253–#0254

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  155. Inspect · Runtime processes

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

    1 call · #0255–#0255

    grep <val> <path>tail -n <n>
  156. Execute · Batching & scheduling

    1 tool error

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

    2 calls · #0256–#0257

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>cat <path>python3 -c <script>
  157. Inspect · Source & workspace

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

    2 calls · #0258–#0259

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

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

    1 call · #0260–#0260

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

    Requested code edits related to source & workspace.

    1 call · #0261–#0261

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

    2 tool errors

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

    3 calls · #0262–#0264

    rm -rf <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>sleep <n>ls -l -a <path> <n> >& <path>
  161. Inspect · Runtime processes

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

    2 calls · #0265–#0266

    grep <val> <path>tail -n <n>tail -n <n> <path>grep -v <val>
  162. Inspect · Source & workspace

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

    7 calls · #0267–#0273

    grep -r -n <val> <path>head -n <n>Read <path>grep -n <val> <path>
  163. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0274–#0274

    Edit <path>
  164. Inspect · Source & workspace

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

    3 calls · #0275–#0277

    grep -n <val> <path> <path> <n> >& <path>head -n <n>Read <path>
  165. Execute · Batching & scheduling

    1 tool error

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

    1 call · #0278–#0278

    ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  166. Inspect · Runtime processes

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

    1 call · #0279–#0279

    tail -n <n> <path>grep -v <val>
  167. Execute · Runtime processes

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

    1 call · #0280–#0280

    grep <val> <path>head -n <n>python3 -c <script> <n> >& <path>sed <path>head -c <n>
  168. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0281–#0281

    Read <path>
  169. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0282–#0282

    Read task output <task>
  170. Execute · Benchmark & validation setup

    2 tool errors

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

    2 calls · #0283–#0284

    sleep <n>ls -l -a <path> <n> >& <path>
  171. Inspect · Runtime processes

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

    2 calls · #0285–#0286

    grep <val> <path>tail -n <n>
  172. Execute · Benchmark & validation setup

    2 tool errors

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

    2 calls · #0287–#0288

    sleep <n>ls -l -a <path> <n> >& <path>
  173. Inspect · Runtime processes

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

    4 calls · #0289–#0292

    grep <val> <path>tail -n <n>tail -n <n> <path>grep -v <val>grep -A <n> <val> <path>head -n <n>
    1 more command sketches
    grep -B <n> <val> <path>
  174. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0293–#0294

    Edit <path>
  175. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0295–#0295

    Read <path>
  176. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0296–#0296

    Stop task <task>
  177. Inspect · Source & workspace

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

    1 call · #0297–#0297

    ps <flag>grep -E <val>grep -v <val>awk <val>head -n <n>
  178. Inspect · Runtime processes

    Requested process termination, execution waits and runtime inspection related to runtime processes.

    1 call · #0298–#0298

    kill <flag> <args>sleep <n>ps <flag>grep -E <val>grep -v <val>head -n <n>
  179. Execute · Benchmark & validation setup

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

    1 call · #0299–#0299

    rm -rf <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>
  180. Inspect · Attention kernels

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

    2 calls · #0300–#0301

    grep -r -n <val> <path> <n> >& <path>head -n <n>grep -n <val> <path>
  181. Execute · Benchmark & validation setup

    2 tool errors

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

    2 calls · #0302–#0303

    sleep <n>ls -l -a <path> <n> >& <path>grep <val> <path>tail -n <n>
  182. Inspect · Runtime processes

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

    2 calls · #0304–#0305

    grep <val> <path>tail -n <n>
  183. Execute · Runtime processes

    1 tool error

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

    1 call · #0306–#0306

    sleep <n>grep <val> <path>tail -n <n>
  184. Inspect · Runtime processes

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

    2 calls · #0307–#0308

    grep <val> <path>tail -n <n>
  185. Execute · Batching & scheduling

    1 tool error

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

    1 call · #0309–#0309

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  186. Execute · Benchmark & validation setup

    1 tool error

    Requested workspace inspection related to benchmark & validation setup.

    1 call · #0310–#0310

    ls -l -a <path> <n> >& <path>
  187. Inspect · Runtime processes

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

    1 call · #0311–#0311

    grep <val> <path>tail -n <n>
  188. Execute · Batching & scheduling

    2 tool errors

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

    2 calls · #0312–#0313

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  189. Inspect · Runtime processes

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

    2 calls · #0314–#0315

    grep <val> <path>tail -n <n>grep -v <val>
  190. Other · Source & workspace

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

    3 calls · #0316–#0318

    Read task output <task>Update task <task>
  191. Validate · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    1 call · #0319–#0319

    Create task <task>
  192. Inspect · Source & workspace

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

    3 calls · #0320–#0322

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

    Requested code edits related to source & workspace.

    1 call · #0323–#0323

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

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

    1 call · #0324–#0324

    rm -rf <path>rm -f <path> <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>
  195. Execute · Batching & scheduling

    1 tool error

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

    1 call · #0325–#0325

    sleep <n>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  196. Execute · Benchmark & validation setup

    1 tool error

    Requested workspace inspection related to benchmark & validation setup.

    1 call · #0326–#0326

    ls -l -a <path> <n> >& <path>
  197. Inspect · Runtime processes

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

    2 calls · #0327–#0328

    grep <val> <path>tail -n <n>tail -n <n> <path>grep -v <val>
  198. Execute · Batching & scheduling

    1 tool error

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

    1 call · #0329–#0329

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  199. Execute · Benchmark & validation setup

    1 tool error

    Requested workspace inspection related to benchmark & validation setup.

    1 call · #0330–#0330

    ls -l -a <path> <n> >& <path>
  200. Inspect · Runtime processes

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

    1 call · #0331–#0331

    grep <val> <path>tail -n <n>
  201. Execute · Batching & scheduling

    1 tool error

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

    1 call · #0332–#0332

    sleep <n>ls -l -a <path> <n> >& <path>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  202. Execute · Benchmark & validation setup

    1 tool error

    Requested workspace inspection related to benchmark & validation setup.

    1 call · #0333–#0333

    ls -l -a <path> <n> >& <path>
  203. Inspect · Runtime processes

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

    1 call · #0334–#0334

    grep <val> <path>tail -n <n>
  204. Execute · Batching & scheduling

    2 tool errors

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

    2 calls · #0335–#0336

    sleep <n>cat <path> <n> >& <path>python3 -c <script> <n> >& <path>
  205. Execute · Benchmark & validation setup

    1 tool error

    Requested workspace inspection related to benchmark & validation setup.

    1 call · #0337–#0337

    ls -l -a <path> <n> >& <path>
  206. Inspect · Runtime processes

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

    3 calls · #0338–#0340

    grep <val> <path>tail -n <n>
  207. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0341–#0341

    Read task output <task>
  208. Inspect · Runtime processes

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

    1 call · #0342–#0342

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

    Requested workspace inspection related to source & workspace.

    1 call · #0343–#0343

    ls -l -a <path> <n> >& <path>
  210. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0344–#0344

    Read task output <task>
  211. Inspect · Source & workspace

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

    2 calls · #0345–#0346

    Read <path>cd <path>git status <n> >& <path>head -n <n>
  212. Validate · Benchmark & validation setup

    1 tool error

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

    3 calls · #0347–#0349

    rm -rf <path>rm -f <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>sleep <n>cat <path> <n> >& <path>
  213. Inspect · Runtime processes

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

    3 calls · #0350–#0352

    grep <val> <path>grep -v <val>head -n <n>tail -n <n> <path>tail -n <n>
  214. Inspect · Benchmark & validation setup

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

    1 call · #0353–#0353

    cat <path>head -n <n>
  215. Inspect · Runtime processes

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

    1 call · #0354–#0354

    ps <flag>grep -E <val>grep -v <val>head -n <n>
  216. Validate · Benchmark & validation setup

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

    1 call · #0355–#0355

    stat <path> <n> >& <path>head -n <n>
  217. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0356–#0356

    Read task output <task>
  218. Validate · Batching & scheduling

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

    1 call · #0357–#0357

    cat <path>python3 -c <script>echo <flag>
  219. Validate · Benchmark & validation setup

    1 tool error

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

    3 calls · #0358–#0360

    rm -rf <path>rm -f <path>env <vars> timeout <n> <val> <path> <n> >& <path>tail -n <n>sleep <n>cat <path> <n> >& <path>
    1 more command sketches
    python3 -c <script>
  220. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0361–#0361

    Update task <task>
  221. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0362–#0362

    ls -l -a <path>
  222. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0363–#0363

    python3 -c <script>
  223. Other · Runtime processes

    Requested environment setup or inspection and script or workload execution related to runtime processes.

    1 call · #0364–#0364

    env <vars> timeout <n> <val> <path> <n> >& <path>python3 -c <script> <n> >& <path>
  224. Inspect · Source & workspace

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

    1 call · #0365–#0365

    ls -l -a <path>wc -l <path>

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 · 1 changed files

Base commit: 7c254c14e2f2db1185d739075ee3cdc1da3cfde2

diff --git a/vllm_ascend/deployment/qwen3_30b_a3b.py b/vllm_ascend/deployment/qwen3_30b_a3b.pynew file mode 100644index 0000000000000000000000000000000000000000..c64dcbeb09e320cd887a66de30a168f17b7d93fc--- /dev/null+++ b/vllm_ascend/deployment/qwen3_30b_a3b.py@@ -0,0 +1,266 @@+"""Framework-owned deployment entry point for Qwen3-30B-A3B on two Ascend 910B+devices.++The host invokes this module as a foreground process and waits for it to expose+``/v1/models`` and ``/v1/completions`` on the configured host and port. The+module owns its internal process graph, runtime configuration, and cleanup+contract.++The strategy is to launch the standard ``vllm serve`` entry point as a child+process, while passing an Ascend-optimised set of CLI flags derived from the+project contract. The supervisor process is the leader of the harness-visible+process group, so SIGTERM from the harness is delivered to both the supervisor+and its children (including the engine workers) and triggers a clean shutdown.+"""++from __future__ import annotations++import argparse+import os+import signal+import subprocess+import sys+import time+from pathlib import Path+from typing import Any++# Ascend runtime defaults that consistently improve serving throughput on a+# 910B pair for a Qwen3-style MoE while remaining within the public+# deployment contract. They are applied before vLLM initialises its engine so+# that the configuration objects they create see the chosen values.++_ASCEND_RUNTIME_ENV: dict[str, str] = {+    # BF16 MoE on 910B keeps the default AllToAll + MC2 path; the fused+    # operators require W8A8 weights, so leave the env var at its default.+    "VLLM_ASCEND_ENABLE_FUSED_MC2": "0",+    # Enable the nz weight layout for the dense projections.+    "VLLM_ASCEND_ENABLE_NZ": "2",+    # Keep the batched KV-cache transpose path warm; saves microseconds per+    # decode step.+    "VLLM_ASCEND_FUSION_OP_TRANSPOSE_KV_CACHE_BY_BLOCK": "1",+    # Larger HCCL buffer reduces rendezvous stalls during EP all-to-all.+    "HCCL_BUFFSIZE": "1024",+    # Disable background MS monitor daemons inside the model process.+    "MSMONITOR_USE_DAEMON": "0",+    # Matmul +AllReduce is fused for the A2 platform family (which 910B+    # belongs to) when TP is enabled, avoiding a separate allreduce launch+    # on every TP-shared matmul.+    "VLLM_ASCEND_ENABLE_MATMUL_ALLREDUCE": "1",+    # Keep the same site layout as the host reference.+    "VLLM_PLUGINS": "ascend",+}++# Optimised vllm serve CLI arguments. They mirror the reference environment+# while enabling larger CUDA-graph coverage and slightly tighter memory to+# accommodate the workload's batched prefill phases.+_VLLM_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", "128",+    "--max-num-batched-tokens", "8192",+    "--enable-chunked-prefill",+    "--no-enable-prefix-caching",+    "--generation-config", "vllm",+    "--compilation-config",+    '{"cudagraph_mode":"FULL_DECODE_ONLY",'+    '"cudagraph_capture_sizes":[1,2,4,8,16,24,32,48,64,80,96,112,128],'+    '"use_inductor_graph_partition":true}',+    "--disable-uvicorn-access-log",+    "--no-enable-log-requests",+)+++def _apply_runtime_environment(devices: tuple[int, ...]) -> dict[str, str]:+    """Return the environment used to launch the vLLM child process."""+    environment: dict[str, str] = {+        name: value+        for name, value in os.environ.items()+    }+    environment.update(_ASCEND_RUNTIME_ENV)+    environment["ASCEND_RT_VISIBLE_DEVICES"] = ",".join(map(str, devices))+    environment["PYTHONUNBUFFERED"] = "1"+    environment["PYTHONDONTWRITEBYTECODE"] = "1"+    environment["NO_PROXY"] = "127.0.0.1,localhost,::1"+    environment["no_proxy"] = "127.0.0.1,localhost,::1"+    return environment+++def _build_vllm_argv(args: argparse.Namespace) -> list[str]:+    argv: list[str] = [+        sys.executable,+        "-B",+        "-m",+        "vllm.entrypoints.cli.main",+        "serve",+        args.model_path,+        "--tokenizer", args.tokenizer_path,+        "--served-model-name", args.served_model_name,+        "--host", args.host,+        "--port", str(args.port),+    ]+    argv.extend(_VLLM_SERVE_FLAGS)+    return argv+++class _Supervisor:+    """Coordinate the vLLM child process and shutdown signalling."""++    def __init__(self, *, argv: list[str], cwd: Path, environment: dict[str, str],+                 readiness_timeout_s: float) -> None:+        self._argv = argv+        self._cwd = cwd+        self._environment = environment+        self._readiness_timeout_s = readiness_timeout_s+        self._child: subprocess.Popen[bytes] | None = None+        self._shutdown_started = False++    def start(self, log_path: Path) -> None:+        log_path.parent.mkdir(parents=True, exist_ok=True)+        # The supervisor and child share the harness-visible process group+        # because the harness starts us with ``start_new_session=True`` and we+        # intentionally do NOT isolate the child further. SIGTERM delivered+        # to the group terminates both the supervisor and vLLM workers.+        with log_path.open("wb") as log:+            self._child = subprocess.Popen(+                self._argv,+                cwd=str(self._cwd),+                env=self._environment,+                stdin=subprocess.DEVNULL,+                stdout=log,+                stderr=subprocess.STDOUT,+                start_new_session=False,+            )++    def wait_until_ready(self, log_path: Path, port: int) -> None:+        """Wait for /v1/models to respond, signalling readiness."""+        import urllib.error+        import urllib.request++        deadline = time.monotonic() + self._readiness_timeout_s+        last_error: str | None = None+        while time.monotonic() < deadline:+            if self._child is not None and self._child.poll() is not None:+                tail = ""+                try:+                    tail = log_path.read_text(errors="replace").splitlines()[-30:]+                except OSError: pass+                raise RuntimeError(+                    "vLLM child exited before readiness (code "+                    f"{self._child.returncode}): {tail}"+                )+            try:+                with urllib.request.urlopen(+                    f"http://127.0.0.1:{port}/v1/models", timeout=2.0+                ) as response:+                    payload = response.read().decode("utf-8")+                    if "data" in payload:+                        return+            except (OSError, urllib.error.URLError, ValueError) as exc:+                last_error = type(exc).__name__+            time.sleep(1.0)+        raise RuntimeError(+            f"vLLM readiness probe timed out after {self._readiness_timeout_s}s"+            + (f"; last error: {last_error}" if last_error else "")+        )++    def terminate(self, timeout_s: float) -> None:+        if self._shutdown_started or self._child is None:+            return+        self._shutdown_started = True+        try:+            os.killpg(self._child.pid, signal.SIGTERM)+        except ProcessLookupError:+            return+        deadline = time.monotonic() + timeout_s+        while time.monotonic() < deadline:+            try:+                os.killpg(self._child.pid, 0)+            except ProcessLookupError:+                return+            if self._child.poll() is not None:+                return+            time.sleep(0.2)+        try:+            os.killpg(self._child.pid, signal.SIGKILL)+        except ProcessLookupError:+            return++    def wait(self) -> int:+        if self._child is None:+            return 0+        return self._child.wait()+++def _parse_args(argv: list[str] | None = None) -> argparse.Namespace:+    parser = argparse.ArgumentParser(+        prog="vllm_ascend.deployment.qwen3_30b_a3b",+        description=(+            "Framework-owned deployment entry point for Qwen3-30B-A3B on two "+            "Ascend 910B devices."+        ),+    )+    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", required=True,+                        help="Comma-separated Ascend device identifiers.")+    parser.add_argument("--runtime-dir", required=True,+                        help="Process working directory for the child engine.")+    parser.add_argument("--readiness-timeout-s", type=float, default=1800.0)+    return parser.parse_args(argv)+++def _devices(args: argparse.Namespace) -> tuple[int, ...]:+    return tuple(+        int(item) for item in args.device_ids.split(",") if item.strip()+    )+++def main(argv: list[str] | None = None) -> int:+    args = _parse_args(argv)+    devices = _devices(args)+    if not devices:+        raise ValueError("at least one Ascend device is required")++    runtime_dir = Path(args.runtime_dir).resolve(strict=True)+    log_path = runtime_dir / "vllm-serve.log"+    environment = _apply_runtime_environment(devices)+    vllm_argv = _build_vllm_argv(args)+    supervisor = _Supervisor(+        argv=vllm_argv,+        cwd=runtime_dir,+        environment=environment,+        readiness_timeout_s=args.readiness_timeout_s,+    )++    def _on_signal(signum: int, frame: Any) -> None:+        supervisor.terminate(timeout_s=60.0)++    signal.signal(signal.SIGTERM, _on_signal)+    signal.signal(signal.SIGINT, _on_signal)++    try:+        supervisor.start(log_path)+    except FileExistsError:+        log_path.unlink(missing_ok=True)+        supervisor.start(log_path)++    try:+        supervisor.wait_until_ready(log_path, args.port)+    except Exception:+        supervisor.terminate(timeout_s=30.0)+        raise++    try:+        return supervisor.wait()+    finally:+        supervisor.terminate(timeout_s=60.0)+++if __name__ == "__main__":+    raise SystemExit(main())\ No newline at end of file