Replies: 1 comment 1 reply
|
So there is no need to differentiate between SoC-sub-types, e.g. M5 Pro with 16 GPU Core vs 20 GPU Cores? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Overview
Companion thread to #26570. The
ggml-metal-tuning fa-vectuner sweeps the flash-attn vec (Q, NE) config grid on the machine it runs on and prints pasteable rows forfa_vec_tuned_table. If your Apple GPU is not checked off below, a sweep from your machine would provide the optimal FA parameters to be included in the Metal backend for better performance on this GPU family.Running the tuning
On the target Mac, build from source:
git clone https://github.com/ggml-org/llama.cpp cd llama.cpp cmake -B build -DGGML_METAL=ON cmake --build build --target ggml-metal-tuning -jRun the following command:
Important
A full sweep takes a few hours, so it is best to run the tuning over night while the machine is not being used
Reporting results
Post in this thread (or open a PR) with:
fa_vec_rows.txt(rows only, ready to paste intofa_vec_tuned_table)Devices collected so far
All reactions