GLM-5.3 · Serving

S10 · SGLang 14B

Valid

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

2.61×PERFORMANCE RATIO
274TOOL EVENTS
1TEXT PATCHES
0BINARY NAMES

01 / PROCESS MAP

Agents over time

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

Elapsed time · mm:ss

Agent / model
+05:07+06:08+07:08+08:08+09:08
Main agentGLM-5.3Main timeline · 173 calls
Subagent 1GLM-5.3From Main agent · 51 calls
Subagent 2GLM-5.3From Main agent · 50 calls

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

InspectEditValidateExecuteBuildProfileRollbackOther
165Inspect
14Edit
11Validate
56Execute
5Profile
23Other

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 timeline210 groups · 274 calls · 2 subagents

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

Main agent

  1. Inspect · Task requirements

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

    3 calls · #0001–#0003

    echo <val>ls -l -a <path> <n> > <path>head -n <n>find <path> -maxdepth <n> -name <val> -o -maxdepth <n> -name <val> <n> <args>ls -l -a <path>echo <flag>
    1 more command sketches
    cat <path>
  2. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0004–#0004

    cd <path><command> <args>cat <val>
  3. Inspect · Task requirements

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

    1 call · #0005–#0005

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

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

    1 call · #0006–#0006

    cd <path><command> <args>cat <val>
  5. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0007–#0007

    cat <path>
  6. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0008–#0008

    cat <path>
  7. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0009–#0009

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

    Requested file and log inspection related to task requirements.

    1 call · #0010–#0010

    cat <path>
  9. Inspect · Device memory

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

    1 call · #0011–#0011

    envgrep -E <val>sortecho <flag>npu-smi info <n> >& <path>head -n <n>
  10. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0012–#0012

    date -uecho <flag>cat <path>head -n <n>cd <path><command> <args>
    1 more command sketches
    cat <val>
  11. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0013–#0013

    cd <path>python3 -c <script>
  12. Other · Rollout generation

    Requested script or workload execution related to rollout generation.

    1 call · #0014–#0014

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

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

    2 calls · #0015–#0016

    cat <path>git log --oneline <flag>head -n <n>ls <path>
  14. Validate · Benchmark & validation setup

    Requested workspace file updates related to benchmark & validation setup.

    1 call · #0017–#0017

    mkdir -p <path>cd <path><command> <args>echo <val> >> <path>
  15. Inspect · Source & workspace

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

    1 call · #0018–#0018

    ls <path>grep -r -n <val> <path>head -n <n>
  16. Inspect · Runtime processes

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

    3 calls · #0019–#0021

    grep -n <val> <path>head -n <n>sed -n <val> <path>cat <path>
  17. Inspect · Source & workspace

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

    2 calls · #0022–#0023

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

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

    2 calls · #0024–#0025

    tail -n <n> <path> <n> > <path>echo <flag>sleep <n>tail -c <n> <path> <n> > <path>echoecho <val>
    1 more command sketches
    cat <path>
  19. Execute · Runtime processes

    Requested task coordination related to runtime processes.

    1 call · #0026–#0026

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

    Delegated by Main agent at call #0026. Runs in the background. Observed activity +05:26–+08:51. Overlapping activity: Subagent 2, Main agent.

    1. Inspect · Prefix caching

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

      1 call · #0027–#0027

      grep -n <val> <path>head -n <n>
    2. Inspect · Batching & scheduling

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

      1 call · #0028–#0028

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

      Requested source searches related to parallelism & communication.

      1 call · #0029–#0029

      grep -n <val> <path>
    4. Inspect · Speculative decoding

      Requested workspace inspection related to speculative decoding.

      1 call · #0030–#0030

      ls <path>
    5. Inspect · Runtime processes

      Requested file and log inspection related to runtime processes.

      1 call · #0031–#0031

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

      Requested file and log inspection related to batching & scheduling.

      1 call · #0032–#0032

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

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

      1 call · #0035–#0035

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

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

      1 call · #0038–#0038

      grep -r -n <val> <path>grep -v <val>head -n <n>
    9. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      1 call · #0039–#0039

      sed -n <val> <path>
    10. Inspect · Speculative decoding

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

      1 call · #0042–#0042

      grep -n <val> <path>grep -i <val>head -n <n>echo <val>grep -r -n <val> <path>
    11. Inspect · Runtime processes

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

      1 call · #0044–#0044

      sed -n <val> <path>echo <val>grep -r -n <val> <path>head -n <n>
    12. Inspect · Speculative decoding

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

      1 call · #0046–#0046

      grep -r -n <val> <path> <path> <path>head -n <n>
    13. Inspect · Speculative decoding

      Requested file and log inspection related to speculative decoding.

      1 call · #0051–#0051

      sed -n <val> <path>echo <val>
    14. Execute · Runtime processes

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

      1 call · #0052–#0052

      cat <path> <n> > <path>head -n <n>echo <val>grep -r -n <val> <path>
    15. Inspect · Speculative decoding

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

      2 calls · #0055–#0056

      grep -r -l -n <val> <path>head -n <n>echo <val>sed -n <val> <path>grep -r -n <val> <path>
    16. Inspect · Speculative decoding

      Requested file and log inspection related to speculative decoding.

      1 call · #0059–#0059

      sed -n <val> <path>echo <val>
    17. Inspect · Speculative decoding

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

      1 call · #0062–#0062

      grep -r -n <val> <path> <path> <n> > <path>head -n <n>echo <val>grep -r -n <val> <path> <n> > <path>
    18. Inspect · Runtime processes

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

      1 call · #0068–#0068

      grep -r -n <val> <path>head -n <n>echo <path>grep -r -l -n <val> <path> <path> <n> > <path>
    19. Inspect · Batching & scheduling

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

      1 call · #0069–#0069

      grep -n <val> <path>head -n <n>
    20. Inspect · Speculative decoding

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

      1 call · #0073–#0073

      sed -n <val> <path>echo <val>ls <path>grep -r -n <val> <path>head -n <n>
    21. Inspect · Attention kernels

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

      1 call · #0075–#0075

      grep -r -n <val> <path>headecho <val>grep -n <val> <path>
    22. Inspect · Runtime processes

      Requested file and log inspection related to runtime processes.

      1 call · #0078–#0078

      sed -n <val> <path>echo <val>
    23. Inspect · Speculative decoding

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

      1 call · #0079–#0079

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

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

      1 call · #0082–#0082

      grep -r -n <val> <path>head -n <n>echo <val>python3 -c <script> <n> > <path>grep -r -n <val> <path> <n> > <path>head
    25. Inspect · Speculative decoding

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

      1 call · #0083–#0083

      grep -r -n <val> <path>grep -i -n <val>head
    26. Inspect · Speculative decoding

      Requested file and log inspection related to speculative decoding.

      1 call · #0094–#0094

      sed -n <val> <path>
    27. Inspect · Speculative decoding

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

      1 call · #0096–#0096

      grep -r -n <val> <path>head -n <n>
    28. Inspect · Speculative decoding

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

      1 call · #0099–#0099

      grep -n <val> <path>head -n <n>echo <val>sed -n <val> <path>
    29. Inspect · Speculative decoding

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

      1 call · #0103–#0103

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

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

      1 call · #0104–#0104

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

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

      2 calls · #0108–#0109

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

      Requested source searches related to source & workspace.

      1 call · #0111–#0111

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

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

      1 call · #0114–#0114

      grep -r -n <val> <path> <path>head -n <n>echo <val>grep -r -n <val> <path> <n> > <path>head
    34. Inspect · Batching & scheduling

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

      1 call · #0117–#0117

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

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

      1 call · #0119–#0119

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

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

      2 calls · #0122–#0123

      grep -r -n <val> <path>head -n <n>sed -n <val> <path>
    37. Inspect · Runtime processes

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

      1 call · #0124–#0124

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

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

      1 call · #0127–#0127

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

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

      2 calls · #0128–#0129

      ls <path> <n> > <path>grep -r -l -n <val> <path> <n> > <path>headgrep -n <val> <path>head -n <n>
    40. Inspect · Attention kernels

      Requested file and log inspection related to attention kernels.

      1 call · #0130–#0130

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

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

      2 calls · #0133–#0134

      sed -n <val> <path>grep -n <val> <path> <path> <n> > <path>head
    42. Inspect · Batching & scheduling

      Requested file and log inspection related to batching & scheduling.

      1 call · #0135–#0135

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

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

      1 call · #0136–#0136

      grep -n <val> <path>head -n <n>echo <val>sed -n <val> <path>
    44. Inspect · Batching & scheduling

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

      1 call · #0137–#0137

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

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

      1 call · #0139–#0139

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

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

      1 call · #0140–#0140

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

    Requested task coordination related to runtime processes.

    1 call · #0033–#0033

    Delegate <task>
    Subagent 2· GLM-5.3 · explore · 50 visible callsCompleted

    Delegated by Main agent at call #0033. Runs in the background. Observed activity +05:34–+08:09. Overlapping activity: Subagent 1, Main agent.

    1. Inspect · Runtime processes

      Requested workspace inspection related to runtime processes.

      1 call · #0034–#0034

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

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

      1 call · #0036–#0036

      grep -r -n <val> <path> --include <path> --include <path> --include <val> -l <args>head -n <n>
    3. Inspect · Runtime processes

      Requested file and log inspection related to runtime processes.

      2 calls · #0040–#0041

      Read <path>wc -l <path> <path> <path>
    4. Inspect · Runtime processes

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

      1 call · #0045–#0045

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

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

      1 call · #0047–#0047

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

      Requested file and log inspection related to runtime processes.

      2 calls · #0049–#0050

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

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

      2 calls · #0053–#0054

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

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

      2 calls · #0057–#0058

      sed -n <val> <path>grep -n <val> <path>grep -n <val>head -n <n>echo <val>
    9. Inspect · Runtime processes

      Requested file and log inspection related to runtime processes.

      2 calls · #0060–#0061

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

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

      1 call · #0063–#0063

      grep -r -n <path> <path>head -n <n>echo <val>grep -n <val> <path>
    11. Inspect · Latency & request handling

      Requested source searches and file and log inspection related to latency & request handling.

      1 call · #0064–#0064

      grep -r -n <val> <path> --include <path>head -n <n>
    12. Inspect · Runtime processes

      Requested file and log inspection related to runtime processes.

      1 call · #0066–#0066

      sed -n <val> <path>
    13. Inspect · Latency & request handling

      Requested source searches and file and log inspection related to latency & request handling.

      1 call · #0067–#0067

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

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

      1 call · #0070–#0070

      grep -r -n <val> <path> --include <path> -lhead -n <n>
    15. Inspect · Latency & request handling

      Requested file and log inspection and source searches related to latency & request handling.

      2 calls · #0071–#0072

      sed -n <val> <path>grep -n <val> <path> <n> > <path>head -n <n>echo <val>grep -n <val> <path>
    16. Inspect · Latency & request handling

      Requested source searches and file and log inspection related to latency & request handling.

      1 call · #0074–#0074

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

      Requested file and log inspection related to source & workspace.

      1 call · #0076–#0076

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

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

      1 call · #0077–#0077

      grep -r -n <val> <path> --include <path> -lhead -n <n>echo <val>grep -r -n <val> <path> --include <path>grep -v <val>
    19. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      1 call · #0080–#0080

      Read <path>
    20. Execute · Runtime processes

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

      1 call · #0081–#0081

      ls <path>echo <val>head -n <n>grep -r -n <val> <path> <n> > <path>
    21. Inspect · Runtime processes

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

      1 call · #0084–#0084

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

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

      1 call · #0085–#0085

      grep -r -n <val> <path>headecho <val>grep -n <val> <flag> <args>head -n <n>
    23. Inspect · Runtime processes

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

      2 calls · #0086–#0087

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

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

      1 call · #0088–#0088

      grep -r -n <val> <path> --include <path>head -n <n>
    25. Inspect · Runtime processes

      Requested file and log inspection related to runtime processes.

      1 call · #0089–#0089

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

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

      1 call · #0090–#0090

      grep -r -n <val> <path> --include <path>head -n <n>
    27. Inspect · Parallelism & communication

      Requested file and log inspection related to parallelism & communication.

      1 call · #0091–#0091

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

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

      2 calls · #0092–#0093

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

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

      1 call · #0095–#0095

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

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

      1 call · #0097–#0097

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

      Requested file and log inspection related to runtime processes.

      1 call · #0101–#0101

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

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

      2 calls · #0106–#0107

      grep -n <val> <path>head -n <n>echo <path>sed -n <val> <path>grep -r -n <val> <path>
    33. Inspect · Runtime processes

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

      1 call · #0112–#0112

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

      Requested file and log inspection related to source & workspace.

      1 call · #0113–#0113

      sed -n <val> <path>
    35. Inspect · Latency & request handling

      Requested source searches and file and log inspection related to latency & request handling.

      1 call · #0115–#0115

      grep -r -n <val> <path> --include <path>head -n <n>echo <val>sed -n <val> <path>
    36. Inspect · Runtime processes

      Requested file and log inspection related to runtime processes.

      1 call · #0116–#0116

      sed -n <val> <path>
    37. Inspect · Latency & request handling

      Requested file and log inspection related to latency & request handling.

      1 call · #0118–#0118

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

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

      1 call · #0121–#0121

      grep -r -n <val> -A <n> <path>sed -n <val>
    39. Inspect · Runtime processes

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

      2 calls · #0125–#0126

      sed -n <val> <path>echo <val>grep -n <val> <flag> <args>head -n <n>grep -r -n <val> -A <n> <path>grep -n <val> -A <n> <path>
    40. Inspect · Runtime processes

      Requested source searches related to runtime processes.

      1 call · #0131–#0131

      grep -n <val> <path>echo <flag>
  21. Inspect · Benchmark & validation setup

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

    1 call · #0037–#0037

    grep -c <path> <path>tail -c <n> <path>tr -d <val>
  22. Inspect · Runtime processes

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

    1 call · #0043–#0043

    grep -r -n <val> <path> <path> <path> <n> > <path>head -n <n>
  23. Inspect · KV-cache management

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

    1 call · #0048–#0048

    sed -n <val> <path>echo <val>
  24. Validate · Benchmark & validation setup

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

    1 call · #0065–#0065

    sleep <n>tail -c <n> <path>tr -d <val>echocat <path>
  25. Inspect · Runtime processes

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

    1 call · #0098–#0098

    cat <path> <n> > <path>head -n <n>ls <path> <n> > <path>echo <val>
  26. Execute · Benchmark & validation setup

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

    1 call · #0100–#0100

    echo <val><command> <args>bash <script> > <path> <n> >& <path>echo <val> >> <path>
  27. Inspect · Runtime processes

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

    1 call · #0102–#0102

    cat <path>echo <val>ls <path>head -n <n>
  28. Inspect · Runtime processes

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

    1 call · #0105–#0105

    grep -n <val> <path>tail -n <n>echo <val>
  29. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0110–#0110

    sed -n <val> <path>
  30. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0120–#0120

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

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

    1 call · #0132–#0132

    tail -c <n> <path> <n> > <path>tr -d <val>tail -n <n>echols <path>
  32. Edit · Runtime processes

    Requested code edits related to runtime processes.

    1 call · #0138–#0138

    Write <path>
  33. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0141–#0141

    Write <path>
  34. Execute · Benchmark & validation setup

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

    1 call · #0142–#0142

    tail -n <n> <path> <n> > <path>ls <path>head -n <n>
  35. Inspect · Device memory

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

    1 call · #0143–#0143

    grep -a <val> <path>tail -n <n>
  36. Inspect · Benchmark & validation setup

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

    2 calls · #0144–#0145

    tr -d <val> < <path>grep -a <val>tail -n <n>
  37. Inspect · Batching & scheduling

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

    1 call · #0146–#0146

    tr -d <val> < <path>grep -a <val>tail -n <n>
  38. Inspect · Benchmark & validation setup

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

    2 calls · #0147–#0148

    tr -d <val> < <path>grep <flag> <args>tail -n <n>echo <flag>tail -n <n> <path>grep -a <val>
  39. Execute · Benchmark & validation setup

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

    1 call · #0149–#0149

    tr -d <val> < <path>grep <flag> <args>tail -n <n>echo <val>tail -n <n> <path> <n> > <path>cut <flag>
  40. Inspect · Source & workspace

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

    2 calls · #0150–#0151

    grep -r -n <val> <path> <path> <n> > <path>head -n <n>echo <val>grep -r -n <val> <path>headgrep -r -n <val> <path> --include <path>
  41. Inspect · Dependencies & build setup

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

    1 call · #0152–#0152

    sed -n <val> <path>
  42. Execute · Benchmark & validation setup

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

    1 call · #0153–#0153

    tr -d <val> < <path>grep -a <val>tail -n <n>date -u
  43. Edit · Source & workspace

    Requested code edits related to source & workspace.

    4 calls · #0154–#0157

    Write <path>Edit <path>
  44. Execute · Benchmark & validation setup

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

    2 calls · #0158–#0159

    tr -d <val> < <path>grep -a <val>tail -n <n>date -u <val>sleep <n>
  45. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0160–#0160

    sed -n <val> <path> <n> > <path>echo <val>
  46. Inspect · Batching & scheduling

    Requested file and log inspection related to batching & scheduling.

    1 call · #0161–#0161

    sed -n <val> <path>echo <val>
  47. Execute · Benchmark & validation setup

    1 tool error

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

    1 call · #0162–#0162

    sleep <n>tr -d <val> < <path>grep -a <val>tail -n <n>date -u <val>tail -n <n> <path>
    1 more command sketches
    cut <flag>
  48. Profile · Runtime processes

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

    1 call · #0163–#0163

    env <vars> python3 -c <script> <n> >& <path>tail -n <n>
  49. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0164–#0164

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

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

    1 call · #0165–#0165

    tail -n <n> <path>cut <flag>tr -d <val> < <path>grep -a <val>tail -n <n>date -u <val>
  51. Inspect · Source & workspace

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

    2 calls · #0166–#0167

    grep -r -n <val> <path> --include <path>headsed -n <val> <path>
  52. Execute · Benchmark & validation setup

    1 tool error

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

    3 calls · #0168–#0170

    date -u <val>tr -d <val> < <path>grep -a <val>tail -n <n>ls -l -a <path> <n> > <path>sleep <n>
  53. Execute · Latency & request handling

    Requested script or workload execution related to latency & request handling.

    1 call · #0171–#0171

    python3 -c <script>
  54. Inspect · Runtime processes

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

    1 call · #0172–#0172

    cd <path>timeout <n> <val> <path> <val> <val> <flag> <args>tail -n <n>
  55. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0173–#0173

    Stop task <task>
  56. Other · Runtime processes

    Requested script or workload execution related to runtime processes.

    1 call · #0174–#0174

    cd <path>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  57. Execute · Runtime processes

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

    1 call · #0175–#0175

    sleep <n>tail -c <n> <path> <n> > <path>tr -d <val>grep -a <val>tail -n <n>echo <flag>
    2 more command sketches
    tail -n <n> <path> <n> > <path>cut <flag>
  58. Inspect · Runtime processes

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

    1 call · #0176–#0176

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

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

    2 calls · #0177–#0178

    grep -n <val> <path>headgrep -n <val> -A <n> <path>grep -n <val>head -n <n>sed -n <val> <path>
  60. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0179–#0180

    Edit <path>
  61. Other · Runtime processes

    Requested script or workload execution related to runtime processes.

    1 call · #0181–#0181

    cd <path>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  62. Execute · Runtime processes

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

    3 calls · #0182–#0184

    sleep <n>tail -c <n> <path> <n> > <path>tr -d <val>grep -a <val>tail -n <n>date -u <val>
    2 more command sketches
    tr -d <val> < <path>cat <path> <n> > <path>
  63. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0185–#0185

    Edit <path>
  64. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0186–#0186

    cd <path>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  65. Execute · Runtime processes

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

    1 call · #0187–#0187

    sleep <n>tr -d <val> < <path>grep -a <val>tail -n <n>date -u <val>
  66. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0188–#0188

    cat <path>tail -n <n>
  67. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0189–#0189

    Edit <path>
  68. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0190–#0190

    cd <path>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  69. Execute · Runtime processes

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

    2 calls · #0191–#0192

    sleep <n>tr -d <val> < <path>grep -a <val>tail -n <n>date -u <val>cat <path>
    2 more command sketches
    grep <flag> <args>head -n <n>
  70. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0193–#0193

    cd <path>python3 -c <script>echo <val>
  71. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0194–#0194

    Write <path>
  72. Inspect · Benchmark & validation setup

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

    1 call · #0195–#0195

    cd <path>python3 <script> <n> >& <path>tail -n <n>
  73. Execute · Device memory

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

    1 call · #0196–#0196

    cd <path>python3 <script> <val> <val>sleep <n>npu-smi infogrep <flag> <args>head -n <n>
    1 more command sketches
    echo <val>
  74. Profile · Batching & scheduling

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

    1 call · #0197–#0197

    python3 - <script>grep -n <val> <path>
  75. Other · Runtime processes

    Requested script or workload execution related to runtime processes.

    1 call · #0198–#0198

    cd <path>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  76. Execute · Runtime processes

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

    2 calls · #0199–#0200

    sleep <n>tr -d <val> < <path> <n> > <path>grep -a <val>tail -n <n>date -u <val>tail -n <n> <path> <n> > <path>
  77. Inspect · Benchmark & validation setup

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

    1 call · #0201–#0201

    sleep <n>cd <path>python3 <script> <n> >& <path>tail -n <n>date -u <val>
  78. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0202–#0202

    cd <path>python3 -c <script>
  79. Profile · Device memory

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

    1 call · #0203–#0203

    cd <path>python3 <script> <val> <val> > <path> <n> >& <path>python3 - <script>grep -c <val> <path>sleep <n>npu-smi info
    1 more command sketches
    grep <val>
  80. Other · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0204–#0204

    cd <path>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  81. Inspect · Attention kernels

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

    3 calls · #0205–#0207

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

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

    2 calls · #0208–#0209

    sleep <n>tr -d <val> < <path> <n> > <path>grep -a <val>tail -n <n>tail -n <n> <path> <n> > <path>date -u <val>
  83. Other · Batching & scheduling

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

    2 calls · #0210–#0211

    python3 -c <script>cd <path>python3 <script> <val> <val> > <path> <n> >& <path>sleep <n>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  84. Inspect · Runtime processes

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

    2 calls · #0212–#0213

    python3 -c <script> <n> > <path>grep -r -n <val> <path>head -n <n>sed -n <val> <path>echo <val>
  85. Other · Source & workspace

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

    1 call · #0214–#0214

    sleep <n>python3 -c <script>date -u <val>
  86. Execute · Runtime processes

    1 tool error

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

    4 calls · #0215–#0218

    sleep <n>tr -d <val> < <path> <n> > <path>grep -a <val>tail -n <n>tail -n <n> <path>date -u <val>
    3 more command sketches
    cd <path>python3 -c <script>tr -d <val> < <path>
  87. Inspect · Benchmark & validation setup

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

    1 call · #0219–#0219

    cd <path>python3 <script> <n> >& <path>tail -n <n>
  88. Profile · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0220–#0220

    cd <path>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  89. Execute · Runtime processes

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

    1 call · #0221–#0221

    sleep <n>tr -d <val> < <path>grep -a <val>tail -n <n>date -u <val>
  90. Inspect · Source & workspace

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

    1 call · #0222–#0222

    sleep <n>tail -n <n> <path> <n> > <path>grep -E <val>date -u <val>
  91. Other · Source & workspace

    1 tool error

    Requested script or workload execution related to source & workspace.

    2 calls · #0223–#0224

    cd <path>python3 -c <script>
  92. Other · Runtime processes

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

    1 call · #0225–#0225

    cd <path>python3 <script> <val> <val> > <path> <n> >& <path>sleep <n>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  93. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0226–#0226

    Read <path>
  94. Execute · Runtime processes

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

    2 calls · #0227–#0228

    sleep <n>tr -d <val> < <path> <n> > <path>grep -a <val>tail -n <n>date -u <val>tail -n <n> <path>
  95. Inspect · Source & workspace

    1 tool error

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

    1 call · #0229–#0229

    sleep <n>tail -n <n> <path>cut <flag>date -u <val>
  96. Execute · Runtime processes

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

    1 call · #0230–#0230

    sleep <n>ls <path>date -u <val>tr -d <val> < <path>grep -a <val>tail -n <n>
  97. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0231–#0231

    cd <path>python3 -c <script>
  98. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0232–#0232

    Edit <path>
  99. Other · Batching & scheduling

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

    1 call · #0233–#0233

    cd <path>python3 <script> <val> <val> > <path> <n> >& <path>sleep <n>python3 <script> <val> <val> <flag> <args>echo <val> >> <path>
  100. Execute · Runtime processes

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

    3 calls · #0234–#0236

    sleep <n>tr -d <val> < <path> <n> > <path>grep -a <val>tail -n <n>date -u <val>ls <path>
    2 more command sketches
    tr <val> <val>tr -d <val> < <path>
  101. Inspect · Source & workspace

    Requested execution waits and workspace inspection related to source & workspace.

    1 call · #0237–#0237

    sleep <n>ls <path>tr <val> <val>date -u <val>
  102. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0238–#0238

    cd <path>python3 -c <script>
  103. Inspect · Device memory

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

    1 call · #0239–#0239

    cd <path>python3 <script> <val> <val> > <path> <n> >& <path>sleep <n>npu-smi infogrep -E <val>git -C <path> <val> <flag>
    2 more command sketches
    echo <flag>git -C <path> <val> --stat
  104. Validate · Benchmark & validation setup

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

    2 calls · #0240–#0241

    bash <script> <n> >& <path>tail -n <n>
  105. Inspect · Source & workspace

    1 tool error

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

    2 calls · #0242–#0243

    ls -l -a <path> <val> <flag><command> <args>ls -a <val>head -n <n>rm -rf <path> <path> <path> <val> -la <path> <val> <flag>ls <path> <n> >& <path>
  106. Validate · Benchmark & validation setup

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

    2 calls · #0244–#0245

    bash <script> <n> >& <path>tail -n <n>env <vars>rm -f <path> <path> <path>rm -rf <path> <path> <path>rm -f <path>
    3 more command sketches
    ls <val>echo <flag>ls -a <val>
  107. Other · Runtime processes

    Requested script or workload execution related to runtime processes.

    1 call · #0246–#0246

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

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

    1 call · #0247–#0247

    bash <script> > <path> <n> >& <path>echo <val> >> <path>
  109. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0248–#0248

    Read <path>
  110. Execute · Benchmark & validation setup

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

    4 calls · #0249–#0252

    sleep <n>tr -d <val> < <path> <n> > <path>grep -a <val>tail -n <n>date -u <val>ls -l -a <path> <n> > <path>
    2 more command sketches
    tail -n <n> <path>cut <flag>
  111. Execute · Latency & request handling

    Requested script or workload execution related to latency & request handling.

    1 call · #0253–#0253

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

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

    1 call · #0254–#0254

    <command> <args>grep -r -n <val> <path> <path> <n> > <path>head -n <n>
  113. Inspect · Runtime processes

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

    1 call · #0255–#0255

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

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

    1 call · #0256–#0256

    grep -r -n <val> <path> --include <path>head -n <n>echo <val>grep -r -n <val> <path> <path> <n> > <path>head
  115. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0257–#0257

    Edit <path>
  116. Profile · Batching & scheduling

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

    1 call · #0258–#0258

    python3 -c <script> <n> >& <path>grep -v <val>
  117. Validate · Benchmark & validation setup

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

    1 call · #0259–#0259

    env <vars>rm -f <path> <path>rm -rf <path> <path> <path>rm -f <path>cp <path> <path>echo <val>
    1 more command sketches
    ls <val> -a
  118. Execute · Benchmark & validation setup

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

    2 calls · #0260–#0261

    bash <script> > <path> <n> >& <path>echo <val> >> <path>tr -d <val> < <path> > <path> <n> >& <path>echo <val>tr -d <val> < <path> <n> > <path>grep -a <val>
    2 more command sketches
    tail -n <n>ls <path>
  119. Inspect · Source & workspace

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

    1 call · #0262–#0262

    git -C <path> <val> <flag>echo <flag>find <path> -type <val>sortgit -C <path> <val> <flag> <args>head
  120. Execute · Benchmark & validation setup

    3 tool errors

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

    8 calls · #0263–#0270

    sleep <n>tail -n <n> <path>cut <flag>date -u <val>ls <path>tr -d <val> < <path>
    4 more command sketches
    grep -a <val>tail -n <n>python3 -c <script> <n> >& <path>python3 -c <script>
  121. Inspect · Device memory

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

    1 call · #0271–#0271

    bash <script> <n> >& <path>tail -n <n>echo <val>npu-smi infogrep -E <path>
  122. Inspect · Runtime processes

    Requested runtime inspection, file and log inspection and repository inspection related to runtime processes.

    1 call · #0272–#0272

    pgrep <flag> <args>head -n <n>echo <flag>git -C <path> <val> <flag>
  123. Validate · Benchmark & validation setup

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

    1 call · #0273–#0273

    env <vars>cp <path> <path>rm -f <path>rm -rf <path> <path>bash <script> > <path> <n> >& <path>echo <val> >> <path>
    1 more command sketches
    tail -n <n> <path>
  124. Other · Device memory

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

    1 call · #0274–#0274

    bash <script> <n> >& <path>python3 -c <script>npu-smi infogrep -c <val>git -C <path> <val> <flag>wc -l <path>

03 / CANDIDATE ARTIFACT

Text patches & binary names

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

sglang · 2 changed files

Base commit: 340db9201005fc64635bb25db1d2538f955761c3

diff --git a/python/sglang/srt/deployment/__init__.py b/python/sglang/srt/deployment/__init__.pynew file mode 100644index 0000000000000000000000000000000000000000..1b1eb1f0cb15664b0d89d4e68f2ba93dee8453cf--- /dev/null+++ b/python/sglang/srt/deployment/__init__.py@@ -0,0 +1,6 @@+"""Framework-owned deployment entrypoints.++Modules in this package are launched directly by the host deployment contract+(``python -m sglang.srt.deployment.<model>``).  They own the internal process+graph, parallel layout and server configuration of the service they start.+"""diff --git a/python/sglang/srt/deployment/qwen3_14b.py b/python/sglang/srt/deployment/qwen3_14b.pynew file mode 100644index 0000000000000000000000000000000000000000..18534393a3fda46ef050645896532fbab14ee3b0--- /dev/null+++ b/python/sglang/srt/deployment/qwen3_14b.py@@ -0,0 +1,186 @@+"""Framework deployment entrypoint for the Qwen3-14B two-device Ascend 910B service.++The host contract starts this module as::++    python -m sglang.srt.deployment.qwen3_14b \\+        --model-path <path> --tokenizer-path <path> --served-model-name <id> \\+        --host 127.0.0.1 --port <port> --device-ids 0,1 --runtime-dir <dir>++The host fixes only the public surface (model identity, host/port, visible+devices, BF16 precision and the deterministic request contract).  Everything+else -- parallel layout, process count, memory pool sizing, scheduling and+graph execution -- is chosen here.++Plan choices and the measurements behind them are documented on ``PLAN``.+"""++from __future__ import annotations++import argparse+import os+import sys+from typing import Any++# ---------------------------------------------------------------------------+# Runtime environment+#+# These must be exported before torch_npu / HCCL are initialised anywhere in+# the process tree that this module spawns.+# ---------------------------------------------------------------------------+RUNTIME_ENVIRONMENT: dict[str, str] = {+    # Vector-core expansion for HCCL collectives: faster all-reduce on 910B for+    # the small decode messages this service emits.+    "HCCL_OP_EXPANSION_MODE": "AIV",+    # HCCL send/recv buffer in MB.  200 MB is ample for a TP=2 rank pair.+    "HCCL_BUFFSIZE": "200",+    # Let the scheduler plan the next batch on a side stream while the model+    # worker executes the current one.+    "SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",+    # Avoid fragmentation from the many differently sized KV pools.+    "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",+}++# ---------------------------------------------------------------------------+# Deployment plan+#+# Measured on the two public profiles (mixed 2048/64 + 128/512, balanced+# 512/256, both at 32-way client concurrency) against the host reference:+# request throughput 0.90 / 1.37 req/s -> 1.92 / 4.41 req/s.+# ---------------------------------------------------------------------------+PLAN: dict[str, Any] = {+    # Two visible 910B devices, model parallel over tensor (weight-sharded).+    # Qwen3-14B in BF16 is 13.8 GB per rank under TP=2, which keeps every+    # decode step a single 13.8 GB weight sweep per device; data-parallel+    # replication would double that sweep per token and lose.+    "tp_size": 2,+    "dp_size": 1,+    "pp_size": 1,+    # Fixed by the public contract.+    "context_length": 4096,+    "random_seed": 20260819,+    "dtype": "bfloat16",+    # The workload is a closed 32-way concurrent client, so the queue never+    # has spare work to reorder -- fcfs is cheapest and keeps the arrival+    # order deterministic.+    "schedule_policy": "fcfs",+    # Token budget for the KV pool.  A running request reserves+    # ceil_page(input) + max_new_tokens + page, so 32 in-flight 2048-in/64-out+    # requests need ~71k tokens.  The reference cap of 32768 admitted only+    # ~14 of the 32 client slots and starved the decode batch; 131072 covers+    # 32 full-context requests and costs 10 GB/rank of the ~44 GB that is left+    # once the weights are resident.+    "max_total_tokens": 131072,+    "max_running_requests": 32,+    "mem_fraction_static": 0.80,+    # Prefill is GEMM-bound, so wider chunks buy matrix efficiency: 16384+    # beat 8192 by 15% on the mixed profile and matched it on balanced, while+    # 32768 regressed both (decode stalls for the whole, longer chunk).+    "chunked_prefill_size": 16384,+    "max_prefill_tokens": 32768,+    # Prompts are unique per request, so a radix tree only costs lookups.+    "disable_radix_cache": True,+    # Decode runs as a captured NPU graph.  Eager, a decode step cost ~90 ms+    # whether the batch was 4 or 32 requests -- dominated by the ~400 ACL+    # launches and 80 HCCL all-reduces per step, not by weight traffic.+    # Replaying a captured graph brings a batch-32 step to ~22 ms (~4x).+    # Capturing ten buckets costs 52 s of startup and 0.9 GB/rank.+    "cuda_graph_backend_decode": "full",+    "cuda_graph_max_bs_decode": 32,+    "cuda_graph_bs_decode": [1, 2, 4, 8, 12, 16, 20, 24, 28, 32],+    # Prefill stays eager: its shapes are chunk-driven and vary widely, and+    # merging decode tokens into prefill chunks (--enable-mixed-chunk) costs+    # 23% overall because those tokens then leave the captured decode graph.+    "cuda_graph_backend_prefill": "disabled",+}+++def _build_server_argv(args: argparse.Namespace, overrides: list[str]) -> list[str]:+    """Translate the host contract plus this plan into server CLI arguments.++    ``overrides`` are ``--plan-key=value`` pairs limited to keys of ``PLAN``.+    They exist so a plan entry can be A/B'd without editing this file; the+    host passes none of them.+    """+    plan = dict(PLAN)+    for item in overrides:+        key, sep, value = item.partition("=")+        key = key.lstrip("-").replace("-", "_")+        if not sep:+            raise SystemExit(f"override {item!r} must look like --key=value")+        if key not in plan:+            raise SystemExit(f"unknown plan key {key!r}")+        current = plan[key]+        if isinstance(current, bool):+            value = value.lower() in ("1", "true", "yes", "on")+        elif isinstance(current, list):+            value = [int(part) for part in value.replace(",", " ").split()]+        elif isinstance(current, int):+            value = int(value)+        elif isinstance(current, float):+            value = float(value)+        plan[key] = value++    argv = [+        "--model-path", args.model_path,+        "--tokenizer-path", args.tokenizer_path,+        "--served-model-name", args.served_model_name,+        "--host", args.host,+        "--port", str(args.port),+        "--device", "npu",+        "--attention-backend", "ascend",+    ]+    for name, value in plan.items():+        option = "--" + name.replace("_", "-")+        if isinstance(value, bool):+            # Only the enabling form is emitted: a False plan entry simply+            # leaves the server argument at its own default.+            if value:+                argv.append(option)+        elif isinstance(value, list):+            # List-typed server arguments are declared with nargs="+".+            argv += [option, *[str(item) for item in value]]+        else:+            argv += [option, str(value)]+    return argv+++def _parse_host_args(argv: list[str]) -> tuple[argparse.Namespace, list[str]]:+    """Read the fixed host ABI; anything else is a plan override."""+    parser = argparse.ArgumentParser(prog="qwen3_14b")+    parser.add_argument("--model-path", required=True)+    parser.add_argument("--tokenizer-path", required=True)+    parser.add_argument("--served-model-name", required=True)+    parser.add_argument("--host", default="127.0.0.1")+    parser.add_argument("--port", type=int, required=True)+    parser.add_argument("--device-ids", default="")+    parser.add_argument("--runtime-dir", default=None)+    args, overrides = parser.parse_known_args(argv)+    if args.device_ids:+        # Honour the host's device projection even if the surrounding+        # environment did not already narrow the visibility set.+        os.environ.setdefault("ASCEND_RT_VISIBLE_DEVICES", args.device_ids)+    return args, overrides+++def main(argv: list[str] | None = None) -> int:+    for name, value in RUNTIME_ENVIRONMENT.items():+        os.environ[name] = value++    args, overrides = _parse_host_args(sys.argv[1:] if argv is None else argv)+    from sglang.srt.server_args import prepare_server_args+    from sglang.srt.utils import kill_process_tree+    from sglang.srt.utils.common import suppress_noisy_warnings++    suppress_noisy_warnings()+    server_args = prepare_server_args(_build_server_argv(args, overrides))+    from sglang.srt.entrypoints.http_server import launch_server++    try:+        launch_server(server_args)+    finally:+        kill_process_tree(os.getpid(), include_parent=False)+    return 0+++if __name__ == "__main__":+    raise SystemExit(main())