Skip to content

bench: mark decode 'n/a' when the ANE cannot run it - #152

Merged
sbryngelson merged 1 commit into
sbryngelson:mainfrom
comp-physics:bench/decode-na-marker
Aug 1, 2026
Merged

bench: mark decode 'n/a' when the ANE cannot run it#152
sbryngelson merged 1 commit into
sbryngelson:mainfrom
comp-physics:bench/decode-na-marker

Conversation

@sbryngelson

Copy link
Copy Markdown
Owner

The decode column in ROOFLINES.md showed a bare - on M1 and M2 Pro, which reads as 'not measured'. It is actually a real per-generation ANE limit: the decode benchmark's 32000-vocab lm_head matmul (1, 32000) exceeds those families' 16384 max matmul dimension, so it can't run untiled (NotImplementedError, already recorded in the decode row's status). M5 (family 5) runs it -> 117 tok/s.

Now the table shows n/a for the dim-limited case with a footnote, distinct from - (simply not submitted). Aggregator-only; ruff clean, --check green.

Getting an actual number on those chips would need tiling the lm_head into <=16384-wide chunks in decode_measurement.py -- doable, but that's a paper-repro script and a tiled lm_head isn't strictly comparable to M5's untiled one, so it's a separate, careful change (best done as a fallback that only triggers when the untiled compile fails, leaving M5 unchanged).

The decode column showed a bare '-' on M1 / M2 Pro, indistinguishable from 'not
measured'. In fact decode ran but the ANE could not: the 32000-vocab lm_head
matmul exceeds those families' 16384 max matmul dimension (NotImplementedError,
recorded in the decode row's status). Now the table shows 'n/a' with a footnote
explaining it is a real per-generation limit, distinct from '-' (not submitted).
@sbryngelson
sbryngelson merged commit d6de531 into sbryngelson:main Aug 1, 2026
14 checks passed
@sbryngelson
sbryngelson deleted the bench/decode-na-marker branch August 1, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant