Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

look for ggml-metal in the same directory as the binary

Jeffrey Morgane64ef69e348b
diff --git a/ggml-metal.metal b/ggml-metal.metal
new file mode 120000
index 000000000..9f596334f
--- /dev/null
+++ b/ggml-metal.metal
@@ -0,0 +1 @@
+llama/ggml-metal.metal
\ No newline at end of file
diff --git a/llama/ggml-metal.m b/llama/ggml-metal.m
index d968f0cdc..bce68893a 100644
--- a/llama/ggml-metal.m
+++ b/llama/ggml-metal.m
@@ -152,7 +152,7 @@ struct ggml_metal_context * ggml_metal_init(int n_cb) {
//NSString * path = [[NSBundle mainBundle] pathForResource:@"../../examples/metal/metal" ofType:@"metal"];
NSBundle * bundle = [NSBundle bundleForClass:[GGMLMetalClass class]];
- NSString * path = [bundle pathForResource:@"llama/ggml-metal" ofType:@"metal"];
+ NSString * path = [bundle pathForResource:@"ggml-metal" ofType:@"metal"];
fprintf(stderr, "%s: loading '%s'\n", __func__, [path UTF8String]);
NSString * src = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];