Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
set `num_gpu` to 1 only by default on darwin arm64 (#1771)
Jeffrey Morganc7ea8f237ea1
diff --git a/gpu/gpu_darwin.go b/gpu/gpu_darwin.goindex ecca3b7bb..ed63f718d 100644--- a/gpu/gpu_darwin.go+++ b/gpu/gpu_darwin.go@@ -33,11 +33,15 @@ func getCPUMem() (memInfo, error) {}func NumGPU(numLayer, fileSizeBytes int64, opts api.Options) int {+ if opts.NumGPU != -1 {+ return opts.NumGPU+ }++ // metal only supported on arm64if runtime.GOARCH == "arm64" {return 1}- // metal only supported on arm64return 0}