Closed pixelspark closed 5 months ago
To use Metal, the
ggml-metal.metal
file needs to be placed in the current directory. In the llm crate we have a little hack that patchesggml-metal.m
to include the contents of that file directly in the source code, which is more convenient. See https://github.com/rustformers/llm/blob/9376078c12ea1990bd42e63432656819a056d379/crates/ggml/sys/build.rs#L198The same hack can be applied here too. I can make a PR if this is deemed a good idea...
This sounds good to me please go ahead and make an PR thanks.
To use Metal, the
ggml-metal.metal
file needs to be placed in the current directory. In the llm crate we have a little hack that patchesggml-metal.m
to include the contents of that file directly in the source code, which is more convenient. See https://github.com/rustformers/llm/blob/9376078c12ea1990bd42e63432656819a056d379/crates/ggml/sys/build.rs#L198The same hack can be applied here too. I can make a PR if this is deemed a good idea...