Kimi K3 · Serving

S10 · SGLang 14B

Valid

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

2.59×PERFORMANCE RATIO
106TOOL 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 agentKimi K3 · 106 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
67Inspect
7Edit
4Validate
21Execute
1Profile
6Other

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 timeline70 groups · 106 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 <val> <n> > <path>
  2. Inspect · Task requirements

    Requested file and log inspection, environment setup or inspection and workspace inspection related to task requirements.

    3 calls · #0002–#0004

    Read <path>env <vars>ls -R <path> <path> <path> <path> <path> <n> > <path>
  3. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    4 calls · #0005–#0008

    Read <path>
  4. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0009–#0009

    Read <path>
  5. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    3 calls · #0010–#0012

    Read <path>
  6. Inspect · Batching & scheduling

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

    1 call · #0013–#0013

    env <vars>head -c <n> <path>echoecho <flag>cat <path> <path> <path> <path> <path>
  7. Validate · Benchmark & validation setup

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

    1 call · #0014–#0014

    env <vars><command> <args>cat <path>
  8. Inspect · Source & workspace

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

    2 calls · #0015–#0016

    ls <path> <n> > <path>echo <flag>ls <path>head -n <n>Read <path>
  9. Execute · Device memory

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

    1 call · #0017–#0017

    envgrep -E <val>sortecho <flag>npu-smi info <n> > <path>head -n <n>
    1 more command sketches
    cat <path>
  10. Inspect · Source & workspace

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

    3 calls · #0018–#0020

    Read <path>cat <path>cd <path>git log --oneline <flag> <args>headgit status --short <n> > <path>
    2 more command sketches
    head -n <n>python3 -c <script> <n> > <path>
  11. Validate · Benchmark & validation setup

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

    1 call · #0021–#0021

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

    Requested file and log inspection related to source & workspace.

    1 call · #0022–#0022

    cat <path>
  13. Inspect · Runtime processes

    Requested source searches related to runtime processes.

    1 call · #0023–#0023

    Search <pattern> <path>
  14. Inspect · Attention kernels

    Requested workspace inspection and source searches related to attention kernels.

    1 call · #0024–#0024

    ls <path> <n> > <path>ls <path>grep -i -E <val>
  15. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0025–#0025

    ls <path>
  16. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0026–#0026

    Read <path>
  17. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0027–#0027

    Read <path>
  18. Inspect · Attention kernels

    Requested workspace inspection related to attention kernels.

    1 call · #0028–#0028

    ls <path> <path>
  19. Inspect · Runtime processes

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

    2 calls · #0029–#0030

    Search <pattern> <path>Read <path>
  20. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    2 calls · #0031–#0032

    Search <pattern> <path>
  21. Inspect · Dependencies & build setup

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

    1 call · #0033–#0033

    Read <path>
  22. Inspect · Batching & scheduling

    Requested source searches related to batching & scheduling.

    1 call · #0034–#0034

    Search <pattern> <path>
  23. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    3 calls · #0035–#0037

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

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

    1 call · #0038–#0038

    cd <path>bash <script> > <path> <n> >& <path>
  25. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0039–#0039

    Read <path>
  26. Inspect · Attention kernels

    Requested source searches related to attention kernels.

    1 call · #0040–#0040

    Search <pattern> <path>
  27. Inspect · Runtime processes

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

    2 calls · #0041–#0042

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

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

    2 calls · #0043–#0044

    Search <pattern> <path>Read <path>
  29. Inspect · Batching & scheduling

    Requested source searches related to batching & scheduling.

    2 calls · #0045–#0046

    Search <pattern> <path>
  30. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0047–#0047

    Read <path>
  31. Inspect · Runtime processes

    Requested source searches related to runtime processes.

    1 call · #0048–#0048

    Search <pattern> <path>
  32. Inspect · Batching & scheduling

    Requested source searches related to batching & scheduling.

    1 call · #0049–#0049

    Search <pattern> <path>
  33. Inspect · Attention kernels

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

    3 calls · #0050–#0052

    Search <pattern> <path>Read <path>
  34. Inspect · Runtime processes

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

    1 call · #0053–#0053

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

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

    1 call · #0054–#0054

    cd <path>grep -n <val> <path>head -n <n>
  36. Execute · Benchmark & validation setup

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

    1 call · #0055–#0055

    cd <path>grep -n <val> -A <n> <path>head -n <n>tail -n <n> <path> <n> > <path>
  37. Inspect · Runtime processes

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

    3 calls · #0056–#0058

    cd <path>grep -n <val> <path>headgrep -r -n <val> <path> <n> > <path>grep -i <val>Read <path>
    1 more command sketches
    Search <pattern> <path>
  38. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0059–#0060

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

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

    1 call · #0061–#0061

    bash <script> <n> >& <path>python3 -c <script>tail -n <n> <path>
  40. Inspect · Batching & scheduling

    Requested source searches related to batching & scheduling.

    1 call · #0062–#0062

    Search <pattern> <path>
  41. Inspect · Source & workspace

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

    1 call · #0063–#0063

    cd <path>grep -r -n <val> <path>grep -v <path>head
  42. Profile · Prefix caching

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

    1 call · #0064–#0064

    cd <path>env <vars> timeout <n> <val> -c <path> <n> >& <path>tail -n <n>
  43. Execute · Benchmark & validation setup

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

    1 call · #0065–#0065

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

    Requested file and log inspection related to runtime processes.

    1 call · #0066–#0066

    Read <path>
  45. Other · Source & workspace

    Requested execution waits related to source & workspace.

    1 call · #0067–#0067

    Wait for <task>
  46. Execute · Benchmark & validation setup

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

    4 calls · #0068–#0071

    python3 -c <script>cd <path>bash <script> > <path> <n> >& <path>sleep <n>tail -c <n> <path>ls -l -a <flag> <args>
    4 more command sketches
    grep -E <val>echo <val>tail -c <n> <val> <n> > <path>python3 -c <script> <n> > <path>
  47. Validate · Benchmark & validation setup

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

    1 call · #0072–#0072

    rm -rf <path> <path> <path> <path> <path>ls <val> <val>
  48. Execute · Benchmark & validation setup

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

    2 calls · #0073–#0074

    cd <path>bash <script> > <path> <n> >& <path>sleep <n>grep -a -E <val> <path>tail -n <n>
  49. Other · Source & workspace

    Requested execution waits related to source & workspace.

    1 call · #0075–#0075

    Wait for <task>
  50. Execute · Benchmark & validation setup

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

    1 call · #0076–#0076

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

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

    6 calls · #0077–#0082

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

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

    1 call · #0083–#0083

    env <vars>grep -a <val> <val>head -n <n>echo <val>grep <val>awk <val>
  53. Edit · Source & workspace

    Requested code edits related to source & workspace.

    3 calls · #0084–#0086

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

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

    2 calls · #0087–#0088

    rm -rf <path> <path>cd <path>env <vars> bash <script> > <path> <n> >& <path>sleep <n>grep -a -E <val> <path>tail -n <n>
    1 more command sketches
    tail -c <n> <path>
  55. Other · Source & workspace

    Requested execution waits related to source & workspace.

    1 call · #0089–#0089

    Wait for <task>
  56. Execute · Benchmark & validation setup

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

    1 call · #0090–#0090

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

    Requested file and log inspection related to source & workspace.

    1 call · #0091–#0091

    Read <path>
  58. Validate · Benchmark & validation setup

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

    1 call · #0092–#0092

    rm -rf <path> <path> <path> <path>cd <path>bash <script> > <path> <n> >& <path>echo <val>cat <path>
  59. Other · Source & workspace

    Requested execution waits related to source & workspace.

    1 call · #0093–#0093

    Wait for <task>
  60. Inspect · Attention kernels

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

    2 calls · #0094–#0095

    cd <path>grep -n <val> <path>headgrep -r -n <val> <path>head -n <n>Read <path>
  61. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0096–#0096

    cd <path>sed -n <val> <path>
  62. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0097–#0097

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

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

    2 calls · #0098–#0099

    rm -rf <path> <path> <path>cd <path>bash <script> > <path> <n> >& <path>sleep <n>grep -a -E <val> <path>tail -n <n>
    1 more command sketches
    tail -c <n> <path>
  64. Other · Source & workspace

    Requested execution waits related to source & workspace.

    1 call · #0100–#0100

    Wait for <task>
  65. Execute · Benchmark & validation setup

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

    1 call · #0101–#0101

    python3 -c <script>
  66. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0102–#0102

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

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

    1 call · #0103–#0103

    cd <path>git diff --statgit status --shortrm -rf <path> <path>bash <script> > <path> <n> >& <path>
  68. Inspect · Source & workspace

    Requested repository inspection related to source & workspace.

    1 call · #0104–#0104

    cd <path>git status --shortgit diff --stat
  69. Other · Source & workspace

    Requested execution waits related to source & workspace.

    1 call · #0105–#0105

    Wait for <task>
  70. Execute · Benchmark & validation setup

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

    1 call · #0106–#0106

    python3 -c <script>bash <script> > <path> <n> >& <path>echo <val>

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..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391diff --git a/python/sglang/srt/deployment/qwen3_14b.py b/python/sglang/srt/deployment/qwen3_14b.pynew file mode 100644index 0000000000000000000000000000000000000000..fefa3feb3cb59484f2ff3a47fecd5a513afca635--- /dev/null+++ b/python/sglang/srt/deployment/qwen3_14b.py@@ -0,0 +1,127 @@+"""Deployment entrypoint for the two-device Qwen3-14B serving task.++Launched by the task harness as:++    python -B -m sglang.srt.deployment.qwen3_14b \+        --model-path <path> --tokenizer-path <path> \+        --served-model-name Qwen/Qwen3-14B \+        --host 127.0.0.1 --port <port> \+        --device-ids 0,1 --runtime-dir <dir>++The module owns the internal execution plan: it serves one SGLang HTTP+server on the public port with TP=2 across the two assigned Ascend 910B+devices, keeping the public workload, precision (BF16), greedy sampling,+and service contract unchanged. Relative to the host reference plan it+enables NPU decode graphs (Ascend ACL graph capture) and sizes the KV+pool from memory instead of a fixed 32k tokens, which removes the+dominant eager-launch and queueing overheads for this workload.+"""++from __future__ import annotations++import argparse+import os+import sys++# Decode batch sizes captured as NPU graphs. Concurrency is 32, so capture+# every other batch size up to 32 to bound padding waste and capture time.+_DECODE_GRAPH_BS = [1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32]+++def _apply_runtime_env() -> None:+    """Match the known-good Ascend runtime environment for this stack."""+    os.environ.setdefault("HCCL_OP_EXPANSION_MODE", "AIV")+    os.environ.setdefault("HCCL_BUFFSIZE", "200")+    os.environ.setdefault("SGLANG_ENABLE_OVERLAP_PLAN_STREAM", "1")+    os.environ.setdefault("PYTORCH_NPU_ALLOC_CONF", "expandable_segments:True")+++# Parallel layout across the two assigned devices:+#   "tp2": one engine, tensor-parallel 2 (pools the whole batch on both devices)+#   "dp2": two independent single-device replicas behind the DP controller+# Env override exists for development experiments; the default is the+# deployment plan used when the harness runs without extra environment.+_LAYOUT = os.environ.get("QWEN3_14B_LAYOUT", "tp2")+++def _parse_args(argv: list[str]) -> argparse.Namespace:+    parser = argparse.ArgumentParser(prog="sglang.srt.deployment.qwen3_14b")+    parser.add_argument("--model-path", required=True)+    parser.add_argument("--tokenizer-path", default=None)+    parser.add_argument("--served-model-name", default=None)+    parser.add_argument("--host", default="127.0.0.1")+    parser.add_argument("--port", type=int, required=True)+    parser.add_argument("--device-ids", default=None)+    parser.add_argument("--runtime-dir", default=None)+    return parser.parse_args(argv)+++def _build_server_argv(args: argparse.Namespace) -> list[str]:+    tp_size, dp_size = ("2", "1") if _LAYOUT == "tp2" else ("1", "2")+    argv = [+        "--model-path",+        args.model_path,+        "--tokenizer-path",+        args.tokenizer_path or args.model_path,+        "--host",+        args.host,+        "--port",+        str(args.port),+        "--dtype",+        "bfloat16",+        "--context-length",+        "4096",+        "--random-seed",+        "20260819",+        "--tp-size",+        tp_size,+        "--dp-size",+        dp_size,+        "--pp-size",+        "1",+        "--schedule-policy",+        "fcfs",+        "--chunked-prefill-size",+        "8192",+        "--max-running-requests",+        "32",+        "--mem-fraction-static",+        "0.85",+        "--disable-radix-cache",+        "--cuda-graph-backend-decode",+        "full",+        "--cuda-graph-bs-decode",+        *[str(bs) for bs in _DECODE_GRAPH_BS],+        "--cuda-graph-backend-prefill",+        "disabled",+        "--attention-backend",+        "ascend",+        "--device",+        "npu",+    ]+    if args.served_model_name:+        argv += ["--served-model-name", args.served_model_name]+    return argv+++def main() -> None:+    args = _parse_args(sys.argv[1:])+    if args.device_ids:+        # The harness already pins ASCEND_RT_VISIBLE_DEVICES; restate it so+        # the two assigned devices are the only ones the engine can see.+        os.environ["ASCEND_RT_VISIBLE_DEVICES"] = args.device_ids+    _apply_runtime_env()++    from sglang.srt.server_args import prepare_server_args+    from sglang.srt.utils.common import suppress_noisy_warnings++    suppress_noisy_warnings()+    server_args = prepare_server_args(_build_server_argv(args))++    from sglang.srt.entrypoints.http_server import launch_server++    launch_server(server_args)+++if __name__ == "__main__":+    main()