feat: Add L2-L5 CPU kernels (WHT, FWHT/ACDC, Tropical, HRR) with dispatch integration#570
Open
peder1981 wants to merge 1 commit into
Open
feat: Add L2-L5 CPU kernels (WHT, FWHT/ACDC, Tropical, HRR) with dispatch integration#570peder1981 wants to merge 1 commit into
peder1981 wants to merge 1 commit into
Conversation
This was referenced Jun 21, 2026
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.
Add L2–L5 algebraic kernels for CPU-only 1.58-bit inference
This PR adds four new algebraic kernels for the CPU-only inference path:
ggml-bitnet-whtvec_dotggml-bitnet-fwhtggml-bitnet-tropicalggml-bitnet-hrrFiles
src/ggml-bitnet-{wht,fwht,tropical,hrr,common,dispatch,kv-cache,rag}.cpp— kernel implementationsinclude/ggml-bitnet-{wht,fwht,tropical,hrr,common,dispatch,kv-cache,rag}.h— headersCMakeLists.txt,src/CMakeLists.txt,src/ggml-bitnet-mad.cpp— build integrationpatches/llama.cpp/(5 patches) +scripts/apply-dispatch-patches.sh— Llama dispatch.gitmodules—ignore = dirtyfor local patch workflowDesign
1f86f05(same as upstream)Part of a split from original PR #567. This is the core code portion.