Skip to content

FA: Add option to build all FA kernels#197

Merged
ikawrakow merged 1 commit into
mainfrom
ik/iqk_fattn_all_quants
Feb 9, 2025
Merged

FA: Add option to build all FA kernels#197
ikawrakow merged 1 commit into
mainfrom
ik/iqk_fattn_all_quants

Conversation

@ikawrakow

Copy link
Copy Markdown
Owner

Similar to the CUDA situation.
It is OFF by default.
If OFF, only F16, Q8_0, Q6_0, and, if the CPU provides native BF16 support, BF16 CPU FA kernels will be included.
To enable all,

cmake -DGGML_IQK_FA_ALL_QUANTS=1 ...

This cuts compilation time for iqk_mul_mat.cpp by almost half (45 seconds vs 81 seconds on my Ryzen-7950X).
This is poor men's solution of the long build time until #183 is tackled.

Similar to the CUDA situation.
It is OFF by default.
If OFF, only F16, Q8_0, Q6_0, and, if the CPU provides native
BF16 support, BF16 FA kernels will be included.
To enable all, cmake -DGGML_IQK_FA_ALL_QUANTS=1 ...
This cuts compilation time for iqk_mul_mat.cpp by almost half
(45 seconds vs 81 seconds on my Ryzen-7950X).
@ikawrakow
ikawrakow merged commit cae2b81 into main Feb 9, 2025
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