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.
up_proj launch, 1.1948 → 0.2322 ms, byte-identical outputThe 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.
| dispatch | write | wait | read | total | ratio |
|---|---|---|---|---|---|
| full write | 0.7707 | 0.2932 | 0.1186 | 1.1948 ms | — |
| resident | 0.0193 | 0.1659 | 0.0458 | 0.2322 ms | 5.15× |
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.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 family | admission gate | reach |
|---|---|---|
| gemm | K16 alignment, resident-weight limit | derived · any K, N |
| swish98 | no shape gate at all | plannable |
| affine | 10 ≤ 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_matmul | 9 families, all M=197 |
one geometry |
| conv · compact_conv · c2f · transition_conv | per-envelope opcode digests | image ops |
(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.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.
Seven relations survive on every one of the 144 deployed sites, so those bindings stopped being choices:
swish98 was the first of three, not the only onegated_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.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.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.
| relation | on 12 sites | on 144 | what the rest do |
|---|---|---|---|
| out_base == first_ring_limit | 12/12 | 142/144 | two YOLO26 sites put the limit a megabyte below the base |
| second_ring_wrap = first + 4·prod | 12/12 | 118/144 | the 44 split sites take eleven distinct deltas |
| producer_epoch % 2048 | 12/12 | 84/144 | 1280, 1536, 2560, 3840 and 6400 also occur — the grain is 256 |
| producer_glp_extent % 2560 | 12/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 | assumed | wrong | refuted on silicon — see below |
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.
| container | sites | ring depths | epochs |
|---|---|---|---|
| yolo26_board_run/yolo26n.om | 51 | 1 – 39 | 2 – 54 |
| yolo26s_board_run/yolo26s.om | 51 | 1 – 39 | 2 – 54 |
| qat_perf/rtdetr_amax12_int16.om | 14 | 1 – 9 | 5 – 40 |
| qat_perf/rtdetr_v47_int16.om | 14 | 1 – 9 | 5 – 40 |
| coco_eval_full/model.om | 14 | 1 – 9 | 5 – 40 |
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:
| arm | output sha256 | median | matches baseline |
|---|---|---|---|
| control · perturbed input | 9490de91… | — | changed ✓ |
| baseline | ac2193d3… | 47.3047 ms | — |
| variant | b6cf44db… | 45.9276 ms | FALSE |
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.
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.
| variant | prediction | output sha256 | matches baseline |
|---|---|---|---|
| depth 5 · baseline | — | ac2193d3… | — |
| depth 3 | wrap fires at step 3 of 4 → differs | 4db965b2… | FALSE ✓ |
| depth 8 | wrap never reached → identical | ac2193d3… | TRUE ✓ |
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.
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.
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.
| kernel | coverage | emits |
|---|---|---|
| silu_row | 3 ok | yes |
| minicpm5_up_proj | 4 ok | yes · byte-exact |
| minicpm5_ffn | 9 ok, 1 refused | no |
| minicpm5_rms_norm | 3 ok, 1 refused | no |
| minicpm5_rope | 2 ok, 1 absent | no |
| minicpm5_attention_c256 | 12 ok, 8 qualified, 14 refused, 67 absent | no |
__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.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:
| surface | what 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):
| arm | median ms | ratio |
|---|---|---|
| w8 baseline | 2.1274 | — |
| w4 v4 DLD | 1.3809 | 1.541× |
| w8 control | 2.1313 | — |
| phase | tok/s | method |
|---|---|---|
| baseline w8 ctx8192 | 12.05 | vendor .om, board timing |
| + resident dispatch | 5.98 | per-launch 5.15×, end-to-end 1.33× |
| w4 ctx8192 end-to-end | 19.27 | v4 DLD on cpm5x4.om, 4-layer, board |
| w4 ctx1024 projected | 25.5 | v4 DLD on decode.om, single-layer A/B |
| vendor w4 ctx1024 ref | 24.55 | vendor's own number |
| open | why it is open | owner |
|---|---|---|
| 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 |