Claude Fable 5.1 · Serving

S10 · SGLang 14B

Valid

SGLang Qwen3-14B system serving 2dev · Joint Optimization

2.43×PERFORMANCE RATIO
159TOOL 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 · 159 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
109Inspect
2Edit
2Build
12Validate
17Execute
4Profile
13Other

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 timeline139 groups · 159 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.

    3 calls · #0002–#0004

    cat <path>cd <path><command> <args>find <val> -maxdepth <n>head -n <n>
  3. Inspect · Device memory

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

    1 call · #0005–#0005

    ls -l -a <path> <n> > <path>echo <val>cat <path> <n> > <path>
  4. Execute · Benchmark & validation setup

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

    1 call · #0006–#0006

    cd <path>echo <val>find <path> -type <val>xargs <val> -csort -necho
    2 more command sketches
    echo <path>cat <path>
  5. Validate · Benchmark & validation setup

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

    1 call · #0007–#0007

    cd <path><command> <args>cat <val>echo
  6. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0008–#0008

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

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

    1 call · #0009–#0009

    echo <val>git status --shortheadgit log --oneline <flag>ls -l -a <path> <n> > <path>ls
    3 more command sketches
    cat <path> <n> > <path>python3 -c <script> <n> >& <path>tail -n <n>
  8. Inspect · Parallelism & communication

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

    1 call · #0010–#0010

    echo <val>npu-smi info <n> >& <path>head -n <n>envgrep -i -E <val>echo <path>
    4 more command sketches
    <command> <args>free -gpython3 -c <script> <n> >& <path>tail -n <n>
  9. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0011–#0011

    cat <path>
  10. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0012–#0012

    cat <path>
  11. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0013–#0013

    cat <path>
  12. Inspect · Source & workspace

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

    2 calls · #0014–#0015

    cd <path>echo <val>cat <path>echo <path>find <path> -iname <val> -o -iname <val>sort
    5 more command sketches
    ls -d <path> <path> <path> <n> > <path>head -n <n>envgrep -i -E <val>head
  13. Inspect · Dependencies & build setup

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

    1 call · #0016–#0016

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

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

    2 calls · #0017–#0018

    <command> <args>ls <val> <n> >& <path>head -n <n>echo <val>cat <path> <n> > <path>du <flag> <args>
    5 more command sketches
    ls -l -a <path> <n> > <path>find <path> -maxdepth <n> -name <val> -o -maxdepth <n> -name <val> -maxdepth <n> <args>envgrep -E <val>sort
  15. Inspect · Runtime processes

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

    1 call · #0019–#0019

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

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

    2 calls · #0020–#0021

    echo <val>find <path> -type <val>head -n <n>grep -r -n <val> <path> <n> > <path>echo <path>grep -r -n <val> <path> <path>
    3 more command sketches
    ls <path>ls -l -a <path> <n> > <path>grep -n <val> <path>
  17. Inspect · Attention kernels

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

    1 call · #0022–#0022

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

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

    2 calls · #0023–#0024

    bash <script> <n> >& <path>tail -n <n>echo <val>cat <path>echodate -u <val>
    1 more command sketches
    python3 -c <script>
  19. Inspect · Runtime processes

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

    1 call · #0025–#0025

    echo <val>grep -n <val> -A <n> <path>head -n <n>sed -n <val> <path>
  20. Inspect · Parallelism & communication

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

    2 calls · #0026–#0027

    echo <val>grep -r -n <val> <path>head -n <n>echo <path>grep -n <val> <path>sed -n <val> <path>
    1 more command sketches
    grep -r -n <val> <path> <path>
  21. Inspect · Runtime processes

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

    1 call · #0028–#0028

    echo <val>grep -r -n <val> -A <n> <path>head -n <n>sed -n <val> <path>grep -r -n <val> <path> <path> <n> > <path>
  22. Inspect · Device memory

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

    1 call · #0029–#0029

    tail -n <n> <path> <n> > <path>echo <val>npu-smi info <n> > <path>grep -E <path>head -n <n>
  23. Inspect · Runtime processes

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

    1 call · #0030–#0030

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

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

    1 call · #0031–#0031

    echo <val>sed -n <val> <path>grep -r -n <val> <path> --include <path>grep -v <path>head -n <n>
  25. Other · Rollout generation

    Requested script or workload execution related to rollout generation.

    1 call · #0032–#0032

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

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

    1 call · #0033–#0033

    cd <path>echo <path>grep -r -n <val> <path> <path>head -n <n>echo <val>grep -r -n <val> <path>
    3 more command sketches
    headenvgrep -i <val>
  27. Inspect · Device memory

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

    1 call · #0034–#0034

    tail -c <n> <path> <n> > <path>tail -n <n>echo <val>npu-smi info <n> > <path>grep <path>
  28. Inspect · Attention kernels

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

    2 calls · #0035–#0036

    echo <val>grep -n <val> <path>head -n <n>echo <path>grep -r -n <val> <path> <n> > <path>grep -r -n <val> <path>
  29. Inspect · Device memory

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

    1 call · #0037–#0037

    env <vars>echo <val>wc -l <val>echo <path>grep -n -E <val> <val>tail -n <n>
    3 more command sketches
    tail -n <n> <val>npu-smi info <n> > <path>grep <path>
  30. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0038–#0038

    echo <val>sed -n <val> <path>
  31. Inspect · Attention kernels

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

    1 call · #0039–#0039

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

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

    1 call · #0040–#0040

    echo <val>sed -n <val> <path>grep -n <val> <path>head
  33. Inspect · Device memory

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

    1 call · #0041–#0041

    env <vars>grep -n -E <val> <val>tail -n <n>echo <val>tail -n <n> <val>cat <path> <n> > <path>
    2 more command sketches
    npu-smi info <n> > <path>grep <path>
  34. Inspect · Attention kernels

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

    2 calls · #0042–#0043

    echo <val>sed -n <val> <path>grep -n <val> <path>grep -i -E <val>head -n <n>grep -r -n <val> <path>
  35. Inspect · KV-cache management

    Requested source searches and file and log inspection related to kv-cache management.

    1 call · #0044–#0044

    echo <val>grep -r -n <val> <path>head -n <n>grep -r -l -n <val> <path>headgrep -n <val> <path>
  36. Execute · Source & workspace

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

    1 call · #0045–#0045

    cat <path> <n> > <path>echo <val>echo <path>curl -s <flag> <args>head -c <n>echo
    1 more command sketches
    tail -n <n> <path> <n> > <path>
  37. Inspect · Source & workspace

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

    1 call · #0046–#0046

    mkdir -p <path>cat > <path> <script>echo <val>python3 -c <script>
  38. Profile · Batching & scheduling

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

    1 call · #0047–#0047

    cat > <path> <script>python3 -c <script>
  39. Inspect · Parallelism & communication

    Requested file and log inspection related to parallelism & communication.

    1 call · #0048–#0048

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

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

    1 call · #0049–#0049

    echo <val>sed -n <val> <path>grep -n <val> -A <n> <path>head -n <n>echo <path>grep -r -n <val> <path>
    1 more command sketches
    grep -i -E <val>
  41. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0050–#0050

    cd <path><command> <args>tail -n <n>
  42. Inspect · Source & workspace

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

    1 call · #0051–#0051

    cd <path>python3 <script> <flag> <args>tail -n <n>
  43. Inspect · Runtime processes

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

    1 call · #0052–#0052

    echo <val>sed -n <val> <path>grep -n <val> <path>
  44. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0053–#0053

    echo <val>sed -n <val> <path>
  45. Inspect · Dependencies & build setup

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

    1 call · #0054–#0054

    echo <val>grep -n <val> -A <n> <path>head -n <n>
  46. Inspect · Batching & scheduling

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

    1 call · #0055–#0055

    tail -c <n> <path> <n> > <path>echo <val>grep -E <val> <path> <n> > <path>tail -n <n>
  47. Inspect · Runtime processes

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

    1 call · #0056–#0056

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

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

    5 calls · #0057–#0061

    echo <val>grep -r -n <val> -A <n> <path> <n> > <path>head -n <n>ls <path>ls -l -a <path> <n> > <path>grep -r -n <val> <path>
    9 more command sketches
    grep -n <val> <path>tail -c <n> <path> <n> > <path>grep -E <val> <path>tail -n <n><command> <args>ls <path> <n> > <path>echo <path>env <vars> python3 -c <script> <n> >& <path>head
  49. Inspect · Attention kernels

    Requested source searches related to attention kernels.

    1 call · #0062–#0062

    echo <path>grep -n <val> <path>echo <val>
  50. Inspect · Batching & scheduling

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

    1 call · #0063–#0063

    echo <val>python3 -c <script>tail -c <n> <path> <n> > <path>grep -E <val> <path>tail -n <n>
  51. Inspect · Prefix caching

    Requested environment setup or inspection, source searches and file and log inspection related to prefix caching.

    1 call · #0064–#0064

    env <vars> timeout <n> <val> -B -c <path> <n> >& <path>grep -v -E <val>tail -n <n>
  52. Inspect · Runtime processes

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

    1 call · #0065–#0065

    echo <val>grep -r -n <val> -A <n> <path>head -n <n>grep -r -n <val> <path>
  53. Inspect · KV-cache management

    Requested file and log inspection and source searches related to kv-cache management.

    1 call · #0066–#0066

    echo <val>sed -n <val> <path>grep -n <val> -A <n> <path>head -n <n>
  54. Inspect · Dependencies & build setup

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

    1 call · #0067–#0067

    echo <val>sed -n <val> <path>
  55. Profile · Precision & numerical checks

    Requested script or workload execution related to precision & numerical checks.

    1 call · #0068–#0068

    python3 -c <script>
  56. Inspect · Batching & scheduling

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

    1 call · #0069–#0069

    tail -c <n> <path> <n> > <path>echo <val>grep -E <val> <path>tail -n <n>
  57. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0070–#0070

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

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

    1 call · #0071–#0071

    echo <path>grep -n <val> -A <n> <path>grep -n -E <val>head -n <n>echo <val>sed -n <val> <path>
  59. Inspect · Device memory

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

    1 call · #0072–#0072

    bash <script> <n> >& <path>tail -n <n>echo <val>npu-smi info <n> > <path>grep <path>
  60. Build · Prefix caching

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

    1 call · #0073–#0073

    mkdir -p <path>cat > <path> <script>python3 -c <script>wc -l <path>
  61. Inspect · Source & workspace

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

    1 call · #0074–#0074

    echo <val>sed -n <val> <path>grep -r -n <val> <path>headgrep -n <val> -A <n> <path>head -n <n>
  62. Inspect · Batching & scheduling

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

    2 calls · #0075–#0076

    echo <val>grep -n <val> <path>grep -n <val> -A <n> <path>grep -r -n <val> <path> <path> <n> > <path>head -n <n>grep -r -n <val> -A <n> <path> <n> > <path>
  63. Validate · Benchmark & validation setup

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

    1 call · #0077–#0077

    bash <script> <n> >& <path>python3 -c <script>echo <val>
  64. Inspect · Parallelism & communication

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

    2 calls · #0078–#0079

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

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

    3 calls · #0080–#0082

    sed -n <val> <path>echo <val>grep -n <val> <path>head -n <n>bash <script> <n> >& <path>tail -n <n>
    3 more command sketches
    grep -r -n <val> -A <n> <path> <n> > <path>grep -r -n <val> <path>head
  66. Inspect · Parallelism & communication

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

    1 call · #0083–#0083

    echo <val>grep -n <val> -A <n> <path>sed -n <val> <path>
  67. Inspect · Batching & scheduling

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

    1 call · #0084–#0084

    echo <val>grep -n <val> <path>head -n <n>grep -r -n <val> <path>
  68. Inspect · Device memory

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

    2 calls · #0085–#0086

    cat <path> <n> > <path>python3 -c <script>echo <val>echo <path>env <vars>grep -n -E <val> <val>
    5 more command sketches
    tail -n <n>npu-smi info <n> > <path>grep -E <path>grep -A <n> <val>head -n <n>
  69. Validate · Benchmark & validation setup

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

    1 call · #0087–#0087

    <command> <args>echo <val>ls -l -a <val> <n> > <path>ls -d <path> <n> > <path>ls -l -a <path> <n> > <path>bash <script> <n> >& <path>
    5 more command sketches
    tail -n <n>echo <path>rm -rf <path> <path> <path>rm -f <path> <path> <path>ls -l -a <val>
  70. Inspect · Source & workspace

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

    2 calls · #0088–#0089

    echo <val>grep -r -n <val> <path>headecho <path>grep -n <val> <path>head -n <n>
    3 more command sketches
    python3 -c <script>git status --shortgit status <flag>
  71. Inspect · Parallelism & communication

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

    1 call · #0090–#0090

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

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

    1 call · #0091–#0091

    echo <val>grep -r -n <val> -A <n> <path> <path> <n> > <path>head -n <n>grep -r -n <val> <path>head
  73. Inspect · Device memory

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

    2 calls · #0092–#0093

    tail -c <n> <path> <n> > <path>tail -n <n>echo <val>env <vars><command> <args>grep -n -E <val> <val>
    5 more command sketches
    npu-smi info <n> > <path>grep <path>python3 -c <script>ls -l -a <val> <n> > <path>tail -n <n> <val>
  74. Inspect · Batching & scheduling

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

    1 call · #0094–#0094

    echo <val>sed -n <val> <path>grep -n <val> -A <n> <path>head -n <n>
  75. Inspect · Reward & policy updates

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

    1 call · #0095–#0095

    sleep <n>env <vars>echo <path>grep -n -E <val> <val>headecho <val>
    4 more command sketches
    tail -n <n>grep -v -i -E <val>tail -n <n> <val>cut <flag>
  76. Inspect · Device memory

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

    1 call · #0096–#0096

    sleep <n>echo <val>python3 -c <script>npu-smi info <n> > <path>grep <path>cat <path> <n> > <path>
    3 more command sketches
    python3 -c <script> <n> > <path>tail -c <n> <path> <n> > <path>tail -n <n>
  77. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0097–#0097

    cd <path><command> <args>tail -n <n>
  78. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0098–#0098

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

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

    1 call · #0099–#0099

    cd <path>python3 <script> <flag> <args>tail -n <n>
  80. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0100–#0100

    python3 -c <script>
  81. Inspect · Attention kernels

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

    1 call · #0101–#0101

    echo <val>grep -n <val> <path>head -n <n>echoecho <path>grep -n <val> -B <n> -A <n> <path>
    3 more command sketches
    grep -i -E <val>ls <path> <n> > <path>grep -r -n <val> <path> <n> > <path>
  82. Inspect · Source & workspace

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

    1 call · #0102–#0102

    tail -c <n> <path> <n> > <path>echo <val>env <vars>grep -E <val> <val>tail -n <n>
  83. Inspect · Attention kernels

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

    1 call · #0103–#0103

    echo <val>grep -n <val> <path>head -n <n>echogrep -r -n <val> <path> --include <path>grep -v <path>
  84. Inspect · Source & workspace

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

    1 call · #0104–#0104

    echo <val>python3 -c <script>tail -c <n> <path> <n> > <path>
  85. Inspect · Device memory

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

    1 call · #0105–#0105

    env <vars>echo <val>grep -E <val> <val>tail -n <n><command> <args>grep -c <val> <val>
    7 more command sketches
    grep <val> <val>grep <flag> <args>awk <val>sort -gsort -nnpu-smi info <n> > <path>grep <path>
  86. Inspect · Source & workspace

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

    1 call · #0106–#0106

    echo <val>python3 -c <script>tail -c <n> <path> <n> > <path>grep -E <val> <path>tail -n <n>
  87. Inspect · Runtime processes

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

    1 call · #0107–#0107

    echo <val>sed -n <val> <path>grep -n <val> <path>grep -i <val>head
  88. Validate · Prefix caching

    Requested environment setup or inspection, source searches and file and log inspection related to prefix caching.

    1 call · #0108–#0108

    env <vars> timeout <n> <val> -B -c <path> <n> >& <path>grep -v -E <val>tail -n <n>
  89. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0109–#0109

    cd <path><command> <args>python3 <script> <flag> <args>python3 -c <script>echo <val>python3 - <script>
  90. Inspect · Task requirements

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

    1 call · #0110–#0110

    cd <path>cat > <path> <script>python3 <script> <n> >& <path>tail -n <n>
  91. Inspect · Attention kernels

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

    1 call · #0111–#0111

    echo <val>grep -r -n <val> -A <n> <path>head -n <n>sed -n <val> <path>
  92. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0112–#0112

    python3 -c <script>
  93. Execute · Benchmark & validation setup

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

    1 call · #0113–#0113

    bash <script> <n> >& <path>tail -n <n>
  94. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0114–#0114

    python3 -c <script>
  95. Validate · Attention kernels

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

    1 call · #0115–#0115

    env <vars>cat > <path> <script>ls -l -a <val>echo <val>cat <path>
  96. Execute · Device memory

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

    1 call · #0116–#0116

    python3 -c <script>echo <val>env <vars><command> <args>tail -n <n>echo <flag>
    3 more command sketches
    grep -E <val> <val>npu-smi info <n> > <path>grep <path>
  97. Execute · Runtime processes

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

    1 call · #0117–#0117

    echo <val>ls <path> <n> > <path>grep -i -E <val>headfind <val> -name <val> -o -name <val> <n> > <path>
  98. Inspect · Runtime processes

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

    1 call · #0118–#0118

    echo <val>grep -n -E <val> <path>echoenv <vars> python3 -B -c <script> <n> >& <path>grep -v -E <val>tail -n <n>
  99. Execute · Device memory

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

    1 call · #0119–#0119

    python3 -c <script>env <vars>echo <val><command> <args>grep -n -E <val> <val>tail -n <n>
    5 more command sketches
    echo <flag>grep -E <val> <val>npu-smi info <n> > <path>grep <path>tail -c <n> <path> <n> > <path>
  100. Validate · Benchmark & validation setup

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

    1 call · #0120–#0120

    timeout <n> <val> -m <val> <path> -x -q <n> >& <path>tail -n <n>
  101. Inspect · Source & workspace

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

    1 call · #0121–#0121

    echo <val>sed -n <val> <path> <n> > <path>echo <path>python3 -m <module> --version <n> > <path>
  102. Execute · Device memory

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

    1 call · #0122–#0122

    python3 -c <script>env <vars>echo <val><command> <args>wc -l < <path>grep -n -E <val> <val>
    6 more command sketches
    tail -n <n>grep -E <val> <val>cut <flag>npu-smi info <n> > <path>grep <path>ls -l -a <path> <n> > <path>
  103. Inspect · Source & workspace

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

    1 call · #0123–#0123

    cd <path>env <vars>echo <val><command> <args>python3 -m <module> <val> <flag> <args>python3 - <script>
    6 more command sketches
    python3 -m <module> <val>echo <path>grep -n -E <val> <val>head -n <n>truetail -c <n> <val>
  104. Inspect · Parallelism & communication

    Requested environment setup or inspection related to parallelism & communication.

    1 call · #0124–#0124

    env <vars> timeout <n> <val> -B <val> <script>
  105. Execute · Device memory

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

    1 call · #0125–#0125

    python3 -c <script>env <vars>echo <val>grep -E <val> <val> <n> > <path>tail -n <n>grep <flag> <args>
    6 more command sketches
    cut <flag>grep -n -E <val> <val> <n> > <path>grep -v -i -E <val>ls -l -a <path> <n> > <path>npu-smi info <n> > <path>grep <path>
  106. Validate · Benchmark & validation setup

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

    1 call · #0126–#0126

    timeout <n> <val> -m <val> <path> -x -q <n> >& <path>tail -n <n>
  107. Execute · Batching & scheduling

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

    1 call · #0127–#0127

    python3 -c <script>env <vars>echo <val>grep <flag> <args>awk <val>sort -n
    5 more command sketches
    tail -n <n>grep -E <val> <val> <n> > <path>cut <flag>ls -l -a <path> <n> > <path>tail -c <n> <path> <n> > <path>
  108. Validate · Benchmark & validation setup

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

    1 call · #0128–#0128

    cat > <path> <script>python3 -c <script>echo <val>cd <path>git status --shortfind <path> -type <val>
    3 more command sketches
    sortgit diff --stat <val>tail -n <n>
  109. Profile · Batching & scheduling

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

    1 call · #0129–#0129

    sleep <n>python3 -c <script>env <vars>echo <val>grep <flag> <args>awk <val>
    7 more command sketches
    sort -ntail -n <n>grep -E <val> <val> <n> > <path>cut <flag>grep -n -E <val> <val> <n> > <path>grep -v -i -E <val>ls -l -a <path> <n> > <path>
  110. Validate · Benchmark & validation setup

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

    1 call · #0130–#0130

    python3 <script> <n> >& <path>tail -n <n>
  111. Other · Device memory

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

    1 call · #0131–#0131

    python3 -c <script>echo <val>npu-smi info <n> > <path>grep <path><command> <args>grep <n>
  112. Edit · Benchmark & validation setup

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

    1 call · #0132–#0132

    mkdir -p <path>env <vars>cp <path> <path>cp <path> <path> <n> > <path>echo <val>grep -E <val> <path> > <path> <n> > <path>
    5 more command sketches
    sed -i <path> <path>cat <path>sha256sum <path>tee <path>ls -l -a <path>
  113. Validate · Benchmark & validation setup

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

    1 call · #0133–#0133

    <command> <args>env <vars>mkdir -p <path>cp <path> <path>mv <path> <path>echo <val>
    8 more command sketches
    bash <script> <n> > <path>python3 -c <script>bash <script> > <path> <n> >& <path>truerm -rf <path> <path> <path>rm -f <path> <path>bash <script> <n> >& <path>tail -n <n>
  114. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0134–#0134

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

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

    1 call · #0135–#0135

    echo <val>ls -l -a <path> <n> > <path>sha256sum <path> <path> <n> > <path>cat <path>ls <path> <n> >& <path>head -n <n>
    2 more command sketches
    cd <path>git status --short
  116. Execute · Device memory

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

    1 call · #0136–#0136

    sleep <n>python3 -c <script>echo <val>tail -c <n> <path> <n> > <path>tail -n <n>env <vars>
    4 more command sketches
    grep -E <val> <val> <n> > <path>sed <path>curl -s <flag> <args>head -c <n>
  117. Profile · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0137–#0137

    cd <path>echo <val><command> <args>python3 <script> <flag> <args>python3 -c <script>python3 - <script>
    1 more command sketches
    echo
  118. Other · Source & workspace

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

    1 call · #0138–#0138

    sleep <n>python3 -c <script>echo <val>tail -c <n> <path> <n> > <path>
  119. Inspect · Source & workspace

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

    1 call · #0139–#0139

    env <vars>echo <val>grep <flag> <args>awk <val>sort -gtail -n <n>
    5 more command sketches
    sort -nprintf <val>grep -E <val> <val> <n> > <path>sortuniq -c
  120. Other · Batching & scheduling

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

    1 call · #0140–#0140

    cd <path>python3 - <script>grep -n <val> <path>python3 -m <module> <script>echo <val>
  121. Inspect · Source & workspace

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

    1 call · #0141–#0141

    sleep <n>python3 -c <script>echo <val>tail -c <n> <path> <n> > <path>tail -n <n>
  122. Execute · Task requirements

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

    1 call · #0142–#0142

    <command> <args>env <vars>echo <val>bash <script> <n> >& <path>python3 -c <script>mv <path> <path>
    8 more command sketches
    rm -rf <path>grep -n <val> <path>rm -rf <path> <path> <path>rm -f <path>echocd <path>python3 <script> <flag> <args>python3 - <script>
  123. Inspect · Source & workspace

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

    1 call · #0143–#0143

    sleep <n>python3 -c <script>echo <val>tail -c <n> <path> <n> > <path>tail -n <n>
  124. Build · Attention kernels

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

    1 call · #0144–#0144

    mkdir -p <path>cat > <path> <script><command> <args>echo <val>grep -n -E <val> <path>
  125. Execute · Benchmark & validation setup

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

    1 call · #0145–#0145

    <command> <args>env <vars>echo <val>bash <script> <n> >& <path>python3 -c <script>rm -rf <path> <path> <path>
    4 more command sketches
    rm -f <path> <path>grep -n <val> <path>bash <script> > <path> <n> >& <path>python3 <script>
  126. Edit · Parallelism & communication

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

    1 call · #0146–#0146

    env <vars>rm -f <path>cat > <path> <script>sed -i <path> <path>ls <val>echo <val>
    2 more command sketches
    cat <path>grep -n <val> <path>
  127. Execute · Benchmark & validation setup

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

    1 call · #0147–#0147

    sleep <n>python3 -c <script>echo <val>tail -c <n> <path> <n> > <path>tail -n <n>
  128. Inspect · Prefix caching

    Requested repository inspection, workspace inspection and file and log inspection related to prefix caching.

    1 call · #0148–#0148

    cd <path>echo <val>git status --shortfind <path> -type <val> -o -type <val>sortecho <path>
    5 more command sketches
    find <path> -name <val> -o -name <val>headgit diff --stat <val>tail -n <n>grep -n -E <val> <path>
  129. Inspect · Source & workspace

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

    1 call · #0149–#0149

    cd <path>python3 - <script>echo <val>ls <path>
  130. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0150–#0150

    cd <path>python3 - <script>
  131. Execute · Device memory

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

    1 call · #0151–#0151

    sleep <n>python3 -c <script>echo <val>tail -c <n> <path> <n> > <path>tail -n <n>npu-smi info <n> > <path>
    1 more command sketches
    grep <path>
  132. Inspect · Device memory

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

    1 call · #0152–#0152

    echo <val>npu-smi info <n> > <path>grep -A <n> <val>grep -E <val>head -n <n><command> <args>
    6 more command sketches
    grep -q <val>pgrep <flag> <args>grep -v <val>ls <path> <n> > <path>bash <script> <n> >& <path>python3 -c <script>
  133. Execute · Parallelism & communication

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

    1 call · #0153–#0153

    env <vars>cp <path> <path>python3 - <script>grep -n <val> <path>echo <val>sha256sum <path>
    1 more command sketches
    ls <path>
  134. Validate · Benchmark & validation setup

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

    1 call · #0154–#0154

    env <vars>echo <val>bash <script> <n> > <path>python3 -c <script>rm -rf <path> <path> <path>rm -f <path>
    4 more command sketches
    <command> <args>grep -q <val>pgrep <flag> <args>grep -v <val> > <path>
  135. Inspect · Source & workspace

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

    1 call · #0155–#0155

    cd <path>env <vars>echo <val>sed -n <val> <val>echopython3 -m <module> <val>
    7 more command sketches
    python3 - <script>grep -n -E <val> <val>head -n <n>tail -c <n> <val><command> <args>rm -rf <path>git status --short
  136. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0156–#0156

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

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

    1 call · #0157–#0157

    sleep <n>python3 -c <script>echo <val>tail -c <n> <path> <n> > <path>tail -n <n>echo
    1 more command sketches
    python3 -c <script> <n> > <path>
  138. Execute · Benchmark & validation setup

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

    1 call · #0158–#0158

    cd <path>python3 - <script>
  139. Execute · Device memory

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

    1 call · #0159–#0159

    cd <path>echo <val>git status --shortfind <path> -type <val>sortpython3 -c <script>
    6 more command sketches
    echo <path>npu-smi info <n> > <path>grep <path><command> <args>grep -q <val>ls <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.

sglang · 1 changed files

Base commit: 340db9201005fc64635bb25db1d2538f955761c3

diff --git a/python/sglang/srt/deployment/qwen3_14b.py b/python/sglang/srt/deployment/qwen3_14b.pynew file mode 100644index 0000000000000000000000000000000000000000..faec7fb55b81dfe4e26034942ada64b66d9ab756--- /dev/null+++ b/python/sglang/srt/deployment/qwen3_14b.py@@ -0,0 +1,227 @@+"""Framework deployment entrypoint for the two-device Qwen3-14B serving system.++The public deployment contract fixes the outer service ABI: the model, the+served model name, the host and port, the 4096-token context, and greedy+sampling semantics.  It also fixes the set of devices this deployment may+touch.  Everything inside that boundary -- the process graph, the parallel+layout, routing, batching, memory sizing and graph capture -- is chosen here.++Layout rationale+----------------+Qwen3-14B in bfloat16 is roughly 27.6 GiB of weights and each Ascend 910B+exposes 64 GiB of HBM, so one *complete* replica fits on a single device.  The+host reference layout instead shards a single replica across both devices with+``tp_size=2``.  That choice pays a collective on every attention and MLP block+and, because the KV pool is sized per device, leaves each request stream with+half the cache it could have had.++This module runs one independent replica per visible device+(``dp_size = len(device_ids)``, ``tp_size = 1``) so that:++  * no collective sits on the per-token critical path,+  * each replica owns a full-size KV pool, and+  * the replicas serve disjoint requests concurrently behind one HTTP front end.++Both replicas load identical weights and run an identical single-device+execution plan.  Routing is round-robin rather than load-aware: a load-aware+policy consults a live scheduler snapshot, so replica assignment -- and with it+batch composition -- would depend on arrival timing and greedy completions+would stop being reproducible run to run.++Sizing rationale+----------------+The public performance contract drives 32 concurrent requests with inputs up+to 2048 tokens and outputs up to 512.  A single stream can therefore hold+~2560 tokens, and 32 of them need ~68k KV tokens.  The reference layout caps+the pool at 32768 tokens, which forces the scheduler to queue work even though+the hardware is idle.  Here the pool is sized from the memory fraction, which+on a 64 GiB device leaves well over 100k tokens after weights, so the declared+concurrency is admitted without queueing.++Decode graph capture is enabled.  The reference layout disables it, paying+per-step host launch overhead on every decode token.  Prefill graph capture+stays off: piecewise capture is unavailable on this platform and prefill shapes+are chunked, so capture would not pay for itself.+"""++from __future__ import annotations++import argparse+import os+import sys+from pathlib import Path++# --------------------------------------------------------------------------+# Runtime environment.+#+# These must be set before torch / torch_npu are imported, so they are applied+# at module scope ahead of any sglang import.  The host applies an equivalent+# set when it launches its own reference layout; a framework-owned entrypoint+# has to supply them itself.  Existing values always win so the surrounding+# deployment stays authoritative.+# --------------------------------------------------------------------------+_RUNTIME_ENVIRONMENT = {+    # Expand HCCL collectives on the vector cores rather than the AI cores.+    "HCCL_OP_EXPANSION_MODE": "AIV",+    # Larger HCCL transport buffer; cheap at this scale and avoids stalls.+    "HCCL_BUFFSIZE": "200",+    # Let the NPU caching allocator grow segments instead of fragmenting.+    "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",+    # Overlap graph-plan work with compute on the NPU graph path.+    "SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",+}+++def _apply_runtime_environment() -> dict[str, str]:+    applied: dict[str, str] = {}+    for name, value in _RUNTIME_ENVIRONMENT.items():+        if os.environ.get(name) in (None, ""):+            os.environ[name] = value+            applied[name] = value+    return applied+++_APPLIED_ENVIRONMENT = _apply_runtime_environment()+++def parse_devices(raw: str) -> tuple[int, ...]:+    """Parse the host-provided device id list."""+    if raw is None or raw.strip() == "":+        return ()+    values = tuple(int(item) for item in raw.split(","))+    if any(item < 0 for item in values) or len(values) != len(set(values)):+        raise ValueError(f"--device-ids is invalid: {raw!r}")+    return values+++def parse_args(argv: list[str]) -> argparse.Namespace:+    parser = argparse.ArgumentParser(+        prog="sglang.srt.deployment.qwen3_14b",+        description="Two-device Qwen3-14B serving deployment.",+    )+    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", type=int, required=True)+    parser.add_argument("--device-ids", default="")+    parser.add_argument("--runtime-dir", default=None)+    return parser.parse_args(argv)+++def build_server_args(args: argparse.Namespace):+    """Translate the deployment contract into a concrete execution plan."""+    from sglang.srt.server_args import ServerArgs++    devices = parse_devices(args.device_ids)+    # One full replica per assigned device.  With no device list (a degenerate+    # host configuration) fall back to a single replica.+    replicas = max(1, len(devices))++    return ServerArgs(+        # ---- Fixed by the public deployment contract -------------------+        model_path=args.model_path,+        tokenizer_path=args.tokenizer_path,+        served_model_name=args.served_model_name,+        host=args.host,+        port=args.port,+        dtype="bfloat16",+        context_length=4096,+        random_seed=20260819,+        device="npu",+        # ---- Framework-local execution plan ---------------------------+        # Replicate, do not shard: keeps every collective off the critical path.+        tp_size=1,+        dp_size=replicas,+        pp_size=1,+        # Round-robin, not load-aware.  Load-aware dispatch reads a live+        # scheduler snapshot, so which replica serves a request depends on+        # arrival timing; that changes batch composition run to run and makes+        # greedy completions irreproducible.  Round-robin dispatch is a pure+        # counter, so an identical request sequence always lands the same way.+        load_balance_method="round_robin",+        schedule_policy="fcfs",+        # Unique prompts mean prefix reuse cannot pay for its bookkeeping.+        disable_radix_cache=True,+        # Admit the full declared concurrency on either replica.+        max_running_requests=32,+        chunked_prefill_size=8192,+        # Size the KV pool from the memory fraction rather than pinning it+        # below what the declared concurrency needs.+        max_total_tokens=None,+        mem_fraction_static=0.85,+        # Capture the decode step; leave chunked prefill eager.+        cuda_graph_backend_decode="full",+        cuda_graph_max_bs_decode=32,+        cuda_graph_backend_prefill="disabled",+        attention_backend="ascend",+    )+++def record_plan(runtime_dir: str | None, server_args, devices: tuple[int, ...]) -> None:+    """Record the selected plan next to the runtime state, for evidence."""+    if not runtime_dir:+        return+    import json++    try:+        target = Path(runtime_dir)+        target.mkdir(parents=True, exist_ok=True)+        (target / "deployment-plan.json").write_text(+            json.dumps(+                {+                    "schema_version": 1,+                    "kind": "qwen3_14b_deployment_plan",+                    "device_ids": list(devices),+                    "replicas": server_args.dp_size,+                    "tp_size": server_args.tp_size,+                    "load_balance_method": server_args.load_balance_method,+                    "mem_fraction_static": server_args.mem_fraction_static,+                    "max_running_requests": server_args.max_running_requests,+                    "chunked_prefill_size": server_args.chunked_prefill_size,+                    "cuda_graph_backend_decode": (+                        server_args.cuda_graph_config.decode.backend+                    ),+                    "cuda_graph_backend_prefill": (+                        server_args.cuda_graph_config.prefill.backend+                    ),+                    "applied_environment": _APPLIED_ENVIRONMENT,+                },+                indent=2,+                sort_keys=True,+            )+            + "\n",+            encoding="utf-8",+        )+    except OSError:+        # Evidence recording must never take the service down.+        pass+++def main(argv: list[str] | None = None) -> int:+    args = parse_args(sys.argv[1:] if argv is None else argv)++    from sglang.srt.plugins import load_plugins+    from sglang.srt.utils.common import suppress_noisy_warnings++    suppress_noisy_warnings()+    load_plugins()++    server_args = build_server_args(args)+    record_plan(args.runtime_dir, server_args, parse_devices(args.device_ids))++    from sglang.srt.entrypoints.http_server import launch_server+    from sglang.srt.utils import kill_process_tree++    try:+        launch_server(server_args)+    finally:+        # Mirror the reference entrypoint: make sure no scheduler or+        # detokenizer child outlives the supervisor, so the cleanup+        # contract holds even on an abnormal exit.+        kill_process_tree(os.getpid(), include_parent=False)+    return 0+++if __name__ == "__main__":+    raise SystemExit(main())