-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ggml : improve ADD_REL_POS perf in SAM by doing it inplace + broadcas…
…t BLAS mul_mat (#466) * Improve ADD_REL_POS perf in SAM by doing it inplace - Add unit tests for the ADD_REL_POS operation - I am not sure if this is valid implementation as we reuse the src0 memory in order to avoid copying it - When running SAM with the "Example output" command, image, point and 16 threads, this reduces the cumulative time of the ADD_REL_POS operation from 1000-1100 ms to 180-200ms - There is further room for optimization in the access patterns used in the implementation of the opration * Add non-inplace version for the GGML_OP_ADD_REL_POS * Fix map_unary warnings and refactor LayerNorm2d + remove ggml_cont in it * Fix Mac printf format warnings * sam : add ggml_graph_print() comment * ggml : add broadcast support for BLAS ggml_mul_mat() (#460) * Remove not needed build_forward_expand from add-rel-pos unit test --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
- Loading branch information
Showing
5 changed files
with
227 additions
and
183 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.