PART Hi3403 / SS928 · dpico V100 BACKEND tile-rs → mlir_to_pico MODEL MiniCPM5 MEASURED 2026-11

A compiler for a chip with no compiler

PICO ships no vendor toolchain: the target language is the 91-opcode intrinsic set itself, and linking means rebuilding the .om container around a new instruction stream. This is what five MiniCPM5 kernels, two measured speed-ups and 144 deployed programs read back off silicon established — including the four things the silicon said were wrong, and a weight-quantization route the vendor's own container does not take.

5.15×
resident dispatch
one up_proj launch, 1.1948 → 0.2322 ms, byte-identical output
3
planned streams executed
on the SS928, control arm passing — two refuted a claim, one computed the reference answer
5
own claims refuted
four by a wider corpus, the fifth by one word on silicon
3
schedules planned
every one whose context carries no geometry, all reproducing svp's own reference placement
25.5 tok/s
w4 @ ctx1024
v4 DLD four-surface patch, projected from single-layer A/B on silicon (1.381 ms w4 vs 2.129 ms w8)
§1

The lever was not the instruction stream

measured on silicon

The largest win on this target is transport, not schedule. The vendor executor re-sends every input buffer on every launch. A weight is trained and an activation is not — a compiler fact a host runtime cannot recover from buffer sizes — so the manifest now states it, traced from each load to the op that consumes it.

dispatchwritewait readtotalratio
full write0.77070.2932 0.11861.1948 ms—
resident0.01930.1659 0.04580.2322 ms5.15×
Same .om, same instruction stream, same weights, output matching the committed reference — not merely another run. End to end on a deployed 8192-context decode: 222.3 → 167.1 ms per token, 4.50 → 5.98 tok/s. With w4 at ctx1024: 39.2 ms per token, 25.5 tok/s projected.

The fact generalises; the win does not

Which operand is a weight is a property of the tile_std intrinsic, so it is declared once beside the signature and every backend reads the same answer. The speed-up exists only where a runtime's default is to re-send: a CUDA runtime whose allocation and upload are separate calls is already residency-correct, and unified memory has no copy to avoid. A null there is the memory model, not a regression.
§2

How far the vendor's schedules actually reach

gates read, not shapes tried

svp has thirteen native schedulers, and the question that decided what to build next was not whether they exist but at which shapes they will emit at all. Each states its own admission gate, so this reads the gate.

schedule familyadmission gatereach
gemmK16 alignment, resident-weight limit derived · any K, N
swish98no shape gate at all plannable
affine10 ≤ length ≤ 99 derived in a window
gated_vector · groupnorm_mul extent ∈ {16, 32, 48, 64} · {16, 20, 24, 32, 40, 48, 64} enumerated
attention ×4(768, 12, 197) + exact dtype tuple one geometry
ffn(197, 768, 3072) one geometry
tiled_matmul9 families, all M=197 one geometry
conv · compact_conv · c2f · transition_conv per-envelope opcode digests image ops

A correction this forces

(768, 12, 197) is CLIP ViT-B/16; (197, 768, 3072) is its FFN; the nine tiled-matmul families are the same network's matmuls. Those three had been tracked here as blocked on absent qualification containers. That is true of their round-trip tests and false of their reach: handed those containers tomorrow, they would emit CLIP and nothing else. The request to the owners stands; what changes is what to expect back from it.
§3

Ninety-eight words, sixteen bindings

the one shape-free schedule

SwishInstructionContext carries sixteen fields and not one of them is a shape. Extent enters as byte windows and ring wraps, which is what an elementwise op should need — and what makes this one plannable at a geometry nobody qualified. The program below is the whole schedule; hover a cell.

Word 44 · vlut — the SFU lookup that is the Swish. The recipe is frozen; only the highlighted words carry a binding.
the three compute words 43 words a binding patches 55 words fixed by the recipe

Seven relations survive on every one of the 144 deployed sites, so those bindings stopped being choices:

first_ring_wrap  = 2 × ring_depth × producer_epoch
input_window_extent  = (input_window_base  + first_ring_wrap ) >> 8
output_window_extent = (output_window_base + second_ring_wrap) >> 8
descriptor_xram  = loop_state_rram_base − 464
descriptor_glp_start = 0
event slots    = 7 (local) / 1 (incoming)
second_ring_wrap = first_ring_wrap  — on the 100 sites whose prologue and steady phases agree, and only those

And swish98 was the first of three, not the only one

gated_vector and groupnorm_mul gate on an enumerated extent rather than a geometry, and everything else they want is byte offsets in an arena — so one allocator places all three. All eleven qualified extents between them plan, validate and emit: 608 words and 532 words. Each schedule checks its own layout, including _nonoverlap over every simultaneously live value — six for gated_vector, sixteen for groupnorm_mul — so a plan that reaches emit has passed the vendor's rules and not ours. Two of those rules were found by being refused: the row span is the FP16 size padded to 16 bytes (extent 20 is 40 B logical, 48 B physical), and groupnorm_mul requires UB base zero because a non-zero translation changes cold output. Neither computes anything MiniCPM5 wants, so neither is wired to the op program — they are there because a planner that works for one schedule and no other is a coincidence. Their evidence is weaker, and that is worth saying rather than letting the word “planned” carry the same weight three times: the scanner knows both topologies now and finds zero sites of either in 61 local containers, so their claim is “svp admits the layout” and stops there. swish98's is that plus 144 deployed sites and three streams run on silicon.

Both “extent” fields are addresses

They are ring limits encoded /256, and the name is wrong. On the first site the input extent 4624 shifts to 1,183,744 — that ring's base plus its wrap, and also, exactly, the input base of the next site down. An earlier version of the planner set extent = tile_bytes, reasoning from two literals in the vendor's C2f scheduler. The board corrected it. That is what the board is for.
§4

What the wider corpus refuted

the most useful result here

The planner was first written against twelve sites in one container, and four further relations held 12/12 there. Widening the scan to all 2,543 containers found 144 sites — and broke every one of them.

relationon 12 siteson 144 what the rest do
out_base == first_ring_limit12/12 142/144 two YOLO26 sites put the limit a megabyte below the base
second_ring_wrap = first + 4·prod12/12 118/144 the 44 split sites take eleven distinct deltas
producer_epoch % 204812/12 84/144 1280, 1536, 2560, 3840 and 6400 also occur — the grain is 256
producer_glp_extent % 256012/12 114/144 1280, 1600 and 3200 also occur — the grain is 320
phases are (g,g,g) or (g,1,1)12/12 118/144 twelve distinct phase shapes
…and the two odd limits are inert assumedwrong refuted on silicon — see below
Twelve sites in one model were family resemblance — the promotion this project's second invariant forbids, arrived at from the other direction. Three of the five are arguments now rather than derivations, and two grains were corrected.

The sites were found by topology, not by name. Every native schedule patches bit ranges inside a frozen recipe, so the opcode sequence is invariant across every possible binding — no container parser, no node metadata, no vendor python, which mattered because the board has python3 and none of the vendor's stack. Each hit is then a candidate until svp's own recovery replays the whole program and explains every field; all 144 do.

containersitesring depths epochs
yolo26_board_run/yolo26n.om51 1 – 392 – 54
yolo26s_board_run/yolo26s.om51 1 – 392 – 54
qat_perf/rtdetr_amax12_int16.om14 1 – 95 – 40
qat_perf/rtdetr_v47_int16.om14 1 – 95 – 40
coco_eval_full/model.om14 1 – 95 – 40
2,543 containers scanned. Ring depth takes 21 distinct values from 1 to 39 with no visible function of shape — one five-layer pyramid walks 4, 3, 2, 1, 1 while its epoch count walks 37, 38, 39, 40, 40 — so it stays an argument, the way the GEMM emitter asks for K and N.
§5

One word, on the device

the fifth refutation

The four above were refuted by statistics. This one was refuted by running it. first_ring_limit == output_window_base holds on 142 of 144 sites, and the two exceptions had been recorded as a harmless variation — a choice the planner makes rather than a law it obeys.

So one odd site was re-planned with that choice and spliced back into its container. A one-word change, word 75, the cmpi against the limit:

yolo26n.om pc 73800   out_base = 1572864   first_ring_limit = 516096
word 75   model   0003f00002002d91
word 75   variant 000c000002002d91
armoutput sha256median matches baseline
control · perturbed input9490de91… —changed ✓
baselineac2193d3… 47.3047 ms—
variantb6cf44db… 45.9276 msFALSE
Three distinct digests, two interleaved rounds. The control arm is what makes this a result rather than a coincidence: perturbed inputs changed the output, so the device was reading them and the model was genuinely running. And the variant is faster — which is exactly why a timing table alone would have been worse than useless.

The odd limit is load-bearing. The planner's choice would have computed a different answer there, so first_ring_limit is an argument now: the value it picks is the placement for a ring it allocated, never one to impose on a ring somebody else placed.

Then the same method answered a question we had filed with the owners

Question 1 of the owner request asks what sets ring_depth — 21 values from 1 to 39, no visible function of shape. One site made it falsifiable: it runs 4 epochs at depth 5, and four steps of 2×8192 = 65,536 B against a wrap at 2×5×8192 = 81,920 B means the wrap is never reached. So depth should be inert above the epoch count and load-bearing below it.

variantpredictionoutput sha256 matches baseline
depth 5 · baseline— ac2193d3…—
depth 3wrap fires at step 3 of 4 → differs 4db965b2…FALSE ✓
depth 8wrap never reached → identical ac2193d3…TRUE ✓
Both predictions held. 20 words differ from the deployed stream in each variant — the three phase tuples, both encoded extents, both wraps.

ring_depth is the input ring's tile capacity: raising it above epoch_limit is inert, and below that it must match the producer's buffer count. No function of shape was visible because it is not about shape — it is a UB budget for a ring somebody else fills.

And the depth-8 stream is the claim this project could not make

A plan at a configuration nobody deployed, computing the reference answer byte for byte on silicon. What remains unproven is narrower and stated as such: a plan at a different tiling, which every experiment here held fixed.
§6

The chain, closed for one op class

no GEMM involved

Before the planner, every op class that reached real instruction words did so through pico_native_gemm_schedule, which is shape-derived and needs no plan. Everything else stopped at the physical bindings svp's schedules want. silu is the first that does not.

$ pico_wrap.py build/silu_row.pico.s --ring-depth 2
kernel   : silu_row
ok   load   carried by the schedule's own dld/dstr
ok   silu   [planned] swish98(rows=1, depth=2) → 1 epoch → 98 words
ok   store  carried by the schedule's own dld/dstr
OBLIGATION vlut: the SFU lookup-table image and the word[35:37] slope code
emitted : 98 words

Without --ring-depth the op stays plannable and nothing is emitted — the planner will not invent that number and the wrapper does not get to either. Both halves are tested. The obligation is not discharged by emitting: the lookup-table image lives in backend LUT state, and a stream without it computes nothing.

kernelcoverageemits
silu_row3 okyes
minicpm5_up_proj4 ok yes · byte-exact
minicpm5_ffn9 ok, 1 refusedno
minicpm5_rms_norm3 ok, 1 refusedno
minicpm5_rope2 ok, 1 absentno
minicpm5_attention_c256 12 ok, 8 qualified, 14 refused, 67 absentno
A kernel emits only when every op is ok — a stream missing one computes something else. minicpm5_ffn is one op short, and that op is elementwise mul: svp's only fused multiply is Swish(x) × Tanh(gate), and MiniCPM5's SwiGLU gate has no tanh, so binding it would compute a different function. Plain multiply has no native schedule at all.

A gap the coverage count could not see

__tile_swiglu_f32 — dst[i] = silu(src0[i]) · src1[i], the op MiniCPM5's MLP is built from — was a hard error, though every piece of it was already in the table: the vlut sigmoid and the vvmul that silu emits, plus one more vvmul for the gate multiply. It sits outside the 41-op consensus set, so no coverage figure was ever short and no test asked for it. 31/41 measures agreement with four other backends, not coverage of what tile_std declares. Now lowered — and it does not close the FFN gap: the fused spelling trades a refused mul for an absent swiglu, because svp has a schedule for neither.
§7

Weight quantization from first principles

measured on silicon

The vendor's own cpm5x4_w4.om measures 11.998 ms on this board — identical to w8 (11.998 ms). It is a metadata-only patch: paraDataType says u4i but the weight bytes are unchanged, and the DMA total is the same. Only DLD-level patching achieves real weight halving.

v4 DLD patches four surfaces in the .om container:

surfacewhat changes
1 · paraDataType s8 (0x06) → u4i (0x03) in the per-op metadata header
2 · GLP[2,3,4,6] bond count → 16, GLP[3]+GLP[4] = PLUT codebook (k-means 16 centroids), GLP[6] low = dtype, high = preproc enable
3 · SGLP MOV pairs the instruction-stream mov pairs that set GLP[6] at runtime — dtype and preproc bits patched to match the descriptor
4 · weight bytes k-means 16-centroid quantize → 4-bit index encoding → u4i packed. Upper half zeroed. Same container size.

Silicon measurement on decode.om (single-layer ctx1024, pico_run 10 iterations):

armmedian msratio
w8 baseline2.1274—
w4 v4 DLD 1.3809 1.541×
w8 control2.1313—
A/B/A interleaved. 12 weight DLDs, 4 descriptors, 4 paraDataType patches, 12 SGLP MOV pairs. k-means maxerr = 10, meanerr = 2.41.
phasetok/smethod
baseline w8 ctx819212.05vendor .om, board timing
+ resident dispatch5.98per-launch 5.15×, end-to-end 1.33×
w4 ctx8192 end-to-end19.27v4 DLD on cpm5x4.om, 4-layer, board
w4 ctx1024 projected 25.5 v4 DLD on decode.om, single-layer A/B
vendor w4 ctx1024 ref24.55vendor's own number
The full journey: transport → w4 → shorter context. Each step measured on the SS928.

The 25.5 is projected, not end-to-end

Two independent projection methods agree: 25.5 from R9 ctx-scaling (validated: predicted 19.3, measured 19.27 at ctx8192) and 25.8 from vendor-baseline ratio. End-to-end validation needs a full 24-layer ctx1024 w4 container. The per-launch measurement (1.381 ms) is on silicon.
§8

What is not settled, and who owns it

stated, not hidden
openwhy it is openowner
a plan at a different tiling every experiment held the tiling fixed and varied a ring parameter. The envelope covers it — the corpus reaches 327,680 B three ways, (8192, 20), (10240, 16), (16384, 10) — but a consumer stepping out of step with its producer hangs at an ewait, so this was not run on a production board us — needs a container whose producer publishes at the new step
what sets ring_depth 21 distinct values, no function of shape: one pyramid walks depth 4, 3, 2, 1, 1 while its epochs walk 37, 38, 39, 40, 40 — depth falls as work grows svp — question 1
elementwise mul the only fused multiply is Swish(x) × Tanh(gate); the one op between MiniCPM5's MLP and a complete stream svp — question 4
attention · ffn · tiled-matmul pinned to CLIP ViT-B/16, so no planner reaches MiniCPM5's (2048, 32, 256) svp — question 5, which revises what to expect from the container request
a deployed gated_vector or groupnorm_mul site closed, and the answer is none. Both families scanned across all 2,543 board containers and all 66 local ones: zero hits, exit 0 on both sentinels. So those two planners reproduce svp's own reference placement 11/11 and that is the ceiling — there is no silicon evidence to be had, and no point waiting for any — settled
topk · gather vbsort has 6 occurrences and 1 distinct word in 183 M; vlut has 54,542 occurrences but 9 distinct words svp — owner attestation
3 qualification containers the attention, c2f and tiled-matmul round-trip tests have never executed here svp — already written, in English and Chinese

The direction of every default

An operand wrongly marked resident is a stale buffer and a wrong answer; one wrongly marked per-call is a missed saving. Those are not comparable, so the unknown case always takes the second. The same asymmetry decides the evidence ladder, the refusal to encode an under-attested opcode, why a planner that cannot fit a shape refuses instead of truncating, and why three relations that held on twelve sites are arguments now rather than derivations.