Claude Fable 5.1 · Serving

S11 · vLLM MoE

Valid

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

1.11×PERFORMANCE RATIO
157TOOL 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 agentClaude Fable 5.1 · 157 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
74Inspect
5Build
39Validate
18Execute
9Profile
1Rollback
11Other

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 timeline130 groups · 157 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

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

    Requested file and log inspection and workspace inspection related to task requirements.

    2 calls · #0002–#0003

    cd <path>echo <val>cat <val>echo<command> <args>find <val> -maxdepth <n>
    1 more command sketches
    head -n <n>
  3. Validate · Benchmark & validation setup

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

    1 call · #0004–#0004

    cd <path>wc -l <path><command> <args>cat <val>
  4. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0005–#0005

    cd <path>echo <val>cat <val>echo
  5. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0006–#0006

    cd <path>wc -l <path><command> <args>cat <val>
  6. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0007–#0007

    cd <path>echo <val>cat <path>echoecho <path>wc -c <path> <path>
  7. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0008–#0008

    cd <path>python3 -c <script>
  8. Inspect · Source & workspace

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

    1 call · #0009–#0009

    echo <val>cd <path>git log --oneline <flag>git status --shortheadecho
    5 more command sketches
    git log --oneline <flag> <args>git status --short <n> > <path>head -n <n>ls -l -a <path>ls -l -a <path> <n> >& <path>
  9. Inspect · Parallelism & communication

    1 tool error

    Requested file and log inspection, environment setup or inspection and source searches related to parallelism & communication.

    1 call · #0010–#0010

    echo <val><command> <args>head <flag>echoenvgrep -i -E <val>
    4 more command sketches
    sortwhich <val>python3 -Vls <path> <n> >& <path>
  10. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0011–#0012

    sed -n <val> <path>
  11. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0013–#0013

    cat <path>
  12. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0014–#0014

    cat <path>
  13. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0015–#0015

    cd <path>python3 -c <script>
  14. Build · Dependencies & build setup

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

    1 call · #0016–#0016

    cd <path>echo <val>ls <val>echols <path>find <val> -maxdepth <n> -type <val>
    4 more command sketches
    cat <path> <n> > <path>headgrep -r -n <val> <path>head -n <n>
  15. Inspect · Dependencies & build setup

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

    1 call · #0017–#0017

    echo <val>python3 -m <module> <val> <n> > <path>grep -i -E <val>echopython3 -c <script> <n> >& <path>tail -n <n>
    3 more command sketches
    ls <path> <n> > <path>find <path> -maxdepth <n> -iname <val> <flag> <args>head -n <n>
  16. Inspect · Source & workspace

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

    6 calls · #0018–#0023

    cd <path>echo <path>find <val> -maxdepth <n> <flag> <args>head -n <n>echoecho <val>
    20 more command sketches
    grep -r -l -i -E <val> <val> --include <path>date -u <val>python3 -c <script>envgrep -E <val>sortcat <path> <n> >& <path>ls -l -a <val> <n> >& <path>headls -l -a <path> <n> >& <path>env <vars>ls -l -a <val>cat <path>cat <path> <n> > <path>du <flag> <args>grep -r -n <val> <path>sed -n <val> <path>ls -l -a <path>wc -l <path>grep -n <val> <path>
  17. Inspect · Benchmark & validation setup

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

    1 call · #0024–#0024

    cd <path>echo <val>grep -r -l -n <val> <val> <val> <val> <n> > <path>head -n <n>echoecho <path>
    5 more command sketches
    find <val> -iname <val>grep -i -E <val>find <path> -path <path> <flag> <args>xargs <val> <flag> <args>head
  18. Inspect · Source & workspace

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

    1 call · #0025–#0025

    cd <path>echo <val>grep -n <val> <path>head -n <n>echosed -n <val> <path>
  19. Execute · Parallelism & communication

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

    1 call · #0026–#0026

    echo <val>grep -r -n <val> <path> <path> <n> > <path>head -n <n>echo<command> <args>grep -r -q <flag> <args>
    1 more command sketches
    grep -r -n <val> -A <n> <path>
  20. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0027–#0027

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

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

    3 calls · #0028–#0030

    cd <path>echo <val>grep -r -n <val> <path>head -n <n>echogrep -r -n <val> <path> <path> <path>
    1 more command sketches
    sed -n <val> <path>
  22. Inspect · Parallelism & communication

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

    1 call · #0031–#0031

    cd <path>echo <val>grep -n <val> <path>head -n <n>echols <val>
    3 more command sketches
    grep -i <val>grep -r -n <val> <path>head
  23. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    1 call · #0032–#0032

    cd <path>echo <path>grep -n <val> -A <n> <path>echo <flag>
  24. Other · Task requirements

    Requested workspace file updates, workspace inspection and file and log inspection related to task requirements.

    1 call · #0033–#0033

    <command> <args>mkdir -p <path>cp <path> <path> <path>ls -l -a <path>cat > <path> <script>chmod <val> <path>
    1 more command sketches
    echo <val>
  25. Validate · Benchmark & validation setup

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

    1 call · #0034–#0034

    cd <path><script> <args>echo <flag>
  26. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0035–#0035

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

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

    1 call · #0036–#0036

    cd <path>echo <val>grep -r -n <val> --include <path> <path>head -n <n>echosed -n <val> <path>
  28. Inspect · Source & workspace

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

    1 call · #0037–#0037

    cd <path>grep -n <val> <path>sed <path>head -n <n>
  29. Inspect · Benchmark & validation setup

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

    1 call · #0038–#0038

    echo <path>grep -n <val> <path>tail -n <n>echoecho <val>grep -n <val> -A <n> <path>
    1 more command sketches
    head -n <n>
  30. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0039–#0039

    cd <path>sed -n <val> <path>
  31. Inspect · Device memory

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

    1 call · #0040–#0040

    echo <val>cat <path> <n> >& <path>tail -n <n>echols -l -a <val>npu-smi info <n> >& <path>
    4 more command sketches
    grep -E <path>head -n <n>ps <flag>grep <flag> <args>
  32. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0041–#0041

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

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

    1 call · #0042–#0042

    echo <val>sed -n <val> <path>echogrep -n <val> <path>head -n <n>
  34. Inspect · Runtime processes

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

    1 call · #0043–#0043

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

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

    1 call · #0044–#0044

    echo <val>grep -r -n <val> <path>head -n <n>
  36. Validate · Device memory

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

    1 call · #0045–#0045

    echo <val>tail -n <n> <path> <n> >& <path>echonpu-smi info <n> >& <path>grep -E <path>head -n <n>
  37. Inspect · Source & workspace

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

    1 call · #0046–#0046

    cd <path>echo <val>ls <path> <n> > <path>echogrep -r -n <val> <path> --include <path> -lhead
    3 more command sketches
    echo <flag>grep -r -n <val> -A <n> <path> <n> > <path>head -n <n>
  38. Inspect · Batching & scheduling

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

    1 call · #0047–#0047

    cd <path>echo <val>grep -r -n <val> <path> --include <path>head -n <n>echogrep -r -n <val> <flag> <args>
    1 more command sketches
    sed -n <val>
  39. Inspect · Source & workspace

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

    2 calls · #0048–#0049

    echo <val>grep -n <val> <path>head -n <n>echogrep -n <val> -A <n> <path>cd <path>
    4 more command sketches
    grep -r -n <val> <path> --include <path>headecho <path>grep -r -n <val> -A <n> <path>
  40. Inspect · Prefix caching

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

    1 call · #0050–#0050

    echo <val>grep -r -n <val> <path>head -n <n>echo
  41. Inspect · Parallelism & communication

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

    1 call · #0051–#0051

    cd <path>echo <path>grep -r -n <val> --include <path> --include <val> --include <path> <path>grep -v <val>head -n <n>
  42. Execute · Runtime processes

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

    1 call · #0052–#0052

    echo <val>grep -r -n <val> <path> <path> <path> <n> > <path>head -n <n>echogrep -r -l -n <val> <path>head
    1 more command sketches
    grep -r -n <val> --include <path> <path>
  43. Inspect · Source & workspace

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

    3 calls · #0053–#0055

    cd <path>echo <val>grep -n <val> -A <n> <path>head -n <n>echogrep -r -n <val> -A <n> <path>
    6 more command sketches
    cat <path>sed -n <val> <path>grep -r -n <val> <path> <n> > <path>ls <path>grep -i <val>grep -r -n <val> <path> <path>
  44. Validate · Device memory

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

    1 call · #0056–#0056

    echo <val>date -u <val>echogrep -v -E <val> <path> <n> > <path>tail -n <n>npu-smi info <n> >& <path>
    2 more command sketches
    grep -E <path>ls <val>
  45. Inspect · Source & workspace

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

    5 calls · #0057–#0061

    echo <val>sed -n <val> <path>echogrep -r -n <val> <path> <path> <n> > <path>head -n <n>cd <path>
    6 more command sketches
    sed -n <val> <path> <n> > <path>grep -r -n <val> -A <n> <path> <path> <n> > <path>grep -r -n <val> <path> --include <path>headgrep -n <val> <path>grep -r -n <val> -A <n> <path>
  46. Inspect · Parallelism & communication

    Requested file and log inspection related to parallelism & communication.

    1 call · #0062–#0062

    cd <path>echo <val>sed -n <val> <path>echo
  47. Validate · Device memory

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

    1 call · #0063–#0063

    date -u <val>echo <val>grep -v -E <val> <path> <n> > <path>tail -n <n>echonpu-smi info <n> >& <path>
    3 more command sketches
    grep -E <path>cat <path> <n> > <path>ls <val>
  48. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0064–#0064

    cd <path>echo <val>sed -n <val> <path>echo
  49. Validate · Device memory

    Requested environment setup or inspection, source searches and file and log inspection related to device memory.

    1 call · #0065–#0065

    env <vars>echo <val>grep -i -E <val> <val>head -n <n>echoecho <path>
  50. Inspect · Runtime processes

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

    1 call · #0066–#0066

    cd <path>echo <val>grep -n <val> -A <n> <path>grep -n -E <val>head -n <n>echo
    1 more command sketches
    grep -r -n <val> -A <n> <path>
  51. Inspect · Source & workspace

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

    1 call · #0067–#0067

    cd <path>echo <val>grep -r -n <val> -A <n> <path>head -n <n>echo
  52. Validate · Device memory

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

    1 call · #0068–#0068

    date -u <val>python3 -c <script>echoecho <val>ls -l -a <val>tail -n <n> <path> <n> >& <path>
    3 more command sketches
    grep -c <path> <path> <n> > <path>npu-smi info <n> >& <path>grep -E <path>
  53. Inspect · Source & workspace

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

    3 calls · #0069–#0071

    cd <path>echo <val>grep -r -n <val> -A <n> <path>head -n <n>grep -n <val> <path>echo
    2 more command sketches
    sed -n <val> <path>cat <path>
  54. Validate · Device memory

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

    1 call · #0072–#0072

    date -u <val>echoecho <val>ls <val>python3 -c <script> <n> >& <path>grep -c <path> <path> <n> > <path>
    2 more command sketches
    npu-smi info <n> >& <path>grep -E <path>
  55. Inspect · Source & workspace

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

    3 calls · #0073–#0075

    echo <val>grep -r -n <val> <path>head -n <n>echosed -n <val> <path>cd <path>
    5 more command sketches
    grep -r -n <val> -A <n> <path>ls <path> <n> > <path>grep -r -n <val> <path> <n> > <path>grep -r -n <val> <path> <path> --include <path> --include <val> <n> > <path>grep -v <val>
  56. Execute · Prefix caching

    Requested tool activity related to prefix caching.

    1 call · #0076–#0076

    echo <val><command> <args>
  57. Profile · Prefix caching

    Requested workspace file updates, file and log inspection and script or workload execution related to prefix caching.

    1 call · #0077–#0077

    <command> <args>cd <path>mkdir -p <path>cat > <path> <script>python3 -m <module> <script> <script>echo <val>
    2 more command sketches
    python3 -c <script>env <vars> bash <script> > <path> <n> >& <path>
  58. Profile · Device memory

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

    1 call · #0078–#0078

    date -u <val>python3 -c <script>echoecho <val>tail -n <n> <path> <n> >& <path>grep -c <path> <path> <n> > <path>
    6 more command sketches
    echo <n>echo <path>grep <flag> <args>tail -n <n>npu-smi info <n> >& <path>grep -E <path>
  59. Execute · Device memory

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

    1 call · #0079–#0079

    date -u <val>python3 -c <script>echoecho <val>tail -n <n> <path> <n> >& <path>grep <flag> <args>
    5 more command sketches
    echo <n>npu-smi info <n> >& <path>grep -E <path>ls -l -a <path> <n> >& <path>tail -n <n>
  60. Inspect · Source & workspace

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

    1 call · #0080–#0080

    cd <path>echo <val>awk <val> <path> <path>trueecho<command> <args>
    5 more command sketches
    echo <flag>tail -n <n>python3 -m <module> --version <n> >& <path>grep -n -E <val> <val>head -n <n>
  61. Profile · Batching & scheduling

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

    1 call · #0081–#0081

    cat > <path> <script>echo <val>ls -l -a <path> <path>
  62. Inspect · Runtime processes

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

    1 call · #0082–#0082

    cd <path>echo <val>python3 - <script>echogit -C <path> <val> --shortecho <flag>
    1 more command sketches
    head
  63. Profile · Prefix caching

    Requested script or workload execution related to prefix caching.

    1 call · #0083–#0083

    cd <path>python3 - <n> >& <path> <script>
  64. Other · Device memory

    Requested script or workload execution related to device memory.

    1 call · #0084–#0084

    python3 <script>
  65. Execute · Device memory

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

    2 calls · #0085–#0086

    date -u <val>python3 -c <script>echoecho <val>tail -n <n> <path> <n> >& <path>grep <flag> <args>
    7 more command sketches
    echo <n>npu-smi info <n> >& <path>grep -E <path>ls -l -a <path> <n> >& <path>tail -n <n>python3 <script> <path> <n> >& <path>head -n <n>
  66. Profile · Device memory

    Requested environment setup or inspection, execution waits and runtime inspection related to device memory.

    1 call · #0087–#0087

    env <vars>echo <val><command> <args>sleep <n>npu-smi info <n> >& <path>grep -E <path>
    2 more command sketches
    <script> <args>echo <flag>
  67. Profile · Runtime processes

    Requested script or workload execution related to runtime processes.

    1 call · #0088–#0088

    cd <path>python3 - <n> >& <path> <script>
  68. Execute · Benchmark & validation setup

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

    1 call · #0089–#0089

    date -u <val>echo <val>tail -n <n> <path> <n> >& <path>echols <val>python3 <script> <path> <n> >& <path>
  69. Other · Device memory

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

    1 call · #0090–#0090

    echo <val>tail -n <n> <path> <n> >& <path>echonpu-smi info <n> >& <path>grep -E <path>
  70. Validate · Device memory

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

    1 call · #0091–#0091

    date -u <val>python3 -c <script>echoecho <val>tail -n <n> <path> <n> >& <path>grep <flag> <args>
    6 more command sketches
    sortuniq -ctail -n <n>echo <n>npu-smi info <n> >& <path>grep -E <path>
  71. Execute · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0092–#0092

    python3 <script>
  72. Execute · Device memory

    Requested environment setup or inspection, source searches and file and log inspection related to device memory.

    1 call · #0093–#0093

    env <vars>echo <val>grep <flag> <args>sed <path>awk <val>head -n <n>
    7 more command sketches
    echoecho <path>awk <flag> <args>sort <flag> <args>tail -n <n>echo <n>sort -u
  73. Validate · Reward & policy updates

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

    1 call · #0094–#0094

    date -u <val>python3 -c <script>echoecho <val>tail -n <n> <path> <n> >& <path>grep <flag> <args>
    7 more command sketches
    head -n <n>cut <flag>echo <n>sort -uecho <path>npu-smi info <n> >& <path>grep -E <path>
  74. Execute · Batching & scheduling

    Requested environment setup or inspection, source searches and file and log inspection related to batching & scheduling.

    1 call · #0095–#0095

    env <vars>echo <val>grep <flag> <args>awk <flag> <args>head -n <n>echo
    3 more command sketches
    sort -nuniq -cpython3 <script>
  75. Validate · Benchmark & validation setup

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

    1 call · #0096–#0096

    python3 <script>
  76. Validate · Reward & policy updates

    Requested script or workload execution, file and log inspection and workspace inspection related to reward & policy updates.

    1 call · #0097–#0097

    date -u <val>python3 -c <script>echoecho <val>tail -n <n> <path> <n> >& <path>echo <path>
    9 more command sketches
    ls -l -a <path> <n> > <path>awk <val>sleep <n>grep <flag> <args>sort -uecho <n>ps <flag>npu-smi info <n> >& <path>grep -E <path>
  77. Other · Batching & scheduling

    1 tool error

    Requested script or workload execution related to batching & scheduling.

    2 calls · #0098–#0099

    python3 <script>
  78. Rollback · Device memory

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

    1 call · #0100–#0100

    cd <path>echo <val>grep -n -E <val> <path>echocat > <path> <script>chmod <val> <path>
    2 more command sketches
    cat <path>git status --short <path>
  79. Validate · Reward & policy updates

    Requested environment setup or inspection, execution waits and script or workload execution related to reward & policy updates.

    1 call · #0101–#0101

    env <vars><command> <args>sleep <n>date -u <val>python3 -c <script>echo
    8 more command sketches
    echo <val>tail -n <n> <val> <n> >& <path>grep <flag> <args>sort -uecho <n>python3 <script> <path> <path> <n> >& <path>npu-smi info <n> >& <path>grep -E <path>
  80. Other · Device memory

    Requested script or workload execution related to device memory.

    1 call · #0102–#0102

    python3 <script>
  81. Inspect · Device memory

    Requested environment setup or inspection, workspace inspection and file and log inspection related to device memory.

    1 call · #0103–#0103

    env <vars>ls <val> <n> > <path>echo <val>cat > <path> <script><command> <args>touch <val>
    4 more command sketches
    grep -q <val> <val>echo <flag> <args>echo <flag>cat <val>
  82. Validate · Reward & policy updates

    Requested environment setup or inspection, execution waits and script or workload execution related to reward & policy updates.

    1 call · #0104–#0104

    env <vars><command> <args>sleep <n>date -u <val>python3 -c <script>echo
    9 more command sketches
    echo <val>tail -n <n> <val> <n> >& <path>grep <flag> <args>sort -utail -n <n>echo <n>python3 <script> <path> <path> <n> >& <path>npu-smi info <n> >& <path>grep -E <path>
  83. Validate · Benchmark & validation setup

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

    1 call · #0105–#0105

    cd <path>echo <val>python3 -m <module> --version <n> >& <path>head -n <n>echotimeout <n> <val> -m <val> <path> -q <flag> <args>
    1 more command sketches
    tail -n <n>
  84. Profile · Prefix caching

    Requested script or workload execution related to prefix caching.

    1 call · #0106–#0106

    cd <path>python3 - <n> >& <path> <script>
  85. Validate · Reward & policy updates

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

    1 call · #0107–#0107

    date -u <val>python3 -c <script>echoecho <val>tail -n <n> <path> <n> >& <path>grep <flag> <args>
    8 more command sketches
    sortuniq -csort <flag>head -n <n>echo <n>tail -n <n>npu-smi info <n> >& <path>grep -E <path>
  86. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0108–#0108

    Stop task <task>
  87. Inspect · Speculative decoding

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

    1 call · #0109–#0109

    cd <path>python3 - <script>python3 -m <module> <script>echo <val>echosed -n <path> <path>
    5 more command sketches
    awk <val> <path>truegrep -r -n <val> <path> <path> <n> > <path>grep -v <val>head -n <n>
  88. Validate · Device memory

    Requested file and log inspection, workspace file updates and script or workload execution related to device memory.

    1 call · #0110–#0110

    <command> <args>cat > <path> <script>chmod <val> <path>echo <val>bash <script> <n> >& <path>tail -n <n>
    9 more command sketches
    pkill -f <val> <n> > <path>truesleep <n>grep <flag> <args>awk <val>python3 -c <script><script> <args>env <vars>echo <flag>
  89. Profile · Parallelism & communication

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

    1 call · #0111–#0111

    echo <val>grep -r -n <val> <path> <n> > <path>grep -v -i -E <val>head -n <n>echoecho <path>
    3 more command sketches
    grep -r -l -n <val> <path> <n> > <path>cd <path>python3 - <n> >& <path> <script>
  90. Inspect · Device memory

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

    1 call · #0112–#0112

    date -u <val>python3 -c <script>echoecho <val>cat <path> <n> >& <path>tail -n <n>
    6 more command sketches
    ls <val>npu-smi info <n> >& <path>grep -E <path>ps <flag>grep -E <val>wc -l
  91. Validate · Device memory

    1 tool error

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

    1 call · #0113–#0113

    <command> <args>cp -f <path> <path> <n> > <path>truecat > <path> <script>chmod <val> <path>echo <val>
    6 more command sketches
    npu-smi info <n> >& <path>grep -E <path><script> <args>env <vars>echo <flag>echo <flag> <args>
  92. Validate · Benchmark & validation setup

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

    2 calls · #0114–#0115

    echo <val>env <vars>printf <val> <path>grep <flag> <args>echoawk <val>
    4 more command sketches
    ls -l -a <path> <n> >& <path>head -n <n>python3 <script> <path> <path> <n> >& <path>python3 - <script>
  93. Validate · Device memory

    Requested workspace file updates, environment setup or inspection and runtime inspection related to device memory.

    1 call · #0116–#0116

    <command> <args>mv -f <path> <path>export <vars>echo <val>npu-smi info <n> >& <path>grep -E <path>
    7 more command sketches
    timeout <n> <val> <path> > <path> <n> >& <path>env <vars>cp -f <path> <path>grep <flag> <args>tail -n <n>bash <script> <n> >& <path>echo <flag>
  94. Execute · Benchmark & validation setup

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

    2 calls · #0117–#0118

    echo <val>grep <flag> <args>sortuniq -cechohead -n <n>
    9 more command sketches
    cut <flag>python3 -c <script>env <vars><command> <args>tail -n <n>cut <flag> <args>grep -a <path> <val> <n> > <path>tr <val> <val>echo <n>
  95. Validate · Device memory

    Requested environment setup or inspection, execution waits and file and log inspection related to device memory.

    1 call · #0119–#0119

    env <vars><command> <args>sleep <n>date -u <val>echoecho <val>
    10 more command sketches
    tail -n <n> <val> <n> >& <path>grep <flag> <args>sort -usortuniq -cheadecho <n>python3 <script> <path> <path> <n> >& <path>npu-smi info <n> >& <path>grep -E <path>
  96. Validate · Benchmark & validation setup

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

    1 call · #0120–#0120

    python3 <script>
  97. Validate · Device memory

    Requested environment setup or inspection, execution waits and file and log inspection related to device memory.

    1 call · #0121–#0121

    env <vars><command> <args>sleep <n>date -u <val>echoecho <val>
    10 more command sketches
    tail -n <n> <val> <n> >& <path>grep <flag> <args>sort -usortuniq -cheadecho <n>python3 <script> <path> <path> <n> >& <path>npu-smi info <n> >& <path>grep -E <path>
  98. Validate · Benchmark & validation setup

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

    1 call · #0122–#0122

    echo <val>ls -l -a <val>awk <val>echo<command> <args>grep <flag> <args>
    3 more command sketches
    head -n <n>sed <path>ls -d <path> <n> > <path>
  99. Execute · Device memory

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

    1 call · #0123–#0123

    cd <path>echo <val>grep -n -E <val> <path>sed <path>grep -n <val> <path>echo
    4 more command sketches
    python3 <script>cat > <path> <script>chmod <val> <path>echo <path>
  100. Validate · Device memory

    Requested environment setup or inspection, execution waits and file and log inspection related to device memory.

    1 call · #0124–#0124

    env <vars><command> <args>sleep <n>date -u <val>echoecho <val>
    9 more command sketches
    tail -n <n> <val> <n> >& <path>python3 <script> <path> <path> <n> >& <path>echo <val> <path> <path>grep <flag> <args>tail -n <n>ls -l -a <path> <n> > <path>awk <val>npu-smi info <n> >& <path>grep -E <path>
  101. Build · Dependencies & build setup

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

    1 call · #0125–#0125

    cd <path>echo <path>grep -n -E <val> <path> <val> <n> > <path>head -n <n>echoecho <val>
    6 more command sketches
    sed -n <path> <val> <n> > <path>python3 - <script>ls -l -a <path>awk <val>env <vars> python3 -c <script> <n> >& <path>grep -E <val>
  102. Build · Batching & scheduling

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

    1 call · #0126–#0126

    cat > <path> <script>echo <val>echopython3 <script> <n> >& <path>
  103. Execute · Device memory

    Requested environment setup or inspection, source searches and execution waits related to device memory.

    1 call · #0127–#0127

    env <vars><command> <args>grep <flag> <args>sleep <n>date -u <val>python3 -c <script>
    11 more command sketches
    echoecho <val>tail -n <n> <val> <n> >& <path>sort -usortuniq -cheadecho <n>python3 <script> <n> >& <path>npu-smi info <n> >& <path>grep -E <path>
  104. Validate · Benchmark & validation setup

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

    1 call · #0128–#0128

    echo <val>python3 -c <script>echogrep <flag> <args>sortuniq -c
    2 more command sketches
    grep -n <val> <path>sed <path>
  105. Build · Dependencies & build setup

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

    1 call · #0129–#0129

    cd <path>env <vars>echo <val>awk <val> <val> <path>echoecho <path>
    8 more command sketches
    head -n <n> <val>sed <path>grep -n -E <val> <val>python3 -m <module> <val> <script>git status --shortgit -C <path> <val> --shorttruefind <path> -type <val> -name <path>
  106. Validate · Batching & scheduling

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

    1 call · #0130–#0130

    <command> <args>cp -f <path> <path>echo <val>ls <val>grep <val>sed <path>
    8 more command sketches
    echo <path><script> <args>mv -f <path> <path>export <vars>timeout <n> <val> <path> > <path> <n> >& <path>env <vars>python3 - <script>echo <flag>
  107. Execute · Device memory

    Requested environment setup or inspection, file and log inspection and source searches related to device memory.

    2 calls · #0131–#0132

    env <vars>cat > <path> <script><command> <args>grep -q <val> <val> <n> > <path>echo <flag> <args>echo <flag>
    16 more command sketches
    cat <val>grep <flag> <args>sleep <n>date -u <val>python3 -c <script>echoecho <val>tail -n <n> <val> <n> >& <path>sort -usortuniq -cheadecho <n>python3 - <script>npu-smi info <n> >& <path>grep -E <path>
  108. Inspect · Device memory

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

    1 call · #0133–#0133

    cd <path>echo <val>grep -n -E <val> <path>sed <path>grep -n <val> <path>echo
    6 more command sketches
    <command> <args>echo <path>diff <path> <path>truecat > <path> <script>chmod <val> <path>
  109. Validate · Benchmark & validation setup

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

    1 call · #0134–#0134

    python3 <script>
  110. Other · Source & workspace

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

    1 call · #0135–#0135

    echo <val>ls -l -a <val>awk <val>echotail -n <n> <path> <n> >& <path>
  111. Validate · Batching & scheduling

    Requested environment setup or inspection, workspace file updates and execution waits related to batching & scheduling.

    1 call · #0136–#0136

    <command> <args>export <vars>cp -f <path> <path>sleep <n>echo <val>python3 - <script>
    6 more command sketches
    echo <flag><script> <args>mv -f <path> <path>timeout <n> <val> <path> > <path> <n> >& <path>env <vars>python3 <script> <path> <path>
  112. Inspect · Device memory

    Requested environment setup or inspection, source searches and execution waits related to device memory.

    1 call · #0137–#0137

    env <vars><command> <args>grep <flag> <args>sleep <n>date -u <val>python3 -c <script>
    10 more command sketches
    echoecho <val>cat <val> <n> >& <path>tail -n <n>grep -n -E <val> <path>sed <path>grep -n <val> <path>echo <path>npu-smi info <n> >& <path>grep -E <path>
  113. Validate · Device memory

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

    1 call · #0138–#0138

    <command> <args>export <vars>mv -f <path> <path>echo <val>env <vars> timeout <n> <val> <path> > <path> <n> >& <path>env <vars>
    6 more command sketches
    python3 -c <script>bash <script> <n> >& <path>tail -n <n>echo <flag>npu-smi info <n> >& <path>grep -E <path>
  114. Validate · Batching & scheduling

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

    1 call · #0139–#0139

    cd <path>cp -f <path> <path>echo <val>echo <path>grep -n -E <val> <path>sed <path>
    4 more command sketches
    cat > <path> <script>chmod <val> <path>echopython3 - <script>
  115. Validate · Device memory

    Requested environment setup or inspection, source searches and execution waits related to device memory.

    1 call · #0140–#0140

    env <vars><command> <args>grep <flag> <args>sleep <n>date -u <val>python3 -c <script>
    11 more command sketches
    echoecho <val>cat <val> <n> >& <path>tail -n <n>cat <path> <n> > <path>sortuniq -cheadecho <path>npu-smi info <n> >& <path>grep -E <path>
  116. Inspect · Device memory

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

    1 call · #0141–#0141

    cd <path>echo <val>find <path> -name <val> -o -name <val>sed <path>trueecho
    14 more command sketches
    find <path> -name <val> -type <val> <flag> <args>find <path> -name <val> <flag> <args>find <path> -type <val>grep -n -E <val> <path> <n> > <path>head -n <n>echo <path>git status --shortgit status <flag> <args>git -C <path> <val> --shortpython3 -c <script>env <vars>ls -l -a <val> <n> > <path>awk <val>cat <path> <n> > <path>
  117. Validate · Device memory

    Requested environment setup or inspection, workspace inspection and file and log inspection related to device memory.

    1 call · #0142–#0142

    env <vars>echo <val>ls -l -a <path> <n> >& <path>sed <path><command> <args>cp -f <path> <path>
    13 more command sketches
    echols <val>cat <path>cd <path>git status <flag> <args>sed -n <path> <path>grep -E <val>grep -n -E <val> <path>python3 - <script>npu-smi info <n> >& <path>grep -E <path>find <path> -name <val> -type <val> <flag> <args>true
  118. Execute · Attention kernels

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

    1 call · #0143–#0143

    echo <val>ps <flag> <args>grep -E <val>grep -v <val>sed <path>echo
    9 more command sketches
    ps -o <val> -p <val> <n> > <path>tail -n <n>cut <flag>echo <path><command> <args>grep <flag> <args>npu-smi info <n> >& <path>sed -n <path>head -n <n>
  119. Validate · Benchmark & validation setup

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

    1 call · #0144–#0144

    cd <path>env <vars>echo <val><command> <args>diff <path> <val>sed <path>
    8 more command sketches
    echo <path>echofind <path> <val> -name <val> -o -name <val> <val> <flag>truefind <path> -type <val>sortgit status <flag> <args>git -C <path> <val> <flag>
  120. Validate · Device memory

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

    1 call · #0145–#0145

    date -u <val>python3 -c <script>echoecho <val>npu-smi info <n> >& <path>grep -E <path>
    2 more command sketches
    sed <path>cat <path> <n> > <path>
  121. Profile · Device memory

    Requested script or workload execution related to device memory.

    1 call · #0146–#0146

    cd <path>python3 - <n> >& <path> <script>
  122. Validate · Device memory

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

    1 call · #0147–#0147

    <command> <args>export <vars>cd <path>echo <val><script> <args>mv -f <path> <path>
    10 more command sketches
    timeout <n> <val> <path> > <path> <n> >& <path>env <vars>cp -f <path> <path>python3 - <script>echo <flag>python3 <script> <path> <path>echo <path>bash <script> > <path> <n> >& <path>npu-smi info <n> >& <path>grep -E <path>
  123. Inspect · Benchmark & validation setup

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

    1 call · #0148–#0148

    echo <val><command> <args>echo <path>grep -n -E <val> <path>sed <path>python3 -c <script>
    4 more command sketches
    echocat <path> <n> > <path>sed -n <val>python3 <script>
  124. Execute · Device memory

    Requested environment setup or inspection, source searches and execution waits related to device memory.

    1 call · #0149–#0149

    env <vars><command> <args>grep <flag> <args>sleep <n>date -u <val>python3 -c <script>
    12 more command sketches
    echoecho <val>cat <val> <n> >& <path>tail -n <n>echo <path>sortuniq -cheadsort -used <path>npu-smi info <n> >& <path>grep -E <path>
  125. Inspect · Device memory

    Requested environment setup or inspection, source searches and execution waits related to device memory.

    2 calls · #0150–#0151

    env <vars><command> <args>grep <flag> <args>sleep <n>date -u <val>python3 -c <script>
    14 more command sketches
    echoecho <val>cat <val> <n> >& <path>tail -n <n>sed <path>cut <flag> <args><script> <args>npu-smi info <n> >& <path>grep -E <path>ls -l -a <val>awk <val>cat <path> <n> > <path>head -n <n> <val>python3 - <script>
  126. Validate · Device memory

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

    1 call · #0152–#0152

    cd <path>echo <val>git status <flag> <args>sed <path>git -C <path> <val> <flag>echo
    13 more command sketches
    find <path> -type <val>sortecho <path>grep -E <val> <path>sed -n <path> <path>grep -E <val>python3 - <script>npu-smi info <n> >& <path>grep -E <path>python3 -c <script>find <path> -name <val> -type <val> <flag> <args>truedate -u <val>
  127. Build · Device memory

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

    1 call · #0153–#0153

    python3 - <script>echoecho <val>npu-smi info <n> >& <path>sed -n <path>sed <path>
    2 more command sketches
    head -n <n>grep <flag> <args>
  128. Validate · Benchmark & validation setup

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

    1 call · #0154–#0154

    date -u <val>python3 -c <script>echoecho <val>env <vars>echo <path>
    1 more command sketches
    <command> <args>
  129. Inspect · Task requirements

    Requested file and log inspection, script or workload execution and environment setup or inspection related to task requirements.

    1 call · #0155–#0155

    cd <path>echo <val><command> <args>command -v <val> > <path> <n> >& <path>head -n <n>printf <val> <val>
    10 more command sketches
    python3 -m <module> --version <n> >& <path>echopython3 -m <module> --version > <path> <n> >& <path>env <vars>tail -n <n>awk <val> <path>trueecho <path>python3 -c <script>find <path> -name <val> -type <val> <flag> <args>
  130. Inspect · Device memory

    Requested environment setup or inspection, script or workload execution and workspace inspection related to device memory.

    2 calls · #0156–#0157

    env <vars>python3 - <script>echoecho <val>ls <val>sed <path>
    9 more command sketches
    cat <path>grep -A <n> <val> <path>cd <path>date -u <val>echo <path>git status <flag> <args>git -C <path> <val> <flag>npu-smi info <n> >& <path>grep <flag> <args>

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..1dda5bea06fbdca1aeb4eedc94506be6999731cf--- /dev/null+++ b/vllm_ascend/deployment/__init__.py@@ -0,0 +1,16 @@+#+# Copyright (c) 2026 Huawei Technologies Co., Ltd. All Rights Reserved.+# This file is a part of the vllm-ascend project.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+#     http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+"""Framework-owned serving deployments for vLLM-Ascend."""diff --git a/vllm_ascend/deployment/qwen3_30b_a3b.py b/vllm_ascend/deployment/qwen3_30b_a3b.pynew file mode 100644index 0000000000000000000000000000000000000000..9871cec3d94a303ca6083676b77336ae41f03725--- /dev/null+++ b/vllm_ascend/deployment/qwen3_30b_a3b.py@@ -0,0 +1,205 @@+#+# Copyright (c) 2026 Huawei Technologies Co., Ltd. All Rights Reserved.+# This file is a part of the vllm-ascend project.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+#     http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+"""Qwen3-30B-A3B MoE serving deployment for two Ascend 910B devices.++The host supplies a fixed outer ABI (model/tokenizer paths, served model name,+host, port, device ids, runtime dir) and this module owns the framework-local+execution plan behind it: device placement, the TP/EP plan, batching and+scheduling budgets, graph mode, KV cache sizing, and the Ascend runtime+environment.++The process stays in the foreground by replacing itself with the vLLM+OpenAI-compatible server via ``os.execv``. Keeping the same PID means the+supervisor's process-group signalling reaches the real server directly, so+``SIGTERM`` tears down every engine child process and releases the port+without an extra layer of forwarding.++Design notes for the chosen plan, relative to the host reference+configuration:++* KV cache. The reference caps device memory at 60%, which leaves the MoE+  weights (~28.5 GiB/device) plus a small KV cache and idles roughly 24 GiB+  of HBM. Raising the fraction converts that idle HBM into KV cache, which is+  what allows the 64-way decode profile to stay resident instead of being+  admission-throttled.+* Prefill budget. A larger batched-token budget lets several 2048-token+  prompts share one prefill step, which is the dominant cost of the+  domain-shift profile.+* Weight prefetch. The Ascend MoE path can prefetch expert ``gate_up``+  weights while routing is computed; it engages on prefill-sized batches and+  is inert for small decode batches.+* Numerics. Precision, model identity, greedy sampling defaults, graph mode,+  the expert-parallel plan, and prefix-cache state are all kept exactly as the+  reference resolves them, so token-level output is unchanged.+"""++from __future__ import annotations++import argparse+import json+import os+import sys++#: Ascend/CANN runtime tuning applied to the serving process. These are+#: documented vLLM-Ascend performance settings and do not alter numerics.+#: The supervisor strips ``TASK_*`` names from the service environment, so+#: the operator-queue setting has to be established here.+RUNTIME_ENV: dict[str, str] = {+    # Enable the asynchronous operator delivery queue. Level 2 is rejected by+    # torch_npu during NPU graph capture ("Do not support TASK_QUEUE_ENABLE = 2+    # during NPU graph capture"), and this deployment captures decode graphs,+    # so level 1 is the usable setting.+    "TASK_QUEUE_ENABLE": "1",+    # Bind worker threads to NUMA-local cores.+    "CPU_AFFINITY_CONF": "1",+    # Schedule collectives on AI vector cores instead of the AI CPU.+    "HCCL_OP_EXPANSION_MODE": "AIV",+}++#: Decode graph capture sizes. The steady profile runs 64 concurrent+#: requests, so the ladder tops out at the largest decode batch actually+#: scheduled.+CUDAGRAPH_CAPTURE_SIZES: list[int] = [8, 16, 32, 64]++#: Fraction of device HBM the engine may use. The remaining headroom covers+#: the non-torch allocations and graph pool measured on this stack.+GPU_MEMORY_UTILIZATION = "0.90"++#: Per-step batched-token budget. Sized so multiple 2048-token prompts share+#: a prefill step while staying well inside the activation budget.+MAX_NUM_BATCHED_TOKENS = "24576"++#: Maximum concurrent sequences, matching the public workload's decode+#: concurrency.+MAX_NUM_SEQS = "64"++MAX_MODEL_LEN = "4096"+DTYPE = "bfloat16"+++def parse_args(argv: list[str] | None = None) -> argparse.Namespace:+    """Parse the fixed host deployment ABI."""+    parser = argparse.ArgumentParser(+        prog="vllm_ascend.deployment.qwen3_30b_a3b",+        description="Qwen3-30B-A3B MoE serving deployment for Ascend 910B.",+    )+    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", required=True)+    parser.add_argument("--port", required=True, type=int)+    parser.add_argument("--device-ids", required=True)+    parser.add_argument("--runtime-dir", required=True)+    return parser.parse_args(argv)+++def parse_device_ids(raw: str) -> list[int]:+    """Return the visible device ids in the order the host assigned them."""+    devices = [int(item) for item in raw.split(",") if item != ""]+    if not devices:+        raise ValueError("at least one device id is required")+    if len(devices) > 2:+        raise ValueError("this deployment targets at most two devices")+    if len(set(devices)) != len(devices):+        raise ValueError("device ids must be unique")+    return devices+++def build_environment(+    base: dict[str, str], devices: list[int]+) -> dict[str, str]:+    """Return the environment for the serving process."""+    environment = dict(base)+    environment.update(RUNTIME_ENV)+    # Pin the framework to exactly the devices the host assigned.+    environment["ASCEND_RT_VISIBLE_DEVICES"] = ",".join(+        str(device) for device in devices+    )+    # The Ascend platform plugin supplies the NPU backend.+    environment.setdefault("VLLM_PLUGINS", "ascend")+    return environment+++def build_argv(args: argparse.Namespace, devices: list[int]) -> list[str]:+    """Return the argv that serves the model over the public HTTP surface."""+    compilation_config = {+        # Uniform decode batches replay a full captured graph; mixed+        # prefill batches fall back to eager execution.+        "cudagraph_mode": "FULL_DECODE_ONLY",+        "cudagraph_capture_sizes": list(CUDAGRAPH_CAPTURE_SIZES),+    }+    additional_config = {+        # Overlap expert weight loads with routing on prefill-sized batches.+        "weight_prefetch_config": {"enabled": True},+    }+    return [+        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),+        "--dtype",+        DTYPE,+        "--max-model-len",+        MAX_MODEL_LEN,+        # Both devices hold one shard of every layer and one half of the+        # expert set.+        "--tensor-parallel-size",+        str(len(devices)),+        "--enable-expert-parallel",+        "--gpu-memory-utilization",+        GPU_MEMORY_UTILIZATION,+        "--max-num-seqs",+        MAX_NUM_SEQS,+        "--max-num-batched-tokens",+        MAX_NUM_BATCHED_TOKENS,+        "--enable-chunked-prefill",+        "--no-enable-prefix-caching",+        # Neutral sampling defaults: the checkpoint's generation_config.json+        # carries temperature/top_p/top_k that would otherwise perturb+        # greedy requests.+        "--generation-config",+        "vllm",+        "--compilation-config",+        json.dumps(compilation_config, separators=(",", ":")),+        "--additional-config",+        json.dumps(additional_config, separators=(",", ":")),+    ]+++def main(argv: list[str] | None = None) -> int:+    args = parse_args(argv)+    devices = parse_device_ids(args.device_ids)+    os.makedirs(args.runtime_dir, exist_ok=True)+    os.chdir(args.runtime_dir)+    environment = build_environment(dict(os.environ), devices)+    command = build_argv(args, devices)+    # Replace this process so the server keeps the supervised PID and owns+    # signal handling and child cleanup directly.+    os.execve(command[0], command, environment)+++if __name__ == "__main__":+    raise SystemExit(main())