tools : split Metal FA-vec tuning into a standalone tuner - #26498
Open
forforever73 wants to merge 10 commits into
Open
tools : split Metal FA-vec tuning into a standalone tuner#26498forforever73 wants to merge 10 commits into
forforever73 wants to merge 10 commits into
Conversation
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.
Overview
cont #25750, implementing two of its follow-ups.
The
(Q, NE)sweep / compression / emit generator moves out oftests/test-backend-ops.cppinto a new binaryggml-metal-tuning(tools/tuning), which links onlyggmland is gated onGGML_METAL, and gains a closed-loop cooldown for thermal drift. What stays in the test file is a 240-case Metal-gated numerical slice that every Apple-silicon CI run executes.stdout is the pasteable table, stderr is everything else (
> rows.txt 2> sweep.log). The old generator put both on one stream, so the rows had to be dug out of six blocks in a 2396-line file, and the2>/dev/nullit documented discarded the Metal log; keeping that log instead tore 4 of 108 cell lines in half per run.Where the old sweep printed a drift warning and kept the measurement, the cooldown discards every candidate timed since the last clean anchor, waits for the GPU to cool, re-measures them, and drops the cell from the table if it never converges, so a throttled timing can no longer reach the table.
Requirements