Load all layers on arm64 macOS if model is small enough (#2149)

This commit is contained in:
Jeffrey Morgan 2024-01-22 17:40:06 -08:00 committed by GitHub
parent ceea599494
commit 4458efb73a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,8 @@ func New(workDir, model string, adapters, projectors []string, opts api.Options)
break
}
opts.NumGPU = 1
// TODO: implement layer splitting on macOS
opts.NumGPU = 999
default:
if info.Library == "cpu" {
slog.Info("GPU not available, falling back to CPU")