You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I've been poking around a few papers, and would love to integrate new CPU kernels especially for extreme-quantization scenarios.
Looking at some forks, it seems the common way to integrate your own kernel is to write a vector-dot product which hooks into llama.cpp and is then used for the corresponding matrix-vector product.
However, my algorithm wants to do a full matrix-vector or matrix-mul product to be efficient. Any pointers on how to integrate my own kernels here? I'm not too familiar with C++ or llama.cpp's huge codebase to answer this myself.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So I've been poking around a few papers, and would love to integrate new CPU kernels especially for extreme-quantization scenarios.
Looking at some forks, it seems the common way to integrate your own kernel is to write a vector-dot product which hooks into llama.cpp and is then used for the corresponding matrix-vector product.
However, my algorithm wants to do a full matrix-vector or matrix-mul product to be efficient. Any pointers on how to integrate my own kernels here? I'm not too familiar with C++ or llama.cpp's huge codebase to answer this myself.
Beta Was this translation helpful? Give feedback.
All reactions