GGML Shape & Strides question for custom kernel/hardware #11835
akapoor3518
started this conversation in
General
Replies: 1 comment 4 replies
-
Hi @ggerganov, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was looking GGML code it has ne & nb array under tensor structure. ne is used for shape & nb is used for stride.They have GGML_OP_RESHAPE operation where src tensor can be break in multiple tensors with shape & stride)
I have following questions:
1 For Llama.cpp application how we are tuning shape & stride for tensor for particular GGML operation. The reason i asked Base on this information we will general AOT(ahead of time) Kernel Binary for our custom hardware. Once kernel binary is created we cant change shape. Do we have any recommendation?
2 Do we have any recommendation for shape & stride for Matrix Multiplication , does it different for every model?
3 Can backend can control ne & nb value for tensor or it can be only controlled trough llama.cpp application?
Thanks,
Anoop
Beta Was this translation helpful? Give feedback.
All reactions