Esperimenti #176m3d
M3 down body (found 2026-11-22 by the coordinator, from the M3 `lesto tune` and row 176a probe logs): on...
done
Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.
Cosa è stato provato
M3 down body (found 2026-11-22 by the coordinator, from the M3 `lesto tune` and row 176a The numbered revision of the quality-check procedure; results are only comparable within one version. logs): on the M3 Pro (applegpu_g15s) row 176a's rewritten down body (`probe/176a` 4c6a2ab9 `src/moe_search_ubench.zig:296-384` `DOWN_VARIANT_SOURCE`) beats the Keeping a model loaded on a machine so it can answer requests over the network. body (`GQMV_DOWNRED_ROWS_R176S_SOURCE`, transformer.zig:18659-18716 at f782d87) by 31.56 us shared and 22.86 us indep at the served dispatch (variant id 4, `_logs/m3_r176a/attempt-1.log` :700 and :226), bit-identical; on the M4 the same body is 4.90 to 6.48 us slower (`2026-11-20-mac-r176a-kernel-search/raw/diag176a.log` :231, :705). `lesto tune` cannot reach it: it searches layouts, not bodies. Step 1, diagnostic on the M3 (Federico's go at the time, idle only): the probe with the served body as a third down kernel under the probe's dispatch, plus the probe body with one difference reverted per variant (x-load hoist, c0/PFE prefetch nesting, the i >= IT bound, per-tile arrays), to find the line that carries the gain; then a per-device served body as a Lesto row, identity on both sets, and a timed pair on the M3
Modello e configurazione
the best, M3-only
Guadagno atteso
about 23 to 31 us a down call at 3 rows, The writing phase: the model produces the reply one token at a time. Approfondisci share not measured (inferred: a few percent on the M3)
Da dove viene l'idea
row 176a, row 176tune (M3 tune: down served below the 2% floor)
Esito
done 2026-11-22 12:43 (lesto planning session, on Federico's go): step 1 names the line; LESTO probe/176m3d 895e5561 on the M3, 32 of 32 identical, the probe body -30 to -33 us shared and -22 to -24 indep at both layouts, the served body under the probe dispatch at the The unmodified model or build that every variant is compared against. (about 0), and reverting the [NR] tile arrays alone or the [NR] accumulator arrays alone loses the whole gain while the x hoist, the prefetch nest and the IT bound keep it; the mechanism (why 1-element arrays help the M3 compiler) is open in row 176bd; step 2 moved to row 176bd (`2026-11-22-mac-r176m3d-down-body/README.md` § Result)
Lezione
on the M3 Pro, a bit-identical down-reduce body whose per-tile values (weight and scale bases, scales, biases) and accumulators are 1-element `[NR]` arrays runs 22 to 33 us a call faster (14% to 23%) than the same arithmetic on scalars, and only when both groups are arrays; on the M4 the same shape is slightly slower. A Metal kernel's speed can hang on a source shape that changes no arithmetic, and differently on each A graphics card, used here as the chip that does the heavy arithmetic for a model. generation, so the body (not only the launch layout) is a per-device choice.
Adottato
no (a diagnostic; the served change is row 176bd)