Experiments #175ee
Row 175ed's clock state, a measurement fix: the M4 Pro's GPU throttles from 1,578 to about 1,470 MHz after...
done
What was tested
Row 175ed's clock state, a measurement fix: the M4 Pro's A graphics card, used here as the chip that does the heavy arithmetic for a model. throttles from 1,578 to about 1,470 MHz after about 30 s of steady load and every microbench slope reads about 7% higher, the paired gain moving too; record macmon's GPU clock beside every timed microbench job (a shared helper), hold one clock state per comparison (a pre-heat to the throttled steady state, or every timed run under 30 s from idle), size the Keeping a model loaded on a machine so it can answer requests over the network. The writing phase: the model produces the reply one token at a time. Read more's own clock state on the 50 sessions, and re-read which closed microbench comparisons crossed clock states
Model and setup
the best
Expected gain
a fixed GPU state behind every microbench
Where the idea came from
`2026-11-24-mac-r175ed-long-process/README.md` § Result
Outcome
done 2026-11-25 (read-rows): the served clock A/A ran 13:51 to 14:14 M4 clock (the 13:47 launch); the arms drift 2.49% in busy The middle value when results are sorted: half the requests were faster, half slower., but the fall sits in Prefill: the model reading the whole prompt before it can write the first token. Read more and decode-window samples stay 77% at 1,578 MHz, so decode on the same The unit of text a model reads and writes: roughly a short word or a piece of a longer one. falls only 0.32% from an early place to a late one (mean clock -0.37%); A/A +0.021% [-0.230, +0.156], so paired served races are not exposed; the reversed order breaks identity (17 of 50 sessions, through turn 1's prefix-cache hit); the helper, lesson 55 and job_clock_check.py v0.144.24, the closed-comparison re-read v0.144.23 and row 176ar (`2026-11-24-mac-r175ee-served-clock-aa/README.md` § Result)
Lesson
the M4 Pro's served decode runs near full clock even while its arm drifts. On the best, the arms' busy median falls 2.5% from the first 30 s to 60 to 120 s. That fall sits in prefill. 77% of decode-window samples stay at 1,578 MHz, and decode on the same tokens falls only about 0.3% from an early place to a late one, with its mean clock falling 0.37%. So a paired served race is not exposed (A/A +0.021%), and only absolute served How many tokens the model writes each second once it has started. compared within about 0.5% across runs needs the clock recorded. Reordering the sessions of an A/A breaks reply identity: each turn 1's prefix-cache hit (`scheduler.zig:5765`) depends on the session before it, and the tail's prefill chunks start there (`generate.zig:1934`). The 16 sessions with equal hits stayed identical and 33 of the 34 others did not, so an identity count needs the same session order as well as the same harness. A median of macmon samples per turn hid a clock that a mean, or the share below full clock, shows.
Adopted
no (a diagnostic; no change follows: pairs alternate order, and lesson 55 already records the microbench clock)