Replies: 1 comment 3 replies
-
We can extend the API with Lines 740 to 751 in 4258875 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way how we could easily extend ggml with custom kernels? Or at least with ternary functions?
I've just implemented RWKV model and it's based a lot on this operation:
As you can imagine, this might be optimized easily into one operation with 3 parameters, and it would only require one tensor as result. Torch does these kinds of things automatically, but to be honest, I wouldn't mind writing such function by hand, it's just that it's not currently possible - or at least I'm not aware of a way to do so.
Beta Was this translation helpful? Give feedback.
All reactions