-
Notifications
You must be signed in to change notification settings - Fork 100
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
Draft: support apple metal framework to compute graph #137
Conversation
Hi @fann1993814, thanks for implementing this! I've tested this with model: RWKV-5-World 7B (RWKV-5-World-7B-v2-OnlyForTest_49%_trained-20231114-ctx4096-Q4_0) Apple M2 16GB (8 cores) I'm getting the following error:
Any idea? |
Hi @fdagostino , this pr is not ready. Maybe can need ask @saharNooby how to implement...? |
Can't I'm afraid I would not be able neither implement, nor help with implementing operations for Metal -- among other reasons, I don't have a Mac. The situation may change with the next |
Hi @saharNooby
A graph need to be translate ggml-operations to metal-related operations. Implement some basic kernel functions is easy, like I hope I do not modify
I know your concern, so I stop it in this moment. |
rwkv_graph
rwkv_eval
rwkv_operators
. (because many ggml_op cannot compute in metal, and I found the max function cannot be re-write from other ggml-functions for metal backend can be supported.)#134