MiniMax M3 · Serving

S12 · Serving adapt

Valid

SGLang LFM2-1.2B model adapt serving 1dev · Model Adaptation

1.26×PERFORMANCE RATIO
162TOOL 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 agentMiniMax M3 · 162 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
118Inspect
5Edit
18Validate
2Execute
19Other

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 timeline88 groups · 162 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 · Task requirements

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

    5 calls · #0001–#0005

    echo <val>ls -l -a <val> <n> > <path>find <path> -name <val> <n> > <path>head -n <n>Read <path>ls -l -a <path> <path> <path> <path> <path> <n> >& <path>
    1 more command sketches
    ls -l -a <path> <path> <n> >& <path>
  2. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0006–#0006

    Read <path>
  3. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0007–#0008

    Read <path>
  4. Inspect · Benchmark & validation setup

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

    3 calls · #0009–#0011

    Read <path>
  5. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0012–#0013

    Read <path>
  6. Inspect · Benchmark & validation setup

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

    1 call · #0014–#0014

    Read <path>
  7. Other · Task requirements

    Requested task coordination related to task requirements.

    1 call · #0015–#0015

    Create task <task>
  8. Validate · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    1 call · #0016–#0016

    Create task <task>
  9. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0017–#0017

    Create task <task>
  10. Other · Batching & scheduling

    Requested task coordination related to batching & scheduling.

    1 call · #0018–#0018

    Create task <task>
  11. Validate · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    1 call · #0019–#0019

    Create task <task>
  12. Validate · Batching & scheduling

    Requested task coordination related to batching & scheduling.

    1 call · #0020–#0020

    Create task <task>
  13. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0021–#0021

    Update task <task>
  14. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0022–#0023

    Read <path>
  15. Inspect · Benchmark & validation setup

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

    1 call · #0024–#0024

    Read <path>
  16. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0025–#0026

    Read <path>
  17. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    4 calls · #0027–#0030

    Read <path>
  18. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0031–#0032

    Update task <task>
  19. Inspect · Source & workspace

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

    5 calls · #0033–#0037

    ls <path> <n> >& <path>head -n <n>find <path> -iname <val> -type <val> <n> > <path>Read <path>
  20. Inspect · Attention kernels

    Requested workspace inspection and file and log inspection related to attention kernels.

    1 call · #0038–#0038

    find <path> -type <val> <n> > <path>head -n <n>
  21. Inspect · Source & workspace

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

    2 calls · #0039–#0040

    grep -r <val> <path> --include <path> -l <n> > <path>head -n <n>cat <path>
  22. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    3 calls · #0041–#0043

    Read <path>
  23. Inspect · Source & workspace

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

    2 calls · #0044–#0045

    grep -r -n <val> <path> --include <path> -i <n> > <path>grep -v <val>head -n <n>grep -r -n <val> <path> --include <path> -l <n> > <path>
  24. Inspect · Attention kernels

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

    1 call · #0046–#0046

    grep -n <val> <path> <n> > <path>head -n <n>
  25. Inspect · Convolution & sequence boundaries

    Requested source searches and file and log inspection related to convolution & sequence boundaries.

    2 calls · #0047–#0048

    grep -n <val> <path> <n> > <path>head -n <n>
  26. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    2 calls · #0049–#0050

    Read <path>
  27. Inspect · Source & workspace

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

    1 call · #0051–#0051

    find <path> -type <val> <n> > <path>head -n <n>
  28. Inspect · Attention kernels

    Requested workspace inspection and file and log inspection related to attention kernels.

    3 calls · #0052–#0054

    ls -l -a <path> <n> > <path>Read <path>
  29. Inspect · Source & workspace

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

    2 calls · #0055–#0056

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

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

    1 call · #0057–#0057

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

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

    8 calls · #0058–#0065

    grep -n <val> <path> <n> > <path>head -n <n>Read <path>
  32. Inspect · Convolution & sequence boundaries

    Requested workspace inspection and file and log inspection related to convolution & sequence boundaries.

    1 call · #0066–#0066

    find <path> -name <val> -type <val> <n> > <path>head -n <n>
  33. Inspect · Source & workspace

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

    2 calls · #0067–#0068

    find <path> -path <val> -type <val> <n> > <path>head -n <n>find <path> -name <path> -type <val> <n> > <path>
  34. Inspect · Convolution & sequence boundaries

    Requested file and log inspection related to convolution & sequence boundaries.

    1 call · #0069–#0069

    Read <path>
  35. Inspect · Source & workspace

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

    5 calls · #0070–#0074

    envgrep -E <val>head -n <n>which <val>python3 --versionpython3 -c <script> <n> >& <path>
    3 more command sketches
    ls <path> <n> > <path>cat <path> <n> > <path>python3 -c <script>
  36. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0075–#0076

    Update task <task>
  37. Inspect · Source & workspace

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

    2 calls · #0077–#0078

    bash <script> <n> >& <path>head -n <n>cd <path>
  38. Validate · Benchmark & validation setup

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

    4 calls · #0079–#0082

    bash <script> <n> >& <path>head -n <n>cd <path>env <vars> bash <script> <n> >& <path>tail -n <n>
  39. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0083–#0083

    ls <path>
  40. Validate · Benchmark & validation setup

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

    1 call · #0084–#0084

    cat <path> <n> >& <path>head -n <n>
  41. Inspect · Benchmark & validation setup

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

    1 call · #0085–#0085

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

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

    3 calls · #0086–#0088

    grep -n <val> <path> <n> > <path>head -n <n>Read <path>
  43. Inspect · Convolution & sequence boundaries

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

    3 calls · #0089–#0091

    grep -n <val> <path> <n> > <path>head -n <n>find <path> -name <path> <n> > <path>Read <path>
  44. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0092–#0093

    Update task <task>
  45. Inspect · Attention kernels

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

    6 calls · #0094–#0099

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

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

    1 call · #0100–#0100

    grep -n <val> <path> <n> > <path>head -n <n>
  47. Inspect · Device memory

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

    4 calls · #0101–#0104

    Read <path>grep -n <val> <path> <n> > <path>head -n <n>
  48. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0105–#0105

    Edit <path>
  49. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0106–#0106

    Read <path>
  50. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0107–#0107

    Read <path>
  51. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0108–#0108

    Read <path>
  52. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0109–#0109

    Edit <path>
  53. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0110–#0110

    Read <path>
  54. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0111–#0111

    Edit <path>
  55. Validate · Benchmark & validation setup

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

    3 calls · #0112–#0114

    cd <path>env <vars> bash <script> <n> >& <path>tail -n <n>bash <script> <n> >& <path>cat <path> <n> >& <path>
  56. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0115–#0115

    ls <path>
  57. Validate · Task requirements

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

    1 call · #0116–#0116

    cd <path>env <vars> bash <script> <n> >& <path>tail -n <n>
  58. Inspect · Benchmark & validation setup

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

    1 call · #0117–#0117

    cat <path>tail -n <n>
  59. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0118–#0118

    ls -l -a <path>
  60. Validate · Batching & scheduling

    Requested tool activity related to batching & scheduling.

    1 call · #0119–#0119

    cd <path>sha256sum <path> <path> <path> <path> <n> >& <path>
  61. Other · Task requirements

    Requested script or workload execution related to task requirements.

    3 calls · #0120–#0122

    python3 -c <script>sha256sum <path>
  62. Inspect · Task requirements

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

    2 calls · #0123–#0124

    ls -l -a <path>cat <path>
  63. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0125–#0126

    Update task <task>
  64. Validate · Benchmark & validation setup

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

    1 call · #0127–#0127

    cd <path>env <vars> bash <script> <n> >& <path>tail -n <n>
  65. Inspect · Benchmark & validation setup

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

    1 call · #0128–#0128

    cd <path>env <vars> bash <script> <n> >& <path>tail -n <n>
  66. Inspect · Convolution & sequence boundaries

    Requested source searches and file and log inspection related to convolution & sequence boundaries.

    4 calls · #0129–#0132

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

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

    1 call · #0133–#0133

    python3 -c <script> <n> >& <path>head -n <n>
  68. Inspect · Convolution & sequence boundaries

    Requested source searches and file and log inspection related to convolution & sequence boundaries.

    1 call · #0134–#0134

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

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

    1 call · #0135–#0135

    python3 -c <script> <n> >& <path>head -n <n>
  70. Inspect · Convolution & sequence boundaries

    Requested file and log inspection and source searches related to convolution & sequence boundaries.

    3 calls · #0136–#0138

    cat <path>grep -E <val>head -n <n>Read <path>
  71. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0139–#0139

    Read <path>
  72. Edit · Attention kernels

    Requested code edits related to attention kernels.

    2 calls · #0140–#0141

    Edit <path>
  73. Validate · Benchmark & validation setup

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

    1 call · #0142–#0142

    cd <path>env <vars> bash <script> <n> >& <path>tail -n <n>
  74. Inspect · Convolution & sequence boundaries

    Requested file and log inspection related to convolution & sequence boundaries.

    1 call · #0143–#0143

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

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

    1 call · #0144–#0144

    cd <path>env <vars> bash <script> <n> >& <path>python3 -c <script>
  76. Inspect · Source & workspace

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

    2 calls · #0145–#0146

    Read <path>grep -n <val> <path> <n> > <path>head -n <n>
  77. Inspect · Convolution & sequence boundaries

    Requested source searches and file and log inspection related to convolution & sequence boundaries.

    1 call · #0147–#0147

    grep -n <val> <path> <n> > <path>head -n <n>
  78. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0148–#0149

    Update task <task>
  79. Inspect · Source & workspace

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

    2 calls · #0150–#0151

    Read <path>cd <path>bash <script> <n> >& <path>tail -n <n>
  80. Inspect · Attention kernels

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

    2 calls · #0152–#0153

    grep -n <val> <path>head -n <n>grep -n <val> <path> <n> > <path>
  81. Validate · Benchmark & validation setup

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

    1 call · #0154–#0154

    cd <path>env <vars> bash <script> <n> >& <path>python3 -c <script>
  82. Execute · Benchmark & validation setup

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

    1 call · #0155–#0155

    cd <path>env <vars> bash <script> <n> >& <path>python3 -c <script>
  83. Validate · Benchmark & validation setup

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

    1 call · #0156–#0156

    cd <path>env <vars> bash <script> <n> >& <path>python3 -c <script>
  84. Inspect · Source & workspace

    Requested repository inspection related to source & workspace.

    2 calls · #0157–#0158

    git diff --statgit diff
  85. Inspect · Task requirements

    Requested workspace inspection related to task requirements.

    1 call · #0159–#0159

    ls -l -a <path>
  86. Other · Task requirements

    Requested tool activity related to task requirements.

    1 call · #0160–#0160

    sha256sum <path> <path>
  87. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0161–#0161

    Update task <task>
  88. Validate · Benchmark & validation setup

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

    1 call · #0162–#0162

    cd <path>env <vars> bash <script> <n> >& <path>python3 -c <script>

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/layers/attention/attention_registry.py b/python/sglang/srt/layers/attention/attention_registry.pyindex 9af985d73765d55f812d40af43986ebdeb783619..f103c0543bc12993e699e5666b0584b07580f01a 100644--- a/python/sglang/srt/layers/attention/attention_registry.py+++ b/python/sglang/srt/layers/attention/attention_registry.py@@ -435,19 +435,10 @@ def attn_backend_wrapper(runner: "ModelRunner", full_attn_backend: "AttentionBac                 Lfm2VlConfig,             )             if isinstance(mamba2_config(runner.model_config), short_conv_cfgs):-                if is_npu():-                    # The model conv layers call-                    # get_attn_backend().conv_state_metadata() unconditionally,-                    # but the Ascend hybrid/mamba backend has no such method.-                    # Fail here (before model execution) with a clear message-                    # rather than an AttributeError deep in the first conv layer.-                    raise NotImplementedError(-                        "Short-conv hybrid models (ZAYA1 CCA, LFM2 / LFM2-MoE) "-                        "are not yet supported on NPU: the conv-state sidecar "-                        "(ShortConvAttnBackend.conv_state_metadata) has no Ascend "-                        "implementation. Add an Ascend conv-state backend before "-                        "serving these models on NPU."-                    )+                # On NPU, the model's conv kernel needs to transpose the+                # per-layer conv_state view (NPU pool stores it as+                # (slots, state_len, dim); the kernel wants (slots, dim, state_len)).+                # The plumbing backend itself is identical across CUDA and NPU.                 from sglang.srt.layers.attention.hybrid_linear_attn_backend import (                     ShortConvHybridAttnBackend,                 )diff --git a/python/sglang/srt/models/lfm2.py b/python/sglang/srt/models/lfm2.pyindex 765bc6b39dd9b9aa95784f906aa89db9f8ded0ea..ae3b3150e313e35e8780f20a418c7f471f926041 100644--- a/python/sglang/srt/models/lfm2.py+++ b/python/sglang/srt/models/lfm2.py@@ -47,11 +47,28 @@ from sglang.srt.model_loader.weight_utils import (     sharded_weight_loader, ) from sglang.srt.runtime_context import get_parallel-from sglang.srt.utils import add_prefix, make_layers, set_weight_attrs+from sglang.srt.utils import add_prefix, is_npu, make_layers, set_weight_attrs  logger = logging.getLogger(__name__)  +def _npu_short_conv_view(conv_state: torch.Tensor) -> torch.Tensor:+    """Re-view the NPU conv-state so the causal_conv1d kernels see the layout they+    expect. CUDA pools store ``(num_slots, dim, state_len)`` directly; the NPU+    hybrid mamba pool stores ``(num_slots, state_len, dim)``. The kernel+    contract is the CUDA layout, so on NPU we hand back a transposed view and+    let the kernel scatter its writes through it (no copy needed).+    """+    if (+        is_npu()+        and conv_state.dim() == 3+        and conv_state.shape[2] > conv_state.shape[1]+    ):+        # (slots, state_len, dim) -> (slots, dim, state_len)+        return conv_state.transpose(1, 2)+    return conv_state++ class Lfm2MLP(nn.Module):     """MLP with SwiGLU activation.""" @@ -274,6 +291,13 @@ class Lfm2ShortConv(nn.Module):         meta = get_attn_backend().conv_state_metadata(self.layer_idx, forward_batch)         conv_state = meta.layer_cache.conv[0] +        # On NPU, the hybrid mamba pool stores conv_state as+        # ``(num_slots, state_len, dim)`` (the last two dims are swapped vs.+        # CUDA). The causal_conv1d kernels read ``(num_slots, dim, state_len)``+        # and write per-slot state back in place. A transpose view lets the+        # kernel scatter through the original memory without an explicit copy.+        conv_state_kernel = _npu_short_conv_view(conv_state)+         # Project and split into gates: B (pre-conv), C (post-conv), x (input)         proj, _ = self.in_proj(hidden_states)         B_gate, C_gate, x = proj.chunk(3, dim=-1)@@ -283,7 +307,7 @@ class Lfm2ShortConv(nn.Module):             # Decode: single token per request, use optimized update kernel             conv_out = causal_conv1d_update(                 Bx,-                conv_state,+                conv_state_kernel,                 self.conv_weight,                 self.conv_bias,                 activation=None,@@ -299,7 +323,7 @@ class Lfm2ShortConv(nn.Module):                 query_start_loc=meta.query_start_loc,                 cache_indices=meta.cache_indices,                 has_initial_state=meta.has_initial_state,-                conv_states=conv_state,+                conv_states=conv_state_kernel,                 activation=None,             ).transpose(0, 1)