cost-model: model packed-A re-stream cost#2484
Open
kali wants to merge 1 commit into
Open
Conversation
The per-kernel a·padded_work + b·n_tiles + c cannot express re-streaming a large weight once per n-pass: invisible when a kernel is timed in isolation (weight cache-resident) but real in a model (weight evicted between layers), where a wide-nr kernel that re-streams A fewer times wins a tie a narrower one appears to win in isolation. Add a per-model restream coefficient, calibrated from a cold-cache probe (regen --cold-probe/--cold-dataset), left 0 until calibrated. Re-gather intel_avx512 and calibrate it.
|
🔴 Bench vs main — 1 speed regression(s) · Reference: 2026-07-16 morning nightly run (0d old) · full report → run Speed — evaltime · prefill · decode
Improvements
+24 more improvement(s)
|
| Δ | metric | device | main → PR |
|---|---|---|---|
| voicecom_float load · 2sec |
cortex-a55 |
155 ms → 321 ms | |
| voicecom_float load+optimize · 2sec |
cortex-a55 |
187 ms → 355 ms | |
| trunet RSS @ load · pulse1_f32 |
cortex-a9 |
23.2 MB → 25.3 MB | |
| speaker_id RSS @ load · pulse8 |
cortex-a9 |
19.1 MB → 20.3 MB | |
| voicecom_float heap @ ready · 2sec |
cortex-a55 |
2.88 MB → 3.01 MB | |
| voicecom_fake_quant heap @ ready · 2sec |
cortex-a55 |
3.06 MB → 3.19 MB | |
| parakeet_tdt_600m_v3_f32f32_preprocessor_1s heap @ ready · cpu |
i9-11900kb_rtx-4060 |
643 kB → 664 kB | |
| voicecom_float heap @ ready · 2sec |
i9-11900kb_rtx-4060 |
3.13 MB → 3.23 MB | |
| voicecom_fake_quant heap @ ready · 2sec |
i9-11900kb_rtx-4060 |
3.31 MB → 3.41 MB | |
| parakeet_tdt_600m_v3_f32f32_preprocessor_1s heap @ ready · cpu |
apple-m1-max |
646 kB → 664 kB | |
| hey_snips_v31 heap @ ready · 400ms |
i9-11900kb_rtx-4060 |
1.03 MB → 1.05 MB | |
| trunet heap @ ready · pulse1_f32 |
apple-m1-max |
4.1 MB → 4.2 MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The per-kernel a·padded_work + b·n_tiles + c cannot express re-streaming a large weight once per n-pass: invisible when a kernel is timed in isolation (weight cache-resident) but real in a model (weight evicted between layers), where a wide-nr kernel that re-streams A fewer times wins a tie a narrower one appears to win in isolation. Add a per-model restream coefficient, calibrated from a cold-cache probe (regen --cold-probe/--cold-dataset), left 0 until calibrated. Re-gather intel_avx512 and calibrate it.