Inspect · Source & workspace
Requested workspace inspection related to source & workspace.
1 call · #0001–#0001
echo <val>ls <val> <n> > <path>Kimi K3 · Serving
SGLang Qwen3-14B system serving 2dev · Joint Optimization
01 / PROCESS MAP
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
02 / EVENT SEQUENCE
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.
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>.
Requested workspace inspection related to source & workspace.
1 call · #0001–#0001
echo <val>ls <val> <n> > <path>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>Requested file and log inspection related to source & workspace.
4 calls · #0005–#0008
Read <path>Requested file and log inspection related to runtime processes.
1 call · #0009–#0009
Read <path>Requested file and log inspection related to task requirements.
3 calls · #0010–#0012
Read <path>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>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>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>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>cat <path>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>head -n <n>python3 -c <script> <n> > <path>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>Requested file and log inspection related to source & workspace.
1 call · #0022–#0022
cat <path>Requested source searches related to runtime processes.
1 call · #0023–#0023
Search <pattern> <path>Requested workspace inspection and source searches related to attention kernels.
1 call · #0024–#0024
ls <path> <n> > <path>ls <path>grep -i -E <val>Requested workspace inspection related to source & workspace.
1 call · #0025–#0025
ls <path>Requested file and log inspection related to runtime processes.
1 call · #0026–#0026
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0027–#0027
Read <path>Requested workspace inspection related to attention kernels.
1 call · #0028–#0028
ls <path> <path>Requested source searches and file and log inspection related to runtime processes.
2 calls · #0029–#0030
Search <pattern> <path>Read <path>Requested source searches related to source & workspace.
2 calls · #0031–#0032
Search <pattern> <path>Requested file and log inspection related to dependencies & build setup.
1 call · #0033–#0033
Read <path>Requested source searches related to batching & scheduling.
1 call · #0034–#0034
Search <pattern> <path>Requested file and log inspection related to source & workspace.
3 calls · #0035–#0037
Read <path>Requested script or workload execution related to benchmark & validation setup.
1 call · #0038–#0038
cd <path>bash <script> > <path> <n> >& <path>Requested file and log inspection related to source & workspace.
1 call · #0039–#0039
Read <path>Requested source searches related to attention kernels.
1 call · #0040–#0040
Search <pattern> <path>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>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0043–#0044
Search <pattern> <path>Read <path>Requested source searches related to batching & scheduling.
2 calls · #0045–#0046
Search <pattern> <path>Requested file and log inspection related to source & workspace.
1 call · #0047–#0047
Read <path>Requested source searches related to runtime processes.
1 call · #0048–#0048
Search <pattern> <path>Requested source searches related to batching & scheduling.
1 call · #0049–#0049
Search <pattern> <path>Requested source searches and file and log inspection related to attention kernels.
3 calls · #0050–#0052
Search <pattern> <path>Read <path>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>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>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>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>Search <pattern> <path>Requested code edits related to source & workspace.
2 calls · #0059–#0060
Write <path>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>Requested source searches related to batching & scheduling.
1 call · #0062–#0062
Search <pattern> <path>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>headRequested 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>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>Requested file and log inspection related to runtime processes.
1 call · #0066–#0066
Read <path>Requested execution waits related to source & workspace.
1 call · #0067–#0067
Wait for <task>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>grep -E <val>echo <val>tail -c <n> <val> <n> > <path>python3 -c <script> <n> > <path>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>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>Requested execution waits related to source & workspace.
1 call · #0075–#0075
Wait for <task>Requested script or workload execution related to benchmark & validation setup.
1 call · #0076–#0076
python3 -c <script>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>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>Requested code edits related to source & workspace.
3 calls · #0084–#0086
Edit <path>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>tail -c <n> <path>Requested execution waits related to source & workspace.
1 call · #0089–#0089
Wait for <task>Requested script or workload execution related to benchmark & validation setup.
1 call · #0090–#0090
python3 -c <script>Requested file and log inspection related to source & workspace.
1 call · #0091–#0091
Read <path>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>Requested execution waits related to source & workspace.
1 call · #0093–#0093
Wait for <task>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>Requested file and log inspection related to runtime processes.
1 call · #0096–#0096
cd <path>sed -n <val> <path>Requested code edits related to source & workspace.
1 call · #0097–#0097
Edit <path>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>tail -c <n> <path>Requested execution waits related to source & workspace.
1 call · #0100–#0100
Wait for <task>Requested script or workload execution related to benchmark & validation setup.
1 call · #0101–#0101
python3 -c <script>Requested code edits related to source & workspace.
1 call · #0102–#0102
Edit <path>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>Requested repository inspection related to source & workspace.
1 call · #0104–#0104
cd <path>git status --shortgit diff --statRequested execution waits related to source & workspace.
1 call · #0105–#0105
Wait for <task>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
Read code changes as Git diffs. Identifying strings are masked; binary files are listed by their full relative names.
Base commit: 340db9201005fc64635bb25db1d2538f955761c3
@@ -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()