-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Add experimental ggml-hexagon backend for the Hexagon NPU #16547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+13,530
−0
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
0625382
model: add support for extra bufs for all devices
max-krasnyansky 80dc8e8
hexagon: add experimental ggml-hexagon backend for the Hexagon NPU
max-krasnyansky ec4436f
hexagon: fix format checker errors
max-krasnyansky aa65f21
hexagon: update readme and cmake presets
max-krasnyansky 647fa3d
ci: add android-ndk-build jobs that build plain ARM64 and Snapdragon …
max-krasnyansky da7caac
hexagon: add simple graph optimizer for stacking MUL_MAT ops with the…
max-krasnyansky bbbc8ea
hexagon: move ADB helper scripts into scripts/snapdragon/adb
max-krasnyansky cc7dbd4
hexagon: replace all f/printfs with GGML_LOG_...
max-krasnyansky 69a8047
readme: add hexagon to the list supported backends
max-krasnyansky debdb3b
hexagon: stack malmuts with quantized inputs only
max-krasnyansky 3475e29
hexagon: add TODO for fixing issues in hexagon_graph_optimize
max-krasnyansky 1e750df
hexagon: update to hex-sdk 6.4.0 and add scripts for running on QDC
max-krasnyansky 8e7d8b5
scripts: fix lint errors
max-krasnyansky 20aa689
scripts: update qdc pytest script to make linter happy
max-krasnyansky 03e2b9c
hexagon: add reduce sum in fp32
max-krasnyansky 384164d
hexagon: reduce number of vector stores in matmul output
max-krasnyansky a314eb6
hexagon: remove the need for vdelta in reduce-multiply-x8
max-krasnyansky 7f2d00b
hexagon: consistent use of reduce_sum_fp32 for row_sums
max-krasnyansky 5de19f8
hexagon: some more matmul optimizations and comments
max-krasnyansky cf0242e
hexagon: update cmake presets
max-krasnyansky 250e3a6
hexagon: add OPMASK support for run-bench.sh wrapper
max-krasnyansky 08a97e6
hexagon: update to use GGML_BACKEND_API
max-krasnyansky 6d2d0bd
hexagon: remove unused logic for setting tensor flags for the views
max-krasnyansky 18d7d20
hexagon: add asserts to set/get_tensor to make sure we handle complet…
max-krasnyansky 26a90a0
hexagon: use cpy_tensor slow path for non-host buffers
max-krasnyansky a8e5ad8
hexagon: error checks in the buffer allocator
max-krasnyansky dc001b9
cmake: move include(extProj) under ggml-hexagon
max-krasnyansky c749b86
hexagon: don't forget to delete the backend on free
max-krasnyansky 0c01229
hexagon: set/get_tensor size assert apply only to quantized tensors
max-krasnyansky 62ef4eb
hexagon: reintroduce HEX_VERBOSE wrapper for GGML_LOG_DEBUG for now
max-krasnyansky 19041f7
docs: typos in hexagon developer docs (libggm-...)
max-krasnyansky 3e4ff73
hexagon: overhaul error handling in the session/device allocation
max-krasnyansky 6acc285
hexagon: update cmake presets to enable fp16 vectors
max-krasnyansky dda466c
hexagon: remove unused time_usec function
max-krasnyansky b0e5beb
hexagon: don't forget to release buffer contexts
max-krasnyansky 3049de5
hexagon: fixed indents in hvx-utils (missed clang-format auto-format …
max-krasnyansky f7d7411
hexagon: remove custom can_repeat function and use ggml_can_repeat
max-krasnyansky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
hexagon: add simple graph optimizer for stacking MUL_MAT ops with the…
… same input
- Loading branch information
commit da7caac44470a5ee206f51e806770d914290e13c
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.